mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Upd: TEMPLATE_COMBAT_LOADING
This commit is contained in:
parent
4a21f2e4e7
commit
c36586f8c5
Binary file not shown.
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 746 B |
Binary file not shown.
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 746 B |
Binary file not shown.
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 746 B |
@ -67,7 +67,7 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
|||||||
Returns:
|
Returns:
|
||||||
bool:
|
bool:
|
||||||
"""
|
"""
|
||||||
image = self.image_crop((0, 620, 1280, 720), copy=False)
|
image = self.image_crop((0, 620, 1280, 690), copy=False)
|
||||||
similarity, button = TEMPLATE_COMBAT_LOADING.match_luma_result(image)
|
similarity, button = TEMPLATE_COMBAT_LOADING.match_luma_result(image)
|
||||||
if similarity > 0.85:
|
if similarity > 0.85:
|
||||||
loading = (button.area[0] + 38 - LOADING_BAR.area[0]) / (LOADING_BAR.area[2] - LOADING_BAR.area[0])
|
loading = (button.area[0] + 38 - LOADING_BAR.area[0]) / (LOADING_BAR.area[2] - LOADING_BAR.area[0])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user