mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Upd: More general shop templates
This commit is contained in:
parent
3517f83069
commit
be97302d19
BIN
assets/shop/general/PlateGunT2_2.png
Normal file
BIN
assets/shop/general/PlateGunT2_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@ -221,6 +221,13 @@ class ShopBase(ModuleBase):
|
||||
timeout.reset()
|
||||
continue
|
||||
|
||||
if self.config.SHOP_EXTRACT_TEMPLATE:
|
||||
if self.shop_template_folder:
|
||||
logger.info(f'Extract item templates to {self.shop_template_folder}')
|
||||
shop_items.extract_template(self.device.image, self.shop_template_folder)
|
||||
else:
|
||||
logger.warning('SHOP_EXTRACT_TEMPLATE enabled but shop_template_folder is not set, skip extracting')
|
||||
|
||||
shop_items.predict(
|
||||
self.device.image,
|
||||
name=True,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user