mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Little fixes
This commit is contained in:
@@ -164,12 +164,27 @@ end
|
||||
|
||||
function setHealthTooltip(tooltip)
|
||||
healthTooltip = tooltip
|
||||
|
||||
local localPlayer = g_game.getLocalPlayer()
|
||||
if localPlayer then
|
||||
healthBar:setTooltip(tr(healthTooltip, localPlayer:getHealth(), localPlayer:getMaxHealth()))
|
||||
end
|
||||
end
|
||||
|
||||
function setManaTooltip(tooltip)
|
||||
manaTooltip = tooltip
|
||||
|
||||
local localPlayer = g_game.getLocalPlayer()
|
||||
if localPlayer then
|
||||
manaBar:setTooltip(tr(manaTooltip, localPlayer:getMana(), localPlayer:getMaxMana()))
|
||||
end
|
||||
end
|
||||
|
||||
function setExperienceTooltip(tooltip)
|
||||
experienceTooltip = tooltip
|
||||
|
||||
local localPlayer = g_game.getLocalPlayer()
|
||||
if localPlayer then
|
||||
experienceBar:setTooltip(tr(experienceTooltip, localPlayer:getLevelPercent(), localPlayer:getLevel()+1))
|
||||
end
|
||||
end
|
||||
|
@@ -67,7 +67,7 @@ MiniWindow
|
||||
icon: /images/topbuttons/healthinfo
|
||||
id: healthInfoWindow
|
||||
!text: tr('Health Info')
|
||||
height: 124
|
||||
height: 123
|
||||
@onClose: modules.game_healthinfo.onMiniWindowClose()
|
||||
&save: true
|
||||
|
||||
|
Reference in New Issue
Block a user