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
Пример #2
0
 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
Пример #3
0
 def showGUI(self, ctx = None):
     g_eventDispatcher.loadBattleSessionWindow(self.getEntityType())
Пример #4
0
 def showGUI(self, ctx=None):
     g_eventDispatcher.loadBattleSessionWindow(self.getEntityType())
Пример #5
0
 def showGUI(self):
     g_eventDispatcher.loadBattleSessionWindow(self.getPrbType())
Пример #6
0
 def showGUI(self):
     g_eventDispatcher.loadBattleSessionWindow(self.getPrbType())