mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Some fixes and design tweaks:
* Fixed the game_viplist module to work with the latest vip protocols. * Fixed a referencing error in the game_cooldown module * Started editing the design of the popupmenu (needs more work).
This commit is contained in:
@@ -91,9 +91,9 @@ function onSpellCooldown(iconId, duration)
|
||||
icon:setId(spellName)
|
||||
icon:setImageSource('/game_cooldown/icons/' .. SpelllistSettings[modules.game_spelllist.getSpelllistProfile()].iconFile)
|
||||
icon:setImageClip(modules.game_spelllist.getIconImageClip(otcIconId))
|
||||
icon.event = scheduleEvent(function() icon:destroy() end, duration)
|
||||
icon.event = scheduleEvent(function() icon:destroy() icon = nil end, duration)
|
||||
|
||||
local progressRect = g_ui.createWidget('SpellProgressRect', icon)
|
||||
local progressRect = g_ui.createWidget('SpellProgressRect')
|
||||
updateProgressRect(progressRect, duration/25, true)
|
||||
progressRect:setTooltip(spellName)
|
||||
end
|
||||
|
Reference in New Issue
Block a user