mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: Cache ButtonGrid.buttons and add move() crop()
This commit is contained in:
@@ -226,7 +226,7 @@ class GuildOperations(GuildBase):
|
||||
text = []
|
||||
index = 0
|
||||
button = None
|
||||
for switch in switch_grid.buttons():
|
||||
for switch in switch_grid.buttons:
|
||||
if self.image_color_count(switch, color=color_inactive, threshold=235, count=30):
|
||||
index += 1
|
||||
text.append(f'| {index} |')
|
||||
|
||||
Reference in New Issue
Block a user