1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 15:36:59 +08:00

Opt: Cache ButtonGrid.buttons and add move() crop()

This commit is contained in:
LmeSzinc
2021-06-29 23:04:19 +08:00
parent 97980d1681
commit e6facc606a
13 changed files with 50 additions and 18 deletions

View File

@@ -41,7 +41,7 @@ class GuildBase(UI):
current = 0
total = 0
for idx, button in enumerate(GUILD_SIDEBAR.buttons()):
for idx, button in enumerate(GUILD_SIDEBAR.buttons):
image = np.array(self.image_area(button))
if np.sum(image[:, :, 0] > 235) > 100:
current = idx + 1