1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 04:25:56 +08:00

Merge pull request #626 from Cyumxi/master

[fix]: Missing button name
This commit is contained in:
LmeSzinc
2021-09-22 11:36:32 +08:00
committed by GitHub

View File

@@ -335,7 +335,7 @@ class Retirement(Enhancement):
sim, button = template.match_result(self.device.image.resize(size=(1189, 669))) sim, button = template.match_result(self.device.image.resize(size=(1189, 669)))
if sim > self.config.COMMON_CV_THRESHOLD: if sim > self.config.COMMON_CV_THRESHOLD:
return Button(button=tuple(_*155//144 for _ in button.button), area=button.area, color=button.color) return Button(button=tuple(_*155//144 for _ in button.button), area=button.area, color=button.color, name=f'TEMPLATE_{commen_cv_name}_RETIRE')
return None return None
else: else:
@@ -344,7 +344,7 @@ class Retirement(Enhancement):
sim, button = template.match_result(self.device.image.resize(size=(1189, 669))) sim, button = template.match_result(self.device.image.resize(size=(1189, 669)))
if sim > self.config.COMMON_CV_THRESHOLD: if sim > self.config.COMMON_CV_THRESHOLD:
return Button(button=tuple(_*155//144 for _ in button.button), area=button.area, color=button.color) return Button(button=tuple(_*155//144 for _ in button.button), area=button.area, color=button.color, name=f'TEMPLATE_{self.config.COMMON_CV_NAME.upper()}_RETIRE')
return None return None