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