feat: add AVA2 minimap buttons and expanded taskbar entries

This commit is contained in:
shen
2026-10-17 16:40:54 -07:00
parent 3efa607908
commit e446ae8449
18 changed files with 504 additions and 22 deletions
+1 -1
View File
@@ -1853,7 +1853,7 @@ class Entry(Action):
# taskbar nor a free F9 (auto hunt), so the button stays next to the minimap, where touch can reach it.
def __init__(self,window):
Action.__init__(self,None,0,0,64,'洗练',lambda:window.interface.ToggleSwitchbotWindow())
self.minimap=weakref.proxy(window.interface.wndMiniMap);self.SetWindowName('SwitchbotEntry');self.OnUpdate()
self.minimap=weakref.proxy(window.interface.wndMiniMap);self.SetWindowName('SwitchbotEntry');self.OnUpdate();self.Hide()
def OnUpdate(self):
x,y=self.minimap.GetGlobalPosition();self.SetPosition(max(4,x-68),y+148)