Example #1
0
 def _initialize(self):
     super(BuyVehicleViewModel, self)._initialize()
     self._addViewModelProperty('tankPrice', ListModel())
     self._addViewModelProperty('commanderLvlCards', ListModel())
     self._addViewModelProperty('equipmentBlock', EquipmentBlockModel())
     self._addViewModelProperty('congratulationAnim',
                                VehicleCongratulationModel())
     self._addStringProperty('nation', '')
     self._addStringProperty('tankLvl', '')
     self._addStringProperty('tankName', '')
     self._addStringProperty('tankType', '')
     self._addBoolProperty('isWithoutCommander', False)
     self._addNumberProperty('countCrew', 0)
     self._addStringProperty('vehicleNameTooltip', '')
     self._addNumberProperty('tradeOffVehicleIntCD', -1)
     self._addNumberProperty('buyVehicleIntCD', 0)
     self._addBoolProperty('isToggleBtnVisible', False)
     self._addBoolProperty('isElite', False)
     self._addBoolProperty('isRentVisible', False)
     self._addResourceProperty('withoutCommanderAltText', Resource.INVALID)
     self._addBoolProperty('isInBootcamp', False)
     self._addResourceProperty('priceDescription', Resource.INVALID)
     self._addResourceProperty('noCrewCheckboxLabel', Resource.INVALID)
     self._addBoolProperty('isMovingTextEnabled', False)
     self._addBoolProperty('isContentHidden', False)
     self.onCloseBtnClick = self._addCommand('onCloseBtnClick')
     self.onBuyBtnClick = self._addCommand('onBuyBtnClick')
     self.onShowInHangarClick = self._addCommand('onShowInHangarClick')
     self.onCommanderLvlChange = self._addCommand('onCommanderLvlChange')
     self.onToggleRentAndTradeIn = self._addCommand(
         'onToggleRentAndTradeIn')
     self.onCheckboxWithoutCrewChanged = self._addCommand(
         'onCheckboxWithoutCrewChanged')
 def _initialize(self):
     super(HangarBottomPanelViewModel, self)._initialize()
     self._addViewModelProperty('ammunition', ListModel())
     self._addViewModelProperty('abilities', ListModel())
     self._addViewModelProperty('repairPrice', ListModel())
     self._addStringProperty('vehStatus', '')
     self._addBoolProperty('isModuleFirstEnter', False)
     self._addBoolProperty('isRepairBtnVisible', False)
     self._addBoolProperty('isRepairBtnDisabled', False)
     self._addBoolProperty('isVehicleInBattle', False)
     self.onModuleBtnClicked = self._addCommand('onModuleBtnClicked')
     self.onRepairBtnClicked = self._addCommand('onRepairBtnClicked')
Example #3
0
 def _initialize(self):
     super(DashboardPremiumCardModel, self)._initialize()
     self._addViewModelProperty('withoutPremium', ListModel())
     self._addViewModelProperty('withPremium', ListModel())
     self._addBoolProperty('isBasePremiumActive', False)
     self._addBoolProperty('isTankPremiumActive', False)
     self._addBoolProperty('isNotPremium', True)
     self._addNumberProperty('basePremTimeLeft', -1)
     self._addNumberProperty('tankPremTimeLeft', -1)
     self._addNumberProperty('experienceBonus', 0)
     self._addNumberProperty('creditsBonus', 0)
     self._addNumberProperty('squadBonus', 0)
     self.onClick = self._addCommand('onClick')
Example #4
0
 def _initialize(self):
     super(TutorialModel, self)._initialize()
     self._addViewModelProperty('effects', ListModel())
     self._addViewModelProperty('triggers', ListModel())
     self._addViewModelProperty('foundComponents', ListModel())
     self._addViewModelProperty('descriptions', DescriptionsModel())
     self._addViewModelProperty('criteria', ListModel())
     self._addViewModelProperty('viewCriteria', ListModel())
     self._addBoolProperty('enabled', False)
     self.onComponentFound = self._addCommand('onComponentFound')
     self.onComponentDisposed = self._addCommand('onComponentDisposed')
     self.onEffectCompleted = self._addCommand('onEffectCompleted')
     self.onComponentUpdate = self._addCommand('onComponentUpdate')
     self.onTriggerActivated = self._addCommand('onTriggerActivated')
 def _initialize(self):
     super(EquipmentBlockModel, self)._initialize()
     self._addViewModelProperty('totalPrice', ListModel())
     self._addViewModelProperty('ammo', AdditionalEquipmentSlotModel())
     self._addViewModelProperty('slot', AdditionalEquipmentSlotModel())
     self._addViewModelProperty('vehicleBtn', VehicleBtnModel())
     self._addViewModelProperty('vehicleRentBtn', ButtonIconTextModel())
     self._addViewModelProperty('vehicleTradeInBtn', ButtonIconTextModel())
     self._addBoolProperty('buyBtnIsEnabled', False)
     self._addBoolProperty('tradeInIsEnabled', False)
     self._addNumberProperty('tradeOffVehicleIntCD', -1)
     self._addBoolProperty('tradeOffWidgetEnabled', True)
     self._addNumberProperty('buyVehicleIntCD', 0)
     self._addNumberProperty('selectedRentID', 0)
     self._addNumberProperty('selectedRentDays', 0)
     self._addNumberProperty('selectedRentType', 0)
     self._addNumberProperty('selectedRentSeason', 0)
     self._addBoolProperty('emtySlotAvailable', False)
     self._addBoolProperty('isRestore', False)
     self._addBoolProperty('isSlotAnimPlaying', False)
     self._addResourceProperty('buyBtnLabel', R.invalid())
     self._addNumberProperty('confirmGoldPrice', 0)
     self._addBoolProperty('popoverIsAvailable', False)
     self._addBoolProperty('isRentVisible', False)
     self.onSelectTradeOffVehicle = self._addCommand(
         'onSelectTradeOffVehicle')
     self.onCancelTradeOffVehicle = self._addCommand(
         'onCancelTradeOffVehicle')
Example #6
0
 def _initialize(self):
     super(RewardWindowContentModel, self)._initialize()
     self._addViewModelProperty('rewardsList', ListModel())
     self._addStringProperty('eventName', '')
     self._addBoolProperty('showRewards', False)
     self.onConfirmBtnClicked = self._addCommand('onConfirmBtnClicked')
     self.onHyperLinkClicked = self._addCommand('onHyperLinkClicked')
 def _initialize(self):
     super(MapsBlacklistConfirmDialogModel, self)._initialize()
     self._addViewModelProperty('selectedMaps', ListModel())
     self._addStringProperty('mapId', '')
     self._addNumberProperty('cooldownTime', 0)
     self._addBoolProperty('showSelectedMaps', False)
     self.onMapSelected = self._addCommand('onMapSelected')
 def _initialize(self):
     super(AdditionalEquipmentSlotModel, self)._initialize()
     self._addViewModelProperty('actionPrices', ListModel())
     self._addBoolProperty('isEnabled', False)
     self._addBoolProperty('isSelected', False)
     self._addBoolProperty('isDisabledTooltip', False)
     self.onSelectedChange = self._addCommand('onSelectedChange')
Example #9
0
 def _initialize(self):
     super(BuyVehicleViewModel, self)._initialize()
     self._addViewModelProperty('commanderLvlCards', ListModel())
     self._addViewModelProperty('equipmentBlock', EquipmentBlockModel())
     self._addViewModelProperty('congratulationAnim',
                                VehicleCongratulationModel())
     self._addStringProperty('nation', '')
     self._addStringProperty('tankLvl', '')
     self._addStringProperty('tankName', '')
     self._addStringProperty('tankType', '')
     self._addBoolProperty('isWithoutCommander', False)
     self._addNumberProperty('countCrew', 0)
     self._addStringProperty('vehicleNameTooltip', '')
     self._addNumberProperty('tradeOffVehicleIntCD', -1)
     self._addNumberProperty('buyVehicleIntCD', 0)
     self._addBoolProperty('isToggleBtnVisible', False)
     self._addBoolProperty('isElite', False)
     self._addBoolProperty('isRentSelected', False)
     self._addBoolProperty('isRestore', False)
     self._addResourceProperty('withoutCommanderAltText', R.invalid())
     self._addResourceProperty('priceDescription', R.invalid())
     self._addResourceProperty('noCrewCheckboxLabel', R.invalid())
     self._addBoolProperty('isContentHidden', False)
     self._addResourceProperty('bgSource', R.invalid())
     self._addBoolProperty('needDisclaimer', False)
     self.onCloseBtnClick = self._addCommand('onCloseBtnClick')
     self.onBuyBtnClick = self._addCommand('onBuyBtnClick')
     self.onInHangarClick = self._addCommand('onInHangarClick')
     self.onBackClick = self._addCommand('onBackClick')
     self.onCommanderLvlChange = self._addCommand('onCommanderLvlChange')
     self.onCheckboxWithoutCrewChanged = self._addCommand(
         'onCheckboxWithoutCrewChanged')
     self.onDisclaimerClick = self._addCommand('onDisclaimerClick')
 def _initialize(self):
     super(PremDashboardMapsBlacklistCardModel, self)._initialize()
     self._addViewModelProperty('disabledMaps', ListModel())
     self._addBoolProperty('isAvailable', True)
     self._addBoolProperty('isBasePremiumActive', False)
     self._addBoolProperty('isTankPremiumActive', True)
     self.onGoToMapsBlacklistView = self._addCommand(
         'onGoToMapsBlacklistView')
Example #11
0
 def _initialize(self):
     super(MapsBlacklistViewModel, self)._initialize()
     self._addViewModelProperty('disabledMaps', ListModel())
     self._addViewModelProperty('mapsFilters', ListModel())
     self._addViewModelProperty('maps', ListModel())
     self._addNumberProperty('cooldownTime', 0)
     self._addNumberProperty('mapsSelected', 0)
     self._addNumberProperty('mapsTotal', 0)
     self._addBoolProperty('isFilterApplied', False)
     self.onBackAction = self._addCommand('onBackAction')
     self.onCloseEvent = self._addCommand('onCloseEvent')
     self.onMapAddToBlacklistEvent = self._addCommand(
         'onMapAddToBlacklistEvent')
     self.onMapRemoveFromBlacklistEvent = self._addCommand(
         'onMapRemoveFromBlacklistEvent')
     self.onFilterReset = self._addCommand('onFilterReset')
     self.onInitialized = self._addCommand('onInitialized')
 def _initialize(self):
     super(ContextMenuItemModel, self)._initialize()
     self._addViewModelProperty('subItemsList', ListModel())
     self._addResourceProperty('label', R.invalid())
     self._addResourceProperty('icon', R.invalid())
     self._addBoolProperty('isEnabled', True)
     self._addBoolProperty('isSeparator', False)
     self._addNumberProperty('id', 0)
     self._addNumberProperty('subItemsCount', 0)
Example #13
0
 def _initialize(self):
     super(OfferModel, self)._initialize()
     self._addViewModelProperty('gifts', ListModel())
     self._addNumberProperty('id', 0)
     self._addStringProperty('name', '')
     self._addNumberProperty('clicksCount', 0)
     self._addNumberProperty('giftsCount', 0)
     self._addNumberProperty('expiration', 0)
     self._addStringProperty('background', '')
     self.onBack = self._addCommand('onBack')
 def _initialize(self):
     super(CrewBooksDialogContentModel, self)._initialize()
     self._addViewModelProperty('crewBookTankmenList', ListModel())
     self._addBoolProperty('isUseStarted', False)
     self._addBoolProperty('isAllCrewIconVisible', False)
     self._addResourceProperty('title', R.invalid())
     self._addResourceProperty('icon', R.invalid())
     self._addResourceProperty('description', R.invalid())
     self._addArrayProperty('descriptionFmtArgs', Array())
     self.onClosed = self._addCommand('onClosed')
     self.onUseBtnClick = self._addCommand('onUseBtnClick')
 def _initialize(self):
     super(DialogWindowModel, self)._initialize()
     self._addViewModelProperty('buttons', UserListModel())
     self._addViewModelProperty('currency', ListModel())
     self._addBoolProperty('hasCloseBtn', True)
     self._addBoolProperty('hasCurrencyBlock', False)
     self._addViewProperty('content')
     self._addViewProperty('bottomContent')
     self._addResourceProperty('backgroundShineImage', Resource.INVALID)
     self._addResourceProperty('backgroundImage', Resource.INVALID)
     self.onClosed = self._addCommand('onClosed')
     self.onBtnClicked = self._addCommand('onBtnClicked')
 def _initialize(self):
     super(CommanderSlotModel, self)._initialize()
     self._addViewModelProperty('actionPrice', ListModel())
     self._addNumberProperty('idx', 0)
     self._addBoolProperty('isSelected', False)
     self._addNumberProperty('percents', 0)
     self._addStringProperty('title', '')
     self._addStringProperty('defPrice', '')
     self._addBoolProperty('isFree', False)
     self._addNumberProperty('discount', -1)
     self._addBoolProperty('slotIsEnabled', True)
     self._addBoolProperty('isBootcamp', False)
 def _initialize(self):
     super(CrewBooksLackViewModel, self)._initialize()
     self._addViewModelProperty('noBooksList', ListModel())
     self._addResourceProperty('flagIcon', R.invalid())
     self._addResourceProperty('screenDescription', R.invalid())
     self._addResourceProperty('footerDescription', R.invalid())
     self._addArrayProperty('footerDescriptionFmtArgs', Array())
     self._addBoolProperty('noBooksOnStock', False)
     self._addBoolProperty('isDialogOpen', False)
     self._addBoolProperty('isCrewBooksPurchaseEnabled', True)
     self.onCloseBtnClick = self._addCommand('onCloseBtnClick')
     self.onBuyBtnClick = self._addCommand('onBuyBtnClick')
     self.onHangarBtnClick = self._addCommand('onHangarBtnClick')
 def _initialize(self):
     super(CrewBooksBuyDialogModel, self)._initialize()
     self._addViewModelProperty('bookPrice', ListModel())
     self._addStringProperty('dialogTitle', '')
     self._addResourceProperty('bookIcon', R.invalid())
     self._addStringProperty('bookTitle', '')
     self._addResourceProperty('bookDescription', R.invalid())
     self._addArrayProperty('bookDescriptionFmtArgs', Array())
     self._addBoolProperty('buyComplete', False)
     self._addBoolProperty('isBuyEnable', False)
     self.onClosed = self._addCommand('onClosed')
     self.onStepperChanged = self._addCommand('onStepperChanged')
     self.onBuyBtnClick = self._addCommand('onBuyBtnClick')
Example #19
0
 def _initialize(self):
     super(NyCraftViewModel, self)._initialize()
     self._addViewModelProperty('craftCarousel', ListModel())
     self._addViewModelProperty('regularConfig',
                                NyCraftRegularConfigModel())
     self._addViewModelProperty('megaDevice', NyCraftMegaDeviceModel())
     self._addViewModelProperty('antiduplicator',
                                NyCraftAntiduplicatorModel())
     self._addViewModelProperty('monitor', NyCraftMonitorModel())
     self._addBoolProperty('enableCraftBtn', False)
     self._addNumberProperty('craftPrice', 0)
     self._addBoolProperty('hasShards', False)
     self._addNumberProperty('atmospherePoints', 0)
     self._addStringProperty('craftIconName', '')
     self._addBoolProperty('isCrafting', False)
     self._addNumberProperty('craftState', -1)
     self._addStringProperty('realm', '')
     self.onCraftBtnClick = self._addCommand('onCraftBtnClick')
     self.onAddCraftDecoration = self._addCommand('onAddCraftDecoration')
Example #20
0
 def _initialize(self):
     super(CrewBookTankmanModel, self)._initialize()
     self._addViewModelProperty('tankmanSkillList', ListModel())
     self._addNumberProperty('idx', 0)
     self._addResourceProperty('roleIcon', R.invalid())
     self._addResourceProperty('tankmanIcon', R.invalid())
     self._addBoolProperty('isLowRoleLevel', False)
     self._addBoolProperty('isWrongVehicle', False)
     self._addBoolProperty('isLearnDisable', False)
     self._addBoolProperty('isEmpty', False)
     self._addBoolProperty('isClickEnable', False)
     self._addBoolProperty('isTankamanSelected', False)
     self._addBoolProperty('isArrowAnimPlay', False)
     self._addBoolProperty('isSkillsEmpty', False)
     self._addStringProperty('tankmanGainExp', '')
     self._addStringProperty('roleLevel', '')
     self._addStringProperty('nativeVehicle', '')
     self._addNumberProperty('invID', 0)
     self._addBoolProperty('isTooltipEnable', True)
Example #21
0
 def _initialize(self):
     super(CrewBooksViewModel, self)._initialize()
     self._addViewModelProperty('crewBookTankmenList', ListModel())
     self._addResourceProperty('flagIcon', R.invalid())
     self._addResourceProperty('footerIcon', R.invalid())
     self._addResourceProperty('screenDesc', R.invalid())
     self._addResourceProperty('footerTitle', R.invalid())
     self._addBoolProperty('isFooterAlert', False)
     self._addBoolProperty('isInvalidTooltipEnable', False)
     self._addBoolProperty('isSimpleInvalidTooltip', False)
     self._addResourceProperty('tooltipBody', R.invalid())
     self._addArrayProperty('footerTitleFmtArgs', Array())
     self._addBoolProperty('isFooterDescriptionVisible', True)
     self._addBoolProperty('isBookUseEnable', False)
     self._addBoolProperty('isDialogOpen', False)
     self._addBoolProperty('isBookUseSucces', False)
     self._addArrayProperty('crewBookItemList', Array())
     self.onCloseBtnClick = self._addCommand('onCloseBtnClick')
     self.onTankmanClick = self._addCommand('onTankmanClick')
     self.onCrewBookClick = self._addCommand('onCrewBookClick')
     self.onBookUse = self._addCommand('onBookUse')
     self.onBuyBtnClick = self._addCommand('onBuyBtnClick')
 def _initialize(self):
     super(EquipmentBlockModel, self)._initialize()
     self._addViewModelProperty('totalPrice', ListModel())
     self._addViewModelProperty('ammo', AdditionalEquipmentSlotModel())
     self._addViewModelProperty('slot', AdditionalEquipmentSlotModel())
     self._addViewModelProperty('vehicleBtn', VehicleBtnModel())
     self._addViewModelProperty('vehicleRentBtn', VehicleActionBtnModel())
     self._addViewModelProperty('vehicleTradeInBtn',
                                VehicleActionBtnModel())
     self._addBoolProperty('buyBtnIsEnabled', False)
     self._addBoolProperty('tradeInIsEnabled', False)
     self._addNumberProperty('tradeOffVehicleIntCD', -1)
     self._addNumberProperty('buyVehicleIntCD', 0)
     self._addNumberProperty('selectedRentTerm', 0)
     self._addBoolProperty('emtySlotAvailable', False)
     self._addBoolProperty('isRestore', False)
     self._addBoolProperty('isSlotAnimPlaying', False)
     self._addResourceProperty('buyBtnLabel', Resource.INVALID)
     self._addNumberProperty('confirmGoldPrice', 0)
     self._addBoolProperty('popoverIsAvailable', False)
     self._addBoolProperty('showBuyBootcampAnim', False)
     self._addBoolProperty('isRentVisible', False)
     self.onCancelTradeOffVehicle = self._addCommand(
         'onCancelTradeOffVehicle')
Example #23
0
 def _initialize(self):
     super(BlueprintPriceContentModel, self)._initialize()
     self._addViewModelProperty('valueMain', BlueprintValuePrice())
     self._addViewModelProperty('additionalValues', ListModel())
     self._addNumberProperty('tooltipId', 0)
     self._addBoolProperty('hasAdditionalCost', False)
Example #24
0
 def _initialize(self):
     super(DropDownMenuContentModel, self)._initialize()
     self._addViewModelProperty('dropDownList', ListModel())
     self._addStringProperty('listItemRenderer', '')
 def _initialize(self):
     super(ContextMenuContentModel, self)._initialize()
     self._addViewModelProperty('contextMenuList', ListModel())
     self._addNumberProperty('itemsCount', 0)
     self._addNumberProperty('separatorsCount', 0)
     self.onItemClicked = self._addCommand('onItemClicked')
Example #26
0
 def _initialize(self):
     super(LootBoxRewardWindowContentModel, self)._initialize()
     self._addViewModelProperty('rewardsList', ListModel())
     self._addNumberProperty('rewardsCount', 0)
     self._addStringProperty('lootboxType', '')
     self._addBoolProperty('isFree', False)
Example #27
0
 def _initialize(self):
     super(TechParametersCmpViewModel, self)._initialize()
     self._addViewModelProperty('vehicleGoodSpec', ListModel())
     self._addViewModelProperty('vehicleBadSpec', ListModel())
     self._addResourceProperty('vehicleDescription', R.invalid())
Example #28
0
 def _initialize(self):
     super(PremDashboardQuestsCardModel, self)._initialize()
     self._addViewModelProperty('premiumQuests', ListModel())
     self._addBoolProperty('isAvailable', False)
     self._addBoolProperty('isTankPremiumActive', False)
     self.onGoToQuestsView = self._addCommand('onGoToQuestsView')