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