mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 21:13:26 +02:00
change loadUI/UI.display lua API
This commit is contained in:
@@ -5,7 +5,7 @@ local healthManaPanel = nil
|
||||
|
||||
-- public functions
|
||||
function HealthMana.create()
|
||||
healthManaPanel = loadUI("/health_mana/health_mana.otui", Game.gameRightPanel)
|
||||
healthManaPanel = UI.display('health_mana.otui', { parent = Game.gameRightPanel })
|
||||
|
||||
local healthBar = UIProgressBar.create()
|
||||
healthManaPanel:addChild(healthBar)
|
||||
|
Reference in New Issue
Block a user