def start(self):
     g_eventDispatcher.init(self)
     result = self.__setFunctional(CreateFunctionalCtx())
     self.__requestCtx = PrbCtrlRequestCtx()
     self.__startListening()
     functional.initDevFunctional()
     if result & FUNCTIONAL_FLAG.LOAD_PAGE == 0:
         BigWorld.callback(0.001, lambda: g_eventDispatcher.loadHangar())
     g_eventDispatcher.updateUI()
     if GUI_SETTINGS.specPrebatlesVisible and not prb_getters.areSpecBattlesHidden():
         g_eventDispatcher.addSpecBattlesToCarousel()
Beispiel #2
0
 def start(self):
     g_eventDispatcher.init(self)
     result = self.__setFunctional(CreateFunctionalCtx())
     self.__requestCtx = PrbCtrlRequestCtx()
     self.__startListening()
     functional.initDevFunctional()
     if result & FUNCTIONAL_FLAG.LOAD_PAGE == 0:
         BigWorld.callback(0.001, lambda: g_eventDispatcher.loadHangar())
     g_eventDispatcher.updateUI()
     if GUI_SETTINGS.specPrebatlesVisible and not prb_getters.areSpecBattlesHidden(
     ):
         g_eventDispatcher.addSpecBattlesToCarousel()
Beispiel #3
0
 def start(self, ctx):
     g_eventDispatcher.init(self)
     self.__requestCtx = PrbCtrlRequestCtx()
     result = self.__factories.start(self, CreateFunctionalCtx(CTRL_ENTITY_TYPE.UNKNOWN, create={'queueType': ctx.getQueueType(),
      'settings': ctx.prbSettings}))
     self._startListening()
     functional.initDevFunctional()
     if result & FUNCTIONAL_INIT_RESULT.LOAD_PAGE == 0:
         BigWorld.callback(0.001, lambda : g_eventDispatcher.loadHangar())
     g_eventDispatcher.updateUI()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         g_eventDispatcher.addSpecBattlesToCarousel()
Beispiel #4
0
 def start(self, ctx):
     self.__requestCtx = context._PrbRequestCtx()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     self.__queueFunctional = functional.createQueueFunctional(isInRandomQueue=ctx.isInRandomQueue)
     self._startListening()
     functional.initDevFunctional()
     if not self.__prbFunctional.hasGUIPage() and not self.__prbFunctional.isGUIProcessed():
         self.__queueFunctional.onChanged()
     events_dispatcher.updateUI()
     events_dispatcher.addCompaniesToCarousel()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         events_dispatcher.addSpecBattlesToCarousel()
Beispiel #5
0
 def start(self, ctx):
     g_eventDispatcher.init(self)
     self.__requestCtx = PrbCtrlRequestCtx()
     result = self.__factories.start(
         self,
         CreateFunctionalCtx(CTRL_ENTITY_TYPE.UNKNOWN,
                             create={
                                 'queueType': ctx.getQueueType(),
                                 'settings': ctx.prbSettings
                             }))
     self._startListening()
     functional.initDevFunctional()
     if result & FUNCTIONAL_INIT_RESULT.LOAD_PAGE == 0:
         BigWorld.callback(0.001, lambda: g_eventDispatcher.loadHangar())
     g_eventDispatcher.updateUI()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         g_eventDispatcher.addSpecBattlesToCarousel()
Beispiel #6
0
 def start(self, ctx):
     self.__requestCtx = context._PrbRequestCtx()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     self.__queueFunctional = functional.createQueueFunctional(
         isInRandomQueue=ctx.isInRandomQueue)
     self._startListening()
     functional.initDevFunctional()
     if not self.__prbFunctional.hasGUIPage(
     ) and not self.__prbFunctional.isGUIProcessed():
         self.__queueFunctional.onChanged()
     events_dispatcher.updateUI()
     events_dispatcher.addCompaniesToCarousel()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         events_dispatcher.addSpecBattlesToCarousel()