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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user