1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-27 00:19:23 +08:00

Dev: Add SHOP_EXTRACT_TEMPLATE to collect new item templates

This commit is contained in:
LmeSzinc
2022-12-31 01:27:57 +08:00
parent 33384d4685
commit 815dde4a5c
10 changed files with 52 additions and 21 deletions

View File

@@ -10,6 +10,8 @@ OCR_SHOP_MERIT = Digit(SHOP_MERIT, letter=(239, 239, 239), name='OCR_SHOP_MERIT'
class MeritShop(ShopClerk, ShopUI):
shop_template_folder = './assets/shop/merit'
@cached_property
def shop_filter(self):
"""
@@ -26,7 +28,7 @@ class MeritShop(ShopClerk, ShopUI):
"""
shop_grid = self.shop_grid
shop_merit_items = ShopItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
shop_merit_items.load_template_folder('./assets/shop/merit')
shop_merit_items.load_template_folder(self.shop_template_folder)
shop_merit_items.load_cost_template_folder('./assets/shop/cost')
return shop_merit_items