mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
improve minimap
This commit is contained in:
@@ -85,7 +85,7 @@ function HealthBar.onMiniWindowClose()
|
||||
end
|
||||
|
||||
function HealthBar.offline()
|
||||
healthBarWindow:recursiveGetChildById('conditions_content'):destroyChildren()
|
||||
healthBarWindow:recursiveGetChildById('conditionPanel'):destroyChildren()
|
||||
end
|
||||
|
||||
-- hooked events
|
||||
@@ -121,7 +121,7 @@ function HealthBar.onStatesChange(localPlayer, now, old)
|
||||
end
|
||||
|
||||
function HealthBar.toggleIcon(bitChanged)
|
||||
local content = healthBarWindow:recursiveGetChildById('conditions_content')
|
||||
local content = healthBarWindow:recursiveGetChildById('conditionPanel')
|
||||
|
||||
local icon = content:getChildById(Icons[bitChanged].id)
|
||||
if icon then
|
||||
|
@@ -36,10 +36,10 @@ ManaLabel < GameLabel
|
||||
|
||||
ConditionWidget < UIWidget
|
||||
size: 18 18
|
||||
|
||||
|
||||
$!first:
|
||||
margin-left: 5
|
||||
|
||||
|
||||
MiniWindow
|
||||
icon: healthbar.png
|
||||
id: healthBarWindow
|
||||
@@ -53,11 +53,11 @@ MiniWindow
|
||||
ManaBar
|
||||
ManaLabel
|
||||
Panel
|
||||
id: conditions_content
|
||||
id: conditionPanel
|
||||
layout:
|
||||
type: horizontalBox
|
||||
fit-children: true
|
||||
height: 18
|
||||
margin-top: 5
|
||||
margin-top: 5
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalcenter: parent.horizontalcenter
|
||||
|
Reference in New Issue
Block a user