def __setBuyingPanelInitData(self): self.as_setBuyingPanelInitDataS({'totalPriceLabel': text_styles.highTitle(MENU.CUSTOMIZATION_LABELS_TOTALPRICE), 'buyBtnLabel': MENU.CUSTOMIZATION_BUTTONS_APPLY, 'buyingListIcon': RES_ICONS.MAPS_ICONS_LIBRARY_ICON_BUTTON_LIST, 'goldIcon': RES_ICONS.MAPS_ICONS_LIBRARY_GOLDICON_1, 'creditsIcon': RES_ICONS.MAPS_ICONS_LIBRARY_CREDITSICON_1, 'purchasesBtnTooltip': makeTooltip(TOOLTIPS.CUSTOMIZATION_PURCHASESPOPOVERBTN_HEADER, TOOLTIPS.CUSTOMIZATION_PURCHASESPOPOVERBTN_BODY), 'buyingPanelVO': {'totalPriceCredits': text_styles.creditsTextBig(g_customizationController.carousel.slots.cart.totalPriceCredits), 'totalPriceGold': text_styles.goldTextBig(g_customizationController.carousel.slots.cart.totalPriceGold)}})
def formatPriceGold(value): if g_itemsCache.items.stats.gold >= value: return text_styles.goldTextBig(value) else: return formatPriceAlert(value)
def formatGoldPriceBig(value): value = BigWorld.wg_getIntegralFormat(value) icon = gui_icons.makeImageTag(RES_ICONS.MAPS_ICONS_LIBRARY_GOLDICON_1, vSpace=-1) return '{} {}'.format(text_styles.goldTextBig(value), icon)
def formatPriceGold(value, itemsCache=None): if itemsCache is None or itemsCache.items.stats.gold >= value: return text_styles.goldTextBig(value) else: return formatPriceAlert(value) return