1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +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

@@ -121,7 +121,7 @@ class ItemGrid:
image: Pillow image
"""
self.items = []
for button in self.grids.buttons():
for button in self.grids.buttons:
item = Item(image, button)
if item.is_valid:
self.items.append(item)