Can somebody tell me what is wrong about it, i cant figure this out
I have set draggable: true but i cant move it around what am i doing wrong ?
otui code
Lua
I have set draggable: true but i cant move it around what am i doing wrong ?
otui code
Lua:
UIWidget
id: mainwindow
size: 200 200
image-source: /images/ui/panel_flat
draggable: true
Lua
Code:
function init()
connect(LocalPlayer, {
onHealthChange = onHealthChange,
onManaChange = onManaChange })
ui = g_ui.displayUI('newhealthinfo')
print("newhealthinfo init")
end
function terminate()
disconnect(LocalPlayer, {
onHealthChange = onHealthChange,
onManaChange = onManaChange })
print("newhealthinfo terminate")
end
function onHealthChange(localPlayer, health, maxHealth)
print("Health changed: " .. health .. "/" .. maxHealth)
end
function onManaChange(localPlayer, mana, maxMana)
print("Mana changed: " .. mana .. "/" .. maxMana)
end