def onHeaderButtonClick(self, actionID):
     if actionID == OPEN_CLAN_CHANNEL_ACTION_ID:
         channel = self.channelsStorage.getChannelByCriteria(BWClanChannelFindCriteria())
         if channel is not None:
             g_messengerEvents.channels.onPlayerEnterChannelByAction(channel)
         else:
             LOG_WARNING("Clan channel couldn't find!")
     elif actionID == OPEN_INVITES_ACTION_ID:
         showClanInvitesWindow()
     else:
         super(ClanProfilePersonnelView, self).onHeaderButtonClick(actionID)
     return
 def onHeaderButtonClick(self, actionID):
     if actionID == OPEN_CLAN_CHANNEL_ACTION_ID:
         channel = self.channelsStorage.getChannelByCriteria(BWClanChannelFindCriteria())
         if channel is not None:
             g_messengerEvents.channels.onPlayerEnterChannelByAction(channel)
         else:
             LOG_WARNING("Clan channel couldn't find!")
     elif actionID == OPEN_INVITES_ACTION_ID:
         showClanInvitesWindow()
     else:
         super(ClanProfilePersonnelView, self).onHeaderButtonClick(actionID)
     return
示例#3
0
 def handleOpenClanInvites(self, cmd):
     showClanInvitesWindow()
示例#4
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return shared_events.showClanInvitesWindow()
示例#5
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return event_dispatcher.showClanInvitesWindow()
示例#6
0
def _openClanInvites():
    """
    Opens clan invites window
    """
    showClanInvitesWindow()
示例#7
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return event_dispatcher.showClanInvitesWindow()
def handleOpenClanInvites(command, ctx):
    showClanInvitesWindow()