mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-21 20:29:29 +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