Beispiel #1
0
 def init(self, ctx = None):
     result = super(HistoricalQueueFunctional, self).init(ctx=ctx)
     g_eventDispatcher.loadHistoryBattles()
     g_eventsCache.onSyncCompleted += self.onEventsCacheResync
     g_eventBus.addListener(events.ChannelCarouselEvent.CAROUSEL_INITED, self.__handleCarouselInited, scope=EVENT_BUS_SCOPE.LOBBY)
     g_gameCtrl.captcha.onCaptchaInputCanceled += self.onCaptchaInputCanceled
     result = FUNCTIONAL_INIT_RESULT.addIfNot(result, FUNCTIONAL_INIT_RESULT.LOAD_WINDOW)
     return result
Beispiel #2
0
 def init(self, ctx=None):
     result = super(HistoricalQueueFunctional, self).init(ctx=ctx)
     g_eventDispatcher.loadHistoryBattles()
     g_eventsCache.onSyncCompleted += self.onEventsCacheResync
     g_eventBus.addListener(events.ChannelCarouselEvent.CAROUSEL_INITED,
                            self.__handleCarouselInited,
                            scope=EVENT_BUS_SCOPE.LOBBY)
     g_gameCtrl.captcha.onCaptchaInputCanceled += self.onCaptchaInputCanceled
     result = FUNCTIONAL_INIT_RESULT.addIfNot(
         result, FUNCTIONAL_INIT_RESULT.LOAD_WINDOW)
     return result
Beispiel #3
0
 def showGUI(self):
     g_eventDispatcher.loadHistoryBattles()
Beispiel #4
0
 def showGUI(self):
     g_eventDispatcher.loadHistoryBattles()