1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-18 02:11:29 +08:00

Chore: Rename "threshold" in template matching to "similarity"

to be differ from the "threshold" in color matching
This commit is contained in:
LmeSzinc
2024-12-09 15:20:34 +08:00
parent 40b3c252dc
commit 164db6f4da
10 changed files with 44 additions and 46 deletions

View File

@@ -117,7 +117,7 @@ class DossierReward(Combat, UI):
in: dossier meta page
"""
self.device.screenshot()
if self.appear(DOSSIER_REWARD_RECEIVE, offset=(-40, 10, -10, 40), threshold=0.7):
if self.appear(DOSSIER_REWARD_RECEIVE, offset=(-40, 10, -10, 40), similarity=0.7):
logger.info('Found dossier reward red dot')
return True
else: