def init(self, clientPrb=None, ctx=None): result = super(BattleSessionEntity, self).init(clientPrb=clientPrb, ctx=ctx) g_eventDispatcher.loadHangar() g_eventDispatcher.loadBattleSessionWindow(self.getEntityType()) result = FUNCTIONAL_FLAG.addIfNot(result, FUNCTIONAL_FLAG.LOAD_WINDOW) result = FUNCTIONAL_FLAG.addIfNot(result, FUNCTIONAL_FLAG.LOAD_PAGE) g_eventBus.addListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY) return result
def init(self, clientPrb = None, ctx = None): result = super(BattleSessionFunctional, self).init(clientPrb=clientPrb) g_eventDispatcher.loadHangar() g_eventDispatcher.loadBattleSessionWindow(self.getEntityType()) result = FUNCTIONAL_FLAG.addIfNot(result, FUNCTIONAL_FLAG.LOAD_WINDOW) result = FUNCTIONAL_FLAG.addIfNot(result, FUNCTIONAL_FLAG.LOAD_PAGE) g_eventBus.addListener(ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY) g_eventDispatcher.updateUI() return result
def showGUI(self, ctx = None): g_eventDispatcher.loadBattleSessionWindow(self.getEntityType())
def showGUI(self, ctx=None): g_eventDispatcher.loadBattleSessionWindow(self.getEntityType())
def showGUI(self): g_eventDispatcher.loadBattleSessionWindow(self.getPrbType())