mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Fix issue #21, but miniwindows can be a lot smarter
This commit is contained in:
@@ -35,10 +35,11 @@ function init()
|
||||
|
||||
connect(g_game, { onGameEnd = offline })
|
||||
|
||||
healthInfoWindow = g_ui.loadUI('healthinfo.otui', modules.game_interface.getRightPanel())
|
||||
healthInfoButton = TopMenu.addRightGameToggleButton('healthInfoButton', tr('Health Information'), 'healthinfo.png', toggle)
|
||||
healthInfoWindow:disableResize()
|
||||
healthInfoButton:setOn(true)
|
||||
|
||||
healthInfoWindow = g_ui.loadUI('healthinfo.otui', modules.game_interface.getRightPanel())
|
||||
healthInfoWindow:disableResize()
|
||||
healthBar = healthInfoWindow:recursiveGetChildById('healthBar')
|
||||
manaBar = healthInfoWindow:recursiveGetChildById('manaBar')
|
||||
healthLabel = healthInfoWindow:recursiveGetChildById('healthLabel')
|
||||
|
Reference in New Issue
Block a user