Fix loading, style, tooltip

This commit is contained in:
Samuel
2012-10-09 03:43:52 +02:00
parent ba407072a5
commit c0a3b083f6
3 changed files with 9 additions and 8 deletions

View File

@@ -66,12 +66,12 @@ function onSpellCooldown(iconId, duration)
icon = g_ui.createWidget('SpellIcon', spellCooldownPanel)
icon:setId(spellName)
icon:setImageSource('/game_cooldown/icons/' .. SpelllistSettings[modules.game_spelllist.getSpelllistProfile()].iconFile)
icon:setTooltip(spellformula)
icon:setImageClip(modules.game_spelllist.getIconImageClip(otcIconId))
icon.event = scheduleEvent(function() icon:destroy() end, duration)
local progressRect = g_ui.createWidget('ProgressRect', icon)
local progressRect = g_ui.createWidget('SpellProgressRect', icon)
updateProgressRect(progressRect, duration/25, true)
progressRect:setTooltip(spellName)
end
end