1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-23 02:53:44 +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

@@ -12,6 +12,7 @@ OCR_SHOP_GEMS = Digit(SHOP_GEMS, letter=(255, 243, 82), name='OCR_SHOP_GEMS')
class GeneralShop(ShopClerk, ShopUI):
gems = 0
shop_template_folder = './assets/shop/general'
@cached_property
def shop_filter(self):
@@ -29,7 +30,7 @@ class GeneralShop(ShopClerk, ShopUI):
"""
shop_grid = self.shop_grid
shop_general_items = ShopItemGrid(shop_grid, templates={}, amount_area=(60, 74, 96, 95))
shop_general_items.load_template_folder('./assets/shop/general')
shop_general_items.load_template_folder(self.shop_template_folder)
shop_general_items.load_cost_template_folder('./assets/shop/cost')
return shop_general_items