Exemplo n.º 1
0
 def _changeUnitFunctional(self, exit = None):
     if exit is not None:
         self.__unitFunctional.setExit(exit)
     self.__unitFunctional.fini()
     self.__requestCtx.stopProcessing(result=True)
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     events_dispatcher.updateUI()
     return
Exemplo n.º 2
0
 def _changeUnitFunctional(self, exit=None):
     if exit is not None:
         self.__unitFunctional.setExit(exit)
     self.__unitFunctional.fini()
     self.__requestCtx.stopProcessing(result=True)
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     events_dispatcher.updateUI()
     return
Exemplo n.º 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()
Exemplo n.º 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()