mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 07:28:21 +08:00
Opt: Cache ButtonGrid.buttons and add move() crop()
This commit is contained in:
@@ -112,7 +112,7 @@ class ActionPointHandler(UI):
|
||||
Returns:
|
||||
int: 0 to 3. 0 for oil, 1 for 20 ap box, 2 for 50 ap box, 3 for 100 ap box.
|
||||
"""
|
||||
for index, item in enumerate(ACTION_POINT_GRID.buttons()):
|
||||
for index, item in enumerate(ACTION_POINT_GRID.buttons):
|
||||
area = item.area
|
||||
color = get_color(self.device.image, area=(area[0], area[3] + 5, area[2], area[3] + 10))
|
||||
# Active button will turn blue.
|
||||
|
||||
Reference in New Issue
Block a user