Beispiel #1
0
 def pe_onPrebattleAutoInvitesChanged(self):
     if GUI_SETTINGS.specPrebatlesVisible:
         isHidden = areSpecBattlesHidden()
         if isHidden:
             events_dispatcher.removeSpecBattlesFromCarousel()
         else:
             events_dispatcher.addSpecBattlesToCarousel()
     events_dispatcher.updateUI()
Beispiel #2
0
 def pe_onPrebattleAutoInvitesChanged(self):
     if GUI_SETTINGS.specPrebatlesVisible:
         isHidden = areSpecBattlesHidden()
         if isHidden:
             events_dispatcher.removeSpecBattlesFromCarousel()
         else:
             events_dispatcher.addSpecBattlesToCarousel()
     events_dispatcher.updateUI()
Beispiel #3
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 #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()