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:
@@ -424,7 +424,7 @@ class GuildLogistics(GuildBase):
|
||||
# Loop EXCHANGE_GRIDS to detect for red text in bottom right area
|
||||
# indicating player lacks inventory for that item
|
||||
in_red_list = []
|
||||
for button in EXCHANGE_GRIDS.buttons():
|
||||
for button in EXCHANGE_GRIDS.buttons:
|
||||
area = area_offset((35, 64, 83, 83), button.area[0:2])
|
||||
if self.image_color_count(area, color=(255, 93, 90), threshold=221, count=20):
|
||||
in_red_list.append(True)
|
||||
|
||||
Reference in New Issue
Block a user