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())
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)
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)