示例#1
0
 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)}})
示例#2
0
def formatPriceGold(value):
    if g_itemsCache.items.stats.gold >= value:
        return text_styles.goldTextBig(value)
    else:
        return formatPriceAlert(value)
示例#3
0
def formatPriceGold(value):
    if g_itemsCache.items.stats.gold >= value:
        return text_styles.goldTextBig(value)
    else:
        return formatPriceAlert(value)
示例#4
0
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)
示例#5
0
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