def _onLoading(self, *args, **kwargs): super(NoSerialVehiclesConfirm, self)._onLoading(*args, **kwargs) with self.viewModel.transaction() as model: fillVehicleCounter(vehicleCounterModel=model.vehicleCounter, resourceWell=self.__resourceWell) vehicle = self._itemsCache.items.getItemByCD( self.__resourceWell.getRewardVehicle()) model.setVehicleName(vehicle.userName) switchHangarFilteredFilter(on=True)
def _onLoading(self, *args, **kwargs): super(ResourcesLoadingConfirm, self)._onLoading(*args, **kwargs) with self.viewModel.transaction() as model: fillVehicleCounter(vehicleCounterModel=model.vehicleCounter, resourceWell=self.__resourceWell) self.__fillResources(resourceModels=model.getResources()) model.setOperationType(self.__operation) pointsDiff = sum((resource.rate * count for resource, count in self.__resources)) currentPoints = self.__resourceWell.getCurrentPoints() model.setProgressDiff( (pointsDiff + currentPoints) * _FULL_PROGRESS / self.__resourceWell.getMaxPoints()) switchHangarFilteredFilter(on=True)
def _finalize(self): switchHangarFilteredFilter(on=False) super(NoSerialVehiclesConfirm, self)._finalize()
def onClose(self): self.destroy() switchHangarFilteredFilter(on=False) self.__updateSounds('exit') g_eventBus.handleEvent(GameEvent(GameEvent.IMAGE_VIEW_DONE))
def _populate(self): super(ImageView, self)._populate() self.setBgPath() switchHangarFilteredFilter(on=True) self.__updateSounds('entrance')
def _dispose(self): switchHangarFilteredFilter(on=False) self.__lobbyContext.getServerSettings( ).onServerSettingsChange -= self.__onServerSettingsChanged super(LootBoxShopOverlay, self)._dispose()
def _populate(self): super(LootBoxShopOverlay, self)._populate() self.__lobbyContext.getServerSettings( ).onServerSettingsChange += self.__onServerSettingsChanged switchHangarFilteredFilter(on=True)
def _dispose(self): switchHangarFilteredFilter(on=False) self.__uiLogger.onViewClosed() super(ResourceWellBrowserView, self)._dispose()
def _populate(self): super(ResourceWellBrowserView, self)._populate() switchHangarFilteredFilter(on=True) self.__uiLogger.onViewOpened()
def onClose(self): self.destroy() switchHangarFilteredFilter(on=False)
def _populate(self): super(ImageView, self)._populate() self.setBgPath() switchHangarFilteredFilter(on=True)
def _finalize(self): switchHangarFilteredFilter(on=False) super(ResourcesLoadingConfirm, self)._finalize()