mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-04 13:54:50 +08:00
Refactor: shop ui navigation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from module.shop.assets import *
|
||||
from module.shop.shop_core import CoreShop_250814
|
||||
from module.shop.shop_general import GeneralShop_250814
|
||||
from module.shop.shop_guild import GuildShop_250814
|
||||
@@ -14,8 +15,8 @@ class RewardShop(ShopUI):
|
||||
|
||||
self.ui_goto_shop()
|
||||
self.device.click_record_clear()
|
||||
self.shop_tab_250814.set(main=self, upper=1)
|
||||
self.shop_nav_250814.set(main=self, left=1)
|
||||
self.shop_nav_250814.set(NAV_GENERAL, main=self)
|
||||
self.shop_tab_250814.set(TAB_GENERAL, main=self)
|
||||
GeneralShop_250814(self.config, self.device).run()
|
||||
|
||||
self.config.task_delay(server_update=True)
|
||||
@@ -28,24 +29,24 @@ class RewardShop(ShopUI):
|
||||
# Munitions shops
|
||||
self.ui_goto_shop()
|
||||
self.device.click_record_clear()
|
||||
self.shop_tab_250814.set(main=self, upper=1)
|
||||
self.shop_nav_250814.set(main=self, left=2)
|
||||
self.shop_nav_250814.set(NAV_GENERAL, main=self)
|
||||
self.shop_tab_250814.set(TAB_MERIT, main=self)
|
||||
MeritShop_250814(self.config, self.device).run()
|
||||
|
||||
self.device.click_record_clear()
|
||||
self.shop_tab_250814.set(main=self, upper=1)
|
||||
self.shop_nav_250814.set(main=self, left=3)
|
||||
self.shop_nav_250814.set(NAV_GENERAL, main=self)
|
||||
self.shop_tab_250814.set(TAB_GUILD, main=self)
|
||||
GuildShop_250814(self.config, self.device).run()
|
||||
|
||||
# core limited, core monthly, medal, prototype
|
||||
self.device.click_record_clear()
|
||||
self.shop_tab_250814.set(main=self, upper=2)
|
||||
self.monthly_shop_nav_250814.set(main=self, left=2)
|
||||
self.shop_nav_250814.set(NAV_MONTHLY, main=self)
|
||||
self.shop_tab_250814.set(TAB_CORE_MONTHLY, main=self)
|
||||
CoreShop_250814(self.config, self.device).run()
|
||||
|
||||
self.device.click_record_clear()
|
||||
self.shop_tab_250814.set(main=self, upper=2)
|
||||
self.monthly_shop_nav_250814.set(main=self, left=3)
|
||||
self.shop_nav_250814.set(NAV_MONTHLY, main=self)
|
||||
self.shop_tab_250814.set(TAB_MEDAL, main=self)
|
||||
MedalShop2_250814(self.config, self.device).run()
|
||||
|
||||
self.config.task_delay(server_update=True)
|
||||
|
||||
Reference in New Issue
Block a user