Example #1
0
 def _initialize(self):
     super(TankStyleModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addNumberProperty('styleId', 0)
     self._addStringProperty('styleName', '')
     self._addBoolProperty('isInHangar', False)
     self._addBoolProperty('isObtained', False)
Example #2
0
 def _initialize(self):
     super(BattlePassWidget3DStyleViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addStringProperty('styleName', '')
     self._addNumberProperty('styleId', 0)
     self.onPreviewClick = self._addCommand('onPreviewClick')
     self.onExtraPreviewClick = self._addCommand('onExtraPreviewClick')
 def _initialize(self):
     super(IntroViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addNumberProperty('topRewardPlayersCount', 0)
     self._addNumberProperty('regularRewardVehiclesCount', 0)
     self.showVideo = self._addCommand('showVideo')
     self.onClose = self._addCommand('onClose')
Example #4
0
 def _initialize(self):
     super(SelectSlotSpecDialogContentModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addArrayProperty('slots', Array())
     self._addNumberProperty('targetSlotIdx', 0)
     self._addArrayProperty('availableSpecs', Array())
     self._addNumberProperty('selectedSpecIdx', -1)
 def _initialize(self):
     super(RewardModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addBoolProperty('isTop', False)
     self._addNumberProperty('vehiclesLeftCount', 0)
     self._addBoolProperty('isEnabled', False)
     self._addBoolProperty('isCountAvailable', False)
Example #6
0
 def _initialize(self):
     super(BattlePassWidget3DStyleViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addStringProperty('styleName', '')
     self._addNumberProperty('styleId', 0)
     self._addNumberProperty('level', 0)
     self._addBoolProperty('isUnselectedPrevStyle', False)
     self.onSelectStyle = self._addCommand('onSelectStyle')
     self.onPreviewClick = self._addCommand('onPreviewClick')
Example #7
0
 def _initialize(self):
     super(CompletedProgressionViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addBoolProperty('isTop', False)
     self._addStringProperty('personalNumber', '')
     self.onViewLoaded = self._addCommand('onViewLoaded')
     self.onClose = self._addCommand('onClose')
     self.onShowVehicle = self._addCommand('onShowVehicle')
     self.onAboutClick = self._addCommand('onAboutClick')
 def _initialize(self):
     super(VehicleCompareAmmunitionSetupModel, self)._initialize()
     self._addViewModelProperty('tankSetup', MainTankSetupModel())
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addBoolProperty('show', False)
     self._addNumberProperty('selectedSlot', -1)
     self.onClose = self._addCommand('onClose')
     self.onResized = self._addCommand('onResized')
     self.onViewRendered = self._addCommand('onViewRendered')
     self.onAnimationEnd = self._addCommand('onAnimationEnd')
 def _initialize(self):
     super(ChapterModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addNumberProperty('chapterID', 0)
     self._addStringProperty('styleName', '')
     self._addNumberProperty('currentLevel', 0)
     self._addStringProperty('chapterState')
     self._addBoolProperty('isVehicleInHangar', False)
     self._addBoolProperty('isBought', False)
     self._addNumberProperty('levelProgression', 0)
     self._addBoolProperty('isExtra', False)
     self._addStringProperty('finalReward', '')
Example #10
0
 def _initialize(self):
     super(AmmunitionSetupViewModel, self)._initialize()
     self._addViewModelProperty('tankSetup', MainTankSetupModel())
     self._addViewModelProperty('ammunitionPanel', AmmunitionPanelModel())
     self._addViewModelProperty('lastSlotAction', TankSetupActionModel())
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addBoolProperty('show', False)
     self._addBoolProperty('isReady', False)
     self._addBoolProperty('isBootcamp', False)
     self.onClose = self._addCommand('onClose')
     self.onResized = self._addCommand('onResized')
     self.onViewRendered = self._addCommand('onViewRendered')
     self.onAnimationEnd = self._addCommand('onAnimationEnd')
Example #11
0
 def _initialize(self):
     super(RespawnAmmunitionPanelViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
Example #12
0
 def _initialize(self):
     super(ExtraIntroViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addStringProperty('styleName', '')
     self.onViewLoaded = self._addCommand('onViewLoaded')
     self.onClose = self._addCommand('onClose')
Example #13
0
 def _initialize(self):
     super(AwardViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addStringProperty('personalNumber', '')
     self.showInHangar = self._addCommand('showInHangar')
Example #14
0
 def _initialize(self):
     super(EliteViewModel, self)._initialize()
     self._addViewModelProperty('vehicleInfo', VehicleInfoModel())
     self._addBoolProperty('isPostProgressionExists', False)
     self.onGoToPostProgression = self._addCommand('onGoToPostProgression')
     self.onClose = self._addCommand('onClose')