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

@@ -102,6 +102,8 @@ class VoucherShop(ShopClerk):
name='SHOP_GRID')
return shop_grid
shop_template_folder = './assets/shop/voucher'
@cached_property
def shop_voucher_items(self):
"""
@@ -113,7 +115,7 @@ class VoucherShop(ShopClerk):
shop_grid,
templates={}, amount_area=(60, 74, 96, 95),
price_area=(52, 132, 132, 162))
shop_voucher_items.load_template_folder('./assets/shop/voucher')
shop_voucher_items.load_template_folder(self.shop_template_folder)
shop_voucher_items.load_cost_template_folder('./assets/shop/cost')
shop_voucher_items.similarity = 0.85
shop_voucher_items.cost_similarity = 0.5