def _initialize(self):
     super(RoleSlotTooltipViewModel, self)._initialize()
     self._addViewModelProperty('price', PriceModel())
     self._addViewModelProperty('moneyShortage', PriceModel())
     self._addViewModelProperty('chosenRole', RoleModel())
     self._addArrayProperty('availableRoles', Array())
     self._addArrayProperty('slots', Array())
Exemple #2
0
 def _initialize(self):
     super(PairModificationTooltipViewModel, self)._initialize()
     self._addViewModelProperty('price', PriceModel())
     self._addViewModelProperty('moneyShortage', PriceModel())
     self._addViewModelProperty('modifiers', BonusesModel())
     self._addViewModelProperty('multiStep', MultiStepModel())
     self._addResourceProperty('nameRes', R.invalid())
     self._addNumberProperty('level', 0)
     self._addBoolProperty('isPriceExist', True)
     self._addBoolProperty('showCTABlock', True)
Exemple #3
0
 def _initialize(self):
     super(ShellSlotModel, self)._initialize()
     self._addViewModelProperty('totalPrice', PriceModel())
     self._addNumberProperty('count', 0)
     self._addNumberProperty('buyCount', 0)
     self._addStringProperty('type', '')
     self._addArrayProperty('specifications', Array())
 def _initialize(self):
     super(ConfirmedItemModel, self)._initialize()
     self._addViewModelProperty('demountPrice', PriceModel())
     self._addStringProperty('name', '')
     self._addResourceProperty('imageSource', R.invalid())
     self._addStringProperty('overlayType', '')
     self._addStringProperty('highlightType', '')
     self._addBoolProperty('canUseDemountKit', False)
     self._addNumberProperty('level', 0)
 def _initialize(self):
     super(PostProgressionPurchaseModel, self)._initialize()
     self._addViewModelProperty('modificationBonuses', BonusesModel())
     self._addViewModelProperty('price', PriceModel())
     self._addBoolProperty('canPurchase', True)
     self._addArrayProperty('purchasedSingleStepIds', Array())
     self._addArrayProperty('purchasedFeatureStepIds', Array())
     self._addArrayProperty('unlockedMultiStepIds', Array())
     self.onPurchaseClick = self._addCommand('onPurchaseClick')
Exemple #6
0
    def assign(self, *itemPrices):
        self.clear()
        prices = self.getPrices()
        prices.reserve(len(itemPrices))
        for itemPrice in itemPrices:
            priceModel = PriceModel()
            PriceModelBuilder.fillPriceModelByItemPrice(priceModel, itemPrice)
            prices.addViewModel(priceModel)

        prices.invalidate()
 def _initialize(self):
     super(BaseSlotModel, self)._initialize()
     self._addViewModelProperty('price', PriceModel())
     self._addStringProperty('name', '')
     self._addNumberProperty('intCD', 0)
     self._addStringProperty('imageName', '')
     self._addNumberProperty('itemsInStorage', 0)
     self._addNumberProperty('itemTypeID', 0)
     self._addBoolProperty('isMounted', False)
     self._addBoolProperty('isDisabled', False)
     self._addBoolProperty('isVisible', True)
     self._addNumberProperty('installedSlotId', -1)
     self._addBoolProperty('isLocked', False)
     self._addStringProperty('overlayType', '')
     self._addStringProperty('highlightType', '')
 def _initialize(self):
     super(ModificationModel, self)._initialize()
     self._addViewModelProperty('price', PriceModel())
     self._addStringProperty('roleCategory')
Exemple #9
0
 def _initialize(self):
     super(SelectSlotSpecDialogModel, self)._initialize()
     self._addViewModelProperty('changePrice', PriceModel())
     self._addViewModelProperty('mainContent', SelectSlotSpecDialogContentModel())
 def _initialize(self):
     super(RentPriceModel, self)._initialize()
     self._addViewModelProperty('testDrivePrice', PriceModel())
     self._addViewModelProperty('rentPrice', PriceModel())
     self._addStringProperty('testDriveLabel', '')
     self._addStringProperty('rentLabel', '')
Exemple #11
0
 def getPriceModel(cls, price, action=None, defPrice=None):
     model = PriceModel()
     cls.fillPriceModel(model, price, action, defPrice)
     return model