|
|
@ -7,6 +7,7 @@ cooldownWindow = nil
|
|
|
|
cooldownButton = nil
|
|
|
|
cooldownButton = nil
|
|
|
|
contentsPanel = nil
|
|
|
|
contentsPanel = nil
|
|
|
|
spellCooldownPanel = nil
|
|
|
|
spellCooldownPanel = nil
|
|
|
|
|
|
|
|
lastPlayer = nil
|
|
|
|
|
|
|
|
|
|
|
|
function init()
|
|
|
|
function init()
|
|
|
|
connect(g_game, { onGameStart = online,
|
|
|
|
connect(g_game, { onGameStart = online,
|
|
|
@ -59,6 +60,15 @@ function online()
|
|
|
|
cooldownButton:hide()
|
|
|
|
cooldownButton:hide()
|
|
|
|
cooldownWindow:close()
|
|
|
|
cooldownWindow:close()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if lastPlayer ~= g_game.getCharacterName() then
|
|
|
|
|
|
|
|
refresh()
|
|
|
|
|
|
|
|
lastPlayer = g_game.getCharacterName()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function refresh()
|
|
|
|
|
|
|
|
spellCooldownPanel:destroyChildren()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function removeCooldown(progressRect)
|
|
|
|
function removeCooldown(progressRect)
|
|
|
|