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
Exemplo n.º 3
0
 def handleOpenClanInvites(self, cmd):
     showClanInvitesWindow()
Exemplo n.º 4
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return shared_events.showClanInvitesWindow()
Exemplo n.º 5
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return event_dispatcher.showClanInvitesWindow()
Exemplo n.º 6
0
def _openClanInvites():
    """
    Opens clan invites window
    """
    showClanInvitesWindow()
Exemplo n.º 7
0
 def handleAction(self, model, entityID, action):
     super(_ShowClanAppsHandler, self).handleAction(model, entityID, action)
     return event_dispatcher.showClanInvitesWindow()
def handleOpenClanInvites(command, ctx):
    showClanInvitesWindow()