def navigateToStore(self):
     if self._currentTabId == STORAGE_CONSTANTS.INVENTORY_TAB_ALL:
         showShop()
     if self._currentTabId == STORAGE_CONSTANTS.INVENTORY_TAB_EQUIPMENT:
         showShop(getBuyOptionalDevicesUrl())
     elif self._currentTabId == STORAGE_CONSTANTS.INVENTORY_TAB_CONSUMABLE:
         showShop(getBuyEquipmentUrl())
示例#2
0
def showBuyOptionalDeviceOverlay(itemId,
                                 source=None,
                                 origin=None,
                                 alias=VIEW_ALIAS.OVERLAY_WEB_STORE,
                                 itemsCache=None):
    item = itemsCache.items.getItemByCD(itemId)
    if item.getBuyPrice().price.isCurrencyDefined(Currency.CRYSTAL):
        showBuyItemWebView(helpers.getBonsDevicesUrl(), itemId, source, origin,
                           alias)
    else:
        showBuyItemWebView(helpers.getBuyOptionalDevicesUrl(), itemId, source,
                           origin, alias)
示例#3
0
def showShopOptionalDevice():
    showShop(shop_helpers.getBuyOptionalDevicesUrl())
 def navigateToStore(self):
     showShop(getBuyOptionalDevicesUrl())
def showBuyOptionalDeviceOverlay(itemId, source=None, origin=None, alias=VIEW_ALIAS.OVERLAY_WEB_STORE):
    showBuyItemWebView(helpers.getBuyOptionalDevicesUrl(), itemId, source, origin, alias)