def onBuyOrResearchClick(self): from gui.shared.gui_items.items_actions import factory as ItemsActionsFactory from bootcamp.BootcampGarage import g_bootcampGarage nationData = g_bootcampGarage.getNationData() if nationData['vehicle_second'] == self.__vehicleCD: super(BCVehiclePreview, self).onBuyOrResearchClick() if self._actionType == ItemsActionsFactory.UNLOCK_ITEM: g_bootcampGarage.highlightLobbyHint('DialogAccept')
def _onCarouselSettingsChange(self, diff): needRefreshHint = settings_constants.GAME.CAROUSEL_TYPE in diff or settings_constants.GAME.DOUBLE_CAROUSEL_TYPE in diff if needRefreshHint: from bootcamp.BootcampGarage import g_bootcampGarage g_bootcampGarage.highlightLobbyHint('SecondTank', False, True) super(BCTankCarousel, self)._onCarouselSettingsChange(diff) if needRefreshHint: BigWorld.callback(0.1, g_bootcampGarage.checkSecondVehicleHintEnabled)
def request4Buy(self, itemCD): nationData = g_bootcampGarage.getNationData() if nationData['module'] == itemCD: g_bootcampGarage.hideHint() super(BCResearch, self).request4Buy(itemCD) g_bootcampGarage.highlightLobbyHint('DialogAccept') elif nationData['vehicle_second'] == itemCD: shared_events.showVehiclePreview(int(itemCD), self.alias) else: super(BCResearch, self).request4Buy(itemCD)
def request4Unlock(self, unlockCD, vehCD, unlockIdx, xpCost): nationData = g_bootcampGarage.getNationData() if nationData['module'] == unlockCD: g_bootcampGarage.hideHint() super(BCResearch, self).request4Unlock(unlockCD, vehCD, unlockIdx, xpCost) g_bootcampGarage.highlightLobbyHint('DialogAccept') elif nationData['vehicle_second'] == unlockCD: shared_events.showVehiclePreview(int(unlockCD), self.alias) else: super(BCResearch, self).request4Unlock(unlockCD, vehCD, unlockIdx, xpCost)
def __updateFightButtonState(self): self._updatePrebattleControls() g_bootcampGarage.highlightLobbyHint('FightButton', not self.__fightButtonDisabled, False)
def onBuyOrResearchClick(self): if self.__isSecondVehicle(): super(BCVehiclePreview, self).onBuyOrResearchClick() if self._actionType == ItemsActionsFactory.UNLOCK_ITEM: g_bootcampGarage.highlightLobbyHint('DialogAccept')
def _updatePrebattleControls(self): super(BCLobbyHeader, self)._updatePrebattleControls() if g_bootcampGarage.isInPreview(): self.as_doDisableHeaderButtonS(self.BUTTONS.BATTLE_SELECTOR, True) g_bootcampGarage.highlightLobbyHint('BattleType', False, True)