Version 0.8

- 2.0 compatible
- Removed bunch of unused libs (recommended to delete your /libs folder before updating)
- Added a restriction to open configuration settings only out of combat
- TargetInfo module optimized (no longer eats your memory and babies when changing options)
- Shows up to 40 buffs/debuffs, ability to filter buffs (never/in combat/always)
- No longer uses SpellStatus lib (new events do everything worth doing)
- New module TargetCast, basically does what Blizzard target frame cast bar does
- Removed module TimerBar (it was next to useless)
- Brackets around bar texts now toggleable
- Some misc. bug fixes (eg. colors now change properly when a duel starts)
This commit is contained in:
iceroth
2006-12-04 15:58:07 +00:00
parent 17c3ddbfd8
commit 7740ef9f74
13 changed files with 677 additions and 522 deletions

View File

@ -42,6 +42,7 @@ function IceBarElement.prototype:GetDefaultSettings()
settings["barFontBold"] = true
settings["lockTextAlpha"] = true
settings["textVisible"] = {upper = true, lower = true}
settings["brackets"] = true
return settings
end
@ -181,6 +182,19 @@ function IceBarElement.prototype:GetOptions()
end,
order = 15
},
brackets = {
type = 'toggle',
name = 'Brackets around lower text',
desc = 'Toggle brackets visibility',
get = function()
return self.moduleSettings.brackets
end,
set = function(v)
self.moduleSettings.brackets = v
self:Redraw()
end,
order = 16
},
}
}
@ -469,10 +483,20 @@ end
function IceBarElement.prototype:GetFormattedText(value1, value2)
local color = "ffcccccc"
if not (value2) then
return string.format("|c%s[|r%s|c%s]|r", color, value1, color)
local bLeft = ""
local bRight = ""
if (self.moduleSettings.brackets) then
bLeft = "["
bRight = "]"
end
return string.format("|c%s[|r%s|c%s/|r%s|c%s]|r", color, value1, color, value2, color)
if not (value2) then
return string.format("|c%s%s|r%s|c%s%s|r", color, bLeft, value1, color, bRight)
end
return string.format("|c%s%s|r%s|c%s/|r%s|c%s%s|r", color, bLeft, value1, color, value2, color, bRight)
end