1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 11:19:03 +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

@@ -2,7 +2,7 @@ from module.base.decorator import cached_property
from module.logger import logger
from module.ocr.ocr import Digit
from module.shop.assets import *
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
@@ -153,3 +153,19 @@ class GeneralShop(ShopClerk, ShopUI, ShopStatus):
if refresh and self.shop_refresh():
continue
break
class GeneralShop_250814(GeneralShop):
# New UI in 2025-08-14
@cached_property
def shop_general_items(self):
"""
Returns:
ShopItemGrid:
"""
shop_grid = self.shop_grid
shop_general_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_general_items.load_template_folder(self.shop_template_folder)
shop_general_items.load_cost_template_folder('./assets/shop/cost')
return shop_general_items