示例#1
0
 def control(state: PADleScrollViewState):
     if state is None:
         return None
     reaction_list = PADleMenuPanes.get_initial_reaction_list()
     return EmbedWrapper(
         PADleScrollView.embed(state),
         reaction_list
     )
示例#2
0
 def id_control(state: IdViewState):
     return EmbedWrapper(IdView.embed(state),
                         LeaderSkillMenuPanes.emoji_names())
示例#3
0
 def monster_list_control(state: SeriesScrollViewState):
     return EmbedWrapper(
         SeriesScrollView.embed(state),
         SeriesScrollMenuPanes.get_initial_reaction_list(
             state.max_len_so_far))
示例#4
0
 def ls_control(state: LeaderSkillSingleViewState):
     return EmbedWrapper(
         LeaderSkillSingleView.embed(state),
         LeaderSkillSingleMenuPanes.emoji_names()
     )
示例#5
0
 def control(state: GlobalStatsViewState):
     if state is None:
         return None
     reaction_list = GlobalStatsMenuPanes.get_initial_reaction_list()
     return EmbedWrapper(GlobalStatsView.embed(state), reaction_list)
示例#6
0
 def awakening_list_control(state: AwakeningListViewState):
     if state is None:
         return None
     reaction_list = AwakeningListMenuPanes.get_user_reaction_list(
         state.sort_type)
     return EmbedWrapper(AwakeningListView.embed(state), reaction_list)
示例#7
0
 def message_control(state: DungeonViewState):
     if state is None:
         return None
     return EmbedWrapper(DungeonView.embed(state),
                         DungeonMenuPanes.emoji_names())
示例#8
0
 def message_control(state: SimpleTextViewState):
     if state is None:
         return None
     return EmbedWrapper(SimpleTextView.embed(state), state.reaction_list)
示例#9
0
 def tf_control(state: TransformInfoViewState):
     reaction_list = state.reaction_list
     return EmbedWrapper(TransformInfoView.embed(state), reaction_list)
示例#10
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 EmbedWrapper(view_type.embed(state), reaction_list)
示例#11
0
 def otherinfo_control(state: OtherInfoViewState):
     if state is None:
         return None
     return EmbedWrapper(OtherInfoView.embed(state), state.reaction_list
                         or IdMenuPanes.emoji_names())
示例#12
0
 def pantheon_control(state: Optional[PantheonViewState]):
     if state is None:
         return None
     return EmbedWrapper(PantheonView.embed(state), state.reaction_list
                         or IdMenuPanes.emoji_names())
示例#13
0
 def pic_control(state: PicViewState):
     if state is None:
         return None
     return EmbedWrapper(PicView.embed(state), state.reaction_list
                         or IdMenuPanes.emoji_names())
示例#14
0
 def mats_control(state: Optional[MaterialsViewState]):
     if state is None:
         return None
     return EmbedWrapper(MaterialsView.embed(state), state.reaction_list
                         or IdMenuPanes.emoji_names())
示例#15
0
 def pane_control(cls, state: AzurlaneViewState):
     if state is None:
         return None
     reaction_list = state.reaction_list
     return EmbedWrapper(AzurlaneView.embed(state), reaction_list)
示例#16
0
 def id_control(state: IdViewState, reaction_list):
     return EmbedWrapper(IdView.embed(state), reaction_list)
示例#17
0
 def button_info_control(state: ButtonInfoViewState):
     if state is None:
         return None
     reaction_list = ButtonInfoMenuPanes.get_user_reaction_list(
         state.display_options)
     return EmbedWrapper(ButtonInfoView.embed(state), reaction_list)
示例#18
0
 def id_control(state: IdViewState):
     if state is None:
         return None
     return EmbedWrapper(
         IdView.embed(state), state.reaction_list
         or NaDiffMenuPanes.emoji_names())