Ejemplo n.º 1
0
def addSquadToCarousel():
    clientID = channel_num_gen.getClientID4Prebattle(PREBATTLE_TYPE.SQUAD)
    if not clientID:
        LOG_ERROR('Client ID not found', 'addSquadToCarousel')
        return
    g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': CHAT.CHANNELS_SQUAD,
     'canClose': False,
     'isNotified': False,
     'icon': '../maps/icons/messenger/squad_icon.png',
     'order': channel_num_gen.getOrder4Prebattle(),
     'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_SQUAD_WINDOW)},
     'openHandler': _showSquadWindow}), scope=EVENT_BUS_SCOPE.LOBBY)
Ejemplo n.º 2
0
def addCompanyToCarousel():
    clientID = channel_num_gen.getClientID4Prebattle(PREBATTLE_TYPE.COMPANY)
    if not clientID:
        LOG_ERROR('Client ID not found', 'addCompanyToCarousel')
        return
    else:
        g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': CHAT.CHANNELS_TEAM,
         'canClose': False,
         'isNotified': False,
         'icon': None,
         'order': channel_num_gen.getOrder4Prebattle(),
         'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_COMPANY_WINDOW)},
         'openHandler': _showCompanyWindow}), scope=EVENT_BUS_SCOPE.LOBBY)
        return