1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: Conflicts among branches

- [CN][TW] Fix option name
- Change ButtonGrids.buttons() to ButtonGrids.buttons
This commit is contained in:
LmeSzinc
2021-07-24 17:47:34 +08:00
parent e918a5db97
commit 63de5be652
6 changed files with 22 additions and 27 deletions

View File

@@ -37,7 +37,7 @@ class Navbar:
"""
total = []
active = []
for index, button in enumerate(self.grids.buttons()):
for index, button in enumerate(self.grids.buttons):
if main.image_color_count(
button, color=self.active_color, threshold=self.active_threshold, count=self.active_count):
total.append(index)
@@ -139,6 +139,6 @@ class Navbar:
return True
if interval.reached():
main.device.click(self.grids.buttons()[index])
main.device.click(self.grids.buttons[index])
main.device.sleep((0.1, 0.2))
interval.reset()