Integrate AVA2 native shop and refine mobile controls and locale tooltips

This commit is contained in:
shen
2026-10-19 07:13:56 -07:00
parent 1359eab806
commit 24c1b3b416
36 changed files with 3501 additions and 52 deletions
@@ -8,6 +8,10 @@ import wndMgr
import mt_dungeons
import mt_battlepass
import mt_biolog
import player
# Source literals are UTF-8; classic text widgets consume the active locale code page.
L = player.AutoHuntLocalize
class MapTextToolTip(ui.Window):
@@ -25,7 +29,7 @@ class MapTextToolTip(ui.Window):
ui.Window.__del__(self)
def SetText(self, text):
self.textLine.SetText(text)
self.textLine.SetText(L(text))
def SetTooltipPosition(self, PosX, PosY):
self.textLine.SetPosition(PosX - 5, PosY)
@@ -146,7 +150,7 @@ class MinimapOuterRing(object):
btnSwitch.SetDownVisual("d:/ymir work/ui/game/new_inventory/switch_2.tga")
btnSwitch.SetPosition(37, 0)
if hasattr(btnSwitch, 'SetToolTipText'):
btnSwitch.SetToolTipText("自动洗练")
btnSwitch.SetToolTipText(L("自动洗练"))
btnSwitch.SetEvent(lambda: interface.ToggleSwitchbotWindow())
btnSwitch.Show()
wndExpandedTaskBar.btnSwitchbot = btnSwitch
@@ -165,7 +169,7 @@ class MinimapOuterRing(object):
btnWiki.SetDownVisual("d:/ymir work/ui/game/new_inventory/wiki_2.tga")
btnWiki.SetPosition(74, 0)
if hasattr(btnWiki, 'SetToolTipText'):
btnWiki.SetToolTipText("游戏百科")
btnWiki.SetToolTipText(L("游戏百科"))
btnWiki.SetEvent(wiki_toggle)
btnWiki.Show()
wndExpandedTaskBar.btnWiki = btnWiki