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())
示例#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())