Example #1
0
 def pe_onPrebattleAutoInvitesChanged(self):
     if GUI_SETTINGS.specPrebatlesVisible:
         isHidden = prb_getters.areSpecBattlesHidden()
         if isHidden:
             g_eventDispatcher.removeSpecBattlesFromCarousel()
         else:
             g_eventDispatcher.addSpecBattlesToCarousel()
     g_eventDispatcher.updateUI()
Example #2
0
 def pe_onPrebattleAutoInvitesChanged(self):
     if GUI_SETTINGS.specPrebatlesVisible:
         isHidden = areSpecBattlesHidden()
         if isHidden:
             g_eventDispatcher.removeSpecBattlesFromCarousel()
         else:
             g_eventDispatcher.addSpecBattlesToCarousel()
     g_eventDispatcher.updateUI()
Example #3
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()
Example #4
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()
Example #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()
Example #6
0
 def pe_onPrebattleAutoInvitesChanged(self):
     """
     Player event listener for autoinvites state. Controls chat tab visibility of spec battles
     and updates UI.
     """
     if GUI_SETTINGS.specPrebatlesVisible:
         isHidden = prb_getters.areSpecBattlesHidden()
         if isHidden:
             g_eventDispatcher.removeSpecBattlesFromCarousel()
         else:
             g_eventDispatcher.addSpecBattlesToCarousel()
     g_eventDispatcher.updateUI()
Example #7
0
 def start(self):
     if self.__isStarted:
         return
     self.__isStarted = True
     g_eventDispatcher.init(self)
     result = self.__setDefault()
     self.__startListening()
     initDevFunctional()
     if result & FUNCTIONAL_FLAG.LOAD_PAGE == 0:
         g_eventDispatcher.loadHangar()
     if GUI_SETTINGS.specPrebatlesVisible and not prb_getters.areSpecBattlesHidden():
         g_eventDispatcher.addSpecBattlesToCarousel()
Example #8
0
 def start(self):
     """
     Start is called when dispatcher should start its job and process events.
     """
     g_eventDispatcher.init(self)
     result = self.__setDefault()
     self.__startListening()
     initDevFunctional()
     if result & FUNCTIONAL_FLAG.LOAD_PAGE == 0:
         g_eventDispatcher.loadHangar()
     if GUI_SETTINGS.specPrebatlesVisible and not prb_getters.areSpecBattlesHidden(
     ):
         g_eventDispatcher.addSpecBattlesToCarousel()
Example #9
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()