remove debug message, minor battle fix
This commit is contained in:
parent
fa3d60a00a
commit
95e0a41b55
|
@ -280,9 +280,6 @@ function Battle.removeCreature(creature)
|
||||||
lastBattleButtonSwitched = nil
|
lastBattleButtonSwitched = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if battleButtonsByCreaturesList[creatureId].isTarget then
|
|
||||||
g_game.cancelAttack()
|
|
||||||
end
|
|
||||||
battleButtonsByCreaturesList[creatureId].creature:hideStaticSquare()
|
battleButtonsByCreaturesList[creatureId].creature:hideStaticSquare()
|
||||||
battleButtonsByCreaturesList[creatureId]:destroy()
|
battleButtonsByCreaturesList[creatureId]:destroy()
|
||||||
battleButtonsByCreaturesList[creatureId] = nil
|
battleButtonsByCreaturesList[creatureId] = nil
|
||||||
|
|
|
@ -71,6 +71,10 @@ function HealthBar.toggle()
|
||||||
healthBarButton:setOn(visible)
|
healthBarButton:setOn(visible)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function HealthBar.offline()
|
||||||
|
healthBarWindow:recursiveGetChildById('conditions_content'):destroyChildren()
|
||||||
|
end
|
||||||
|
|
||||||
-- hooked events
|
-- hooked events
|
||||||
function HealthBar.onHealthChange(localPlayer, health, maxHealth)
|
function HealthBar.onHealthChange(localPlayer, health, maxHealth)
|
||||||
healthLabel:setText(health .. ' / ' .. maxHealth)
|
healthLabel:setText(health .. ' / ' .. maxHealth)
|
||||||
|
@ -115,9 +119,3 @@ function HealthBar.toggleIcon(bitChanged)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function HealthBar.offline()
|
|
||||||
local conditionsContent = healthBarWindow:recursiveGetChildById('conditions_content')
|
|
||||||
local count = conditionsContent:getChildCount()
|
|
||||||
for i = count, 1, -1 do conditionsContent:getChildByIndex(i):destroy() end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
|
@ -237,7 +237,6 @@ void LocalPlayer::setLevel(double level, double levelPercent)
|
||||||
m_level = level;
|
m_level = level;
|
||||||
m_levelPercent = levelPercent;
|
m_levelPercent = levelPercent;
|
||||||
|
|
||||||
dump << "yeah";
|
|
||||||
callLuaField("onLevelChange", level, levelPercent, oldLevel, oldLevelPercent);
|
callLuaField("onLevelChange", level, levelPercent, oldLevel, oldLevelPercent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue