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