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

Fix: [EN] Smaller invest button

EN has 2 kinds of button, first and second button have smaller text and third button has normal size text
This commit is contained in:
LmeSzinc
2025-03-30 00:22:42 +08:00
parent cf2869caac
commit 3a1e851cad
3 changed files with 3 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ class HospitalClue(HospitalUI):
# Search INVEST
buttons = TEMPLATE_INVEST.match_multi(image)
buttons += TEMPLATE_INVEST2.match_multi(image)
buttons = sorted(buttons, key=lambda b: b.area[1])
count = len(buttons)
if count == 0:
return None