Exemplo n.º 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()
     )
Exemplo n.º 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()])
Exemplo n.º 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()
     )
Exemplo n.º 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()])
Exemplo n.º 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()
     )
Exemplo n.º 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()
     )
Exemplo n.º 7
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedControl([IdView.embed(state)], reaction_list)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 10
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names]
     )
Exemplo n.º 11
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl(
         [LeaderSkillView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names]
     )
Exemplo n.º 12
0
 def evos_control(state: EvosViewState):
     return EmbedControl(
         [EvosView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Exemplo n.º 13
0
 def id_control(state: IdViewState, reaction_list):
     return EmbedControl(
         [IdView.embed(state)],
         reaction_list
     )
Exemplo n.º 14
0
 def id_control(state: IdViewState):
     return EmbedControl([IdView.embed(state)],
                         LeaderSkillMenuPanes.emoji_names())
Exemplo n.º 15
0
 def otherinfo_control(state: OtherInfoViewState):
     return EmbedControl(
         [OtherInfoView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Exemplo n.º 16
0
 def pantheon_control(state: PantheonViewState):
     return EmbedControl(
         [PantheonView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Exemplo n.º 17
0
 def mats_control(state: MaterialsViewState):
     return EmbedControl(
         [MaterialsView.embed(state)],
         [emoji_cache.get_by_name(e) for e in IdMenuPanes.emoji_names()])
Exemplo n.º 18
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl([LeaderSkillView.embed(state)],
                         LeaderSkillMenuPanes.emoji_names())
Exemplo n.º 19
0
 def tf_control(state: TransformInfoViewState):
     return EmbedControl(
         [TransformInfoView.embed(state)],
         [emoji_cache.get_by_name(e) for e in emoji_button_names])
Exemplo n.º 20
0
 def tf_control(state: TransformInfoViewState):
     reaction_list = state.reaction_list
     return EmbedControl(
         [TransformInfoView.embed(state)],
         reaction_list
     )
Exemplo n.º 21
0
 def id_control(state: IdViewState):
     return EmbedControl(
         [IdView.embed(state)],
         [emoji_cache.get_by_name(e) for e in LeaderSkillSingleMenuPanes.emoji_names()]
     )
Exemplo n.º 22
0
 def monster_list_control(state: SeriesScrollViewState):
     return EmbedControl([SeriesScrollView.embed(state)],
                         SeriesScrollMenuPanes.get_initial_reaction_list(
                             state.max_len_so_far))
Exemplo n.º 23
0
 def ls_control(state: LeaderSkillViewState):
     return EmbedControl([LeaderSkillView.embed(state)], [
         emoji_cache.get_by_name(e)
         for e in LeaderSkillMenuPanes.emoji_names()
     ])