Little fixes
This commit is contained in:
parent
33ce0aa704
commit
f8b078ea91
|
@ -8,6 +8,8 @@ ProgressBar < UIProgressBar
|
|||
|
||||
$!on:
|
||||
visible: false
|
||||
margin-top: 0
|
||||
margin-bottom: 0
|
||||
height: 0
|
||||
|
||||
LifeProgressBar < UIProgressBar
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -210,7 +210,7 @@ int Item::getSubType()
|
|||
{
|
||||
if(isSplash() || isFluidContainer())
|
||||
return m_countOrSubType;
|
||||
if(g_game.getProtocolVersion() >= 860)
|
||||
if(g_game.getProtocolVersion() > 862)
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue