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
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
def showGUI(self): events_dispatcher.loadSquad()