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)
Пример #2
0
 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()
Пример #4
0
 def onClose(self):
     self.destroy()
     switchHangarFilteredFilter(on=False)
     self.__updateSounds('exit')
     g_eventBus.handleEvent(GameEvent(GameEvent.IMAGE_VIEW_DONE))
Пример #5
0
 def _populate(self):
     super(ImageView, self)._populate()
     self.setBgPath()
     switchHangarFilteredFilter(on=True)
     self.__updateSounds('entrance')
Пример #6
0
 def _dispose(self):
     switchHangarFilteredFilter(on=False)
     self.__lobbyContext.getServerSettings(
     ).onServerSettingsChange -= self.__onServerSettingsChanged
     super(LootBoxShopOverlay, self)._dispose()
Пример #7
0
 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()
Пример #10
0
 def onClose(self):
     self.destroy()
     switchHangarFilteredFilter(on=False)
Пример #11
0
 def _populate(self):
     super(ImageView, self)._populate()
     self.setBgPath()
     switchHangarFilteredFilter(on=True)
Пример #12
0
 def _finalize(self):
     switchHangarFilteredFilter(on=False)
     super(ResourcesLoadingConfirm, self)._finalize()