1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-28 07:58:16 +08:00

Upd: Update server CN 2025-08-14 new shop UI

This commit is contained in:
weeswelai
2025-08-19 19:55:09 +08:00
parent ba2a07c256
commit 0f14b7693d
43 changed files with 382 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
from module.base.decorator import cached_property
from module.logger import logger
from module.shop.base import ShopItemGrid
from module.shop.base import ShopItemGrid, ShopItemGrid_250814
from module.shop.clerk import ShopClerk
from module.shop.shop_status import ShopStatus
from module.shop.ui import ShopUI
@@ -76,3 +76,18 @@ class MeritShop(ShopClerk, ShopUI, ShopStatus):
if refresh and self.shop_refresh():
continue
break
class MeritShop_250814(MeritShop):
# New UI in 2025-08-14
@cached_property
def shop_merit_items(self):
"""
Returns:
ShopItemGrid:
"""
shop_grid = self.shop_grid
shop_merit_items = ShopItemGrid_250814(shop_grid, templates={}, template_area=(25, 20, 82, 72), amount_area=(42, 50, 65, 65), cost_area=(-12, 115, 60, 155), price_area=(18, 121, 85, 150))
shop_merit_items.load_template_folder(self.shop_template_folder)
shop_merit_items.load_cost_template_folder('./assets/shop/cost')
return shop_merit_items