feat: add AVA2 minimap buttons and expanded taskbar entries
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user