mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-05 20:30:17 +08:00
Replace 'threshold' with 'similarity' in method calls (#5767)
This commit is contained in:
@@ -312,7 +312,7 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
|||||||
MAP_MODE_SWITCH_HARD5,
|
MAP_MODE_SWITCH_HARD5,
|
||||||
MAP_MODE_SWITCH_HARD6,
|
MAP_MODE_SWITCH_HARD6,
|
||||||
]:
|
]:
|
||||||
if self.appear(button, offset=(20, 20), threshold=0.7):
|
if self.appear(button, offset=(20, 20), similarity=0.7):
|
||||||
if active:
|
if active:
|
||||||
return self._is_mod_switch_hard_active(button)
|
return self._is_mod_switch_hard_active(button)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ class GlobeOperation(ActionPointHandler):
|
|||||||
# Lower threshold to 0.75
|
# Lower threshold to 0.75
|
||||||
# Don't know why buy but fonts are different sometimes
|
# Don't know why buy but fonts are different sometimes
|
||||||
return [select for select in ZONE_SELECT if
|
return [select for select in ZONE_SELECT if
|
||||||
self.appear(select, offset=self._zone_select_offset, threshold=self._zone_select_similarity)]
|
self.appear(select, offset=self._zone_select_offset, similarity=self._zone_select_similarity)]
|
||||||
|
|
||||||
def is_in_zone_select(self):
|
def is_in_zone_select(self):
|
||||||
"""
|
"""
|
||||||
@@ -190,7 +190,7 @@ class GlobeOperation(ActionPointHandler):
|
|||||||
if self.is_zone_pinned():
|
if self.is_zone_pinned():
|
||||||
break
|
break
|
||||||
if self.appear_then_click(
|
if self.appear_then_click(
|
||||||
button, offset=self._zone_select_offset, threshold=self._zone_select_similarity, interval=5):
|
button, offset=self._zone_select_offset, similarity=self._zone_select_similarity, interval=5):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
def zone_type_select(self, types=('SAFE', 'DANGEROUS')):
|
def zone_type_select(self, types=('SAFE', 'DANGEROUS')):
|
||||||
|
|||||||
Reference in New Issue
Block a user