Beispiel #1
0
 def otherinfo_control(state: OtherInfoViewState):
     if state is None:
         return None
     return EmbedControl(
         [OtherInfoView.embed(state)],
         state.reaction_list or IdMenuPanes.emoji_names()
     )
Beispiel #2
0
 def pantheon_control(state: Optional[PantheonViewState]):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl(
         [PantheonView.embed(state)], reaction_list
         or [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Beispiel #3
0
 def pantheon_control(state: Optional[PantheonViewState]):
     if state is None:
         return None
     return EmbedControl(
         [PantheonView.embed(state)],
         state.reaction_list or IdMenuPanes.emoji_names()
     )
Beispiel #4
0
 def otherinfo_control(state: OtherInfoViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl(
         [OtherInfoView.embed(state)], reaction_list
         or [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Beispiel #5
0
 def pic_control(state: PicViewState):
     if state is None:
         return None
     return EmbedControl(
         [PicView.embed(state)],
         state.reaction_list or IdMenuPanes.emoji_names()
     )
Beispiel #6
0
 def mats_control(state: Optional[MaterialsViewState]):
     if state is None:
         return None
     return EmbedControl(
         [MaterialsView.embed(state)],
         state.reaction_list or IdMenuPanes.emoji_names()
     )
 def id_control(state: IdViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl([IdView.embed(state)], reaction_list)
Beispiel #8
0
 def monster_list_control(state: MonsterListViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl([MonsterListView.embed(state)], reaction_list)
Beispiel #9
0
 def monster_list_control(cls, state: MonsterListViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     view_type = cls._get_view(state)
     return EmbedControl([view_type.embed(state)], reaction_list)
Beispiel #10
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names]
     )
Beispiel #11
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl(
         [LeaderSkillView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names]
     )
Beispiel #12
0
 def evos_control(state: EvosViewState):
     return EmbedControl(
         [EvosView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
 def id_control(state: IdViewState, reaction_list):
     return EmbedControl(
         [IdView.embed(state)],
         reaction_list
     )
Beispiel #14
0
 def id_control(state: IdViewState):
     return EmbedControl([IdView.embed(state)],
                         LeaderSkillMenuPanes.emoji_names())
Beispiel #15
0
 def otherinfo_control(state: OtherInfoViewState):
     return EmbedControl(
         [OtherInfoView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Beispiel #16
0
 def pantheon_control(state: PantheonViewState):
     return EmbedControl(
         [PantheonView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Beispiel #17
0
 def mats_control(state: MaterialsViewState):
     return EmbedControl(
         [MaterialsView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Beispiel #18
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl([LeaderSkillView.embed(state)],
                         LeaderSkillMenuPanes.emoji_names())
Beispiel #19
0
 def tf_control(state: TransformInfoViewState):
     return EmbedControl(
         [TransformInfoView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names])
 def tf_control(state: TransformInfoViewState):
     reaction_list = state.reaction_list
     return EmbedControl(
         [TransformInfoView.embed(state)],
         reaction_list
     )
Beispiel #21
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in LeaderSkillSingleMenuPanes.emoji_names()]
     )
Beispiel #22
0
 def monster_list_control(state: SeriesScrollViewState):
     return EmbedControl([SeriesScrollView.embed(state)],
                         SeriesScrollMenuPanes.get_initial_reaction_list(
                             state.max_len_so_far))
Beispiel #23
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl([LeaderSkillView.embed(state)], [
         emoji_cache.get_by_name(e)
         for e in LeaderSkillMenuPanes.emoji_names()
     ])