Beispiel #1
0
 def init(self, clientPrb = None, ctx = None):
     super(CompanyFunctional, self).init(clientPrb=clientPrb)
     isInvitesOpen = False
     if ctx is not None:
         isInvitesOpen = ctx.getRequestType() is REQUEST_TYPE.CREATE
     playerInfo = self.getPlayerInfo()
     if self.getTeamState(team=1).isInQueue() and playerInfo.isReady() and playerInfo.roster == PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1:
         events_dispatcher.loadBattleQueue()
     else:
         events_dispatcher.loadHangar()
     events_dispatcher.loadCompany(isInvitesOpen=isInvitesOpen)
     g_eventBus.addListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY)
     return
Beispiel #2
0
 def init(self, clientPrb=None, ctx=None):
     super(CompanyFunctional, self).init(clientPrb=clientPrb)
     isInvitesOpen = False
     if ctx is not None:
         isInvitesOpen = ctx.getRequestType() is REQUEST_TYPE.CREATE
     playerInfo = self.getPlayerInfo()
     if self.getTeamState(team=1).isInQueue() and playerInfo.isReady(
     ) and playerInfo.roster == PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1:
         events_dispatcher.loadBattleQueue()
     else:
         events_dispatcher.loadHangar()
     events_dispatcher.loadCompany(isInvitesOpen=isInvitesOpen)
     g_eventBus.addListener(ChannelCarouselEvent.CAROUSEL_INITED,
                            self.__handleCarouselInited,
                            scope=EVENT_BUS_SCOPE.LOBBY)
     return
Beispiel #3
0
 def showGUI(self):
     events_dispatcher.loadCompany()
Beispiel #4
0
 def showGUI(self):
     events_dispatcher.loadCompany()