WoWInterface SVN StellarUF

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 127 to Rev 128
    Reverse comparison

Rev 127 → Rev 128

trunk/StufRaid_Options/options.lua
246,10 → 246,11
for index, color in pairs(FACTION_BAR_COLORS) do
defaults.reactioncolor[index] = { r=color.r, g=color.g, b=color.b, }
end
for i = 0, 10, 1 do
for i = 0, 20, 1 do
local color = PowerBarColor[i]
if not color then break end
defaults.powercolor[i] = { r=color.r, g=color.g, b=color.b, }
if color then
defaults.powercolor[i] = { r=color.r, g=color.g, b=color.b, }
end
end
if restore then
if perchar then
1419,9 → 1420,12
 
 
do -- setup options for grouped colors
local keys = {
powercolor = { MANA=0, RAGE=1, FOCUS=2, ENERGY=3, HAPPINESS=4, RUNES=5, RUNIC_POWER=6, },
reactioncolor = {},
local keys={
powercolor={
MANA=0, RAGE=1, FOCUS=2, ENERGY=3, HAPPINESS=4, RUNES=5, RUNIC_POWER=6, SOUL_SHARDS=7,
LUNAR_POWER=8, HOLY_POWER=9, MAELSTROM=11, INSANITY=13, FURY=17, PAIN=18,
},
reactioncolor={},
}
local function getcolor(info)
local blah, colorgroup, key = infobreakdown(info)
trunk/Stuf/Stuf.toc
2,7 → 2,7
## Title: Stuf Unit Frames
## Author: TotalPackage
## Notes: Main unitframes replacement. Assembly optional.
## Version: 7.0.001
## Version: 7.0.001a
 
## SavedVariables: StufDB
## SavedVariablesPerCharacter: StufCharDB
trunk/Stuf/bars.lua
934,7 → 934,8
end)
 
end
if CLS == "DRUID" or CLS == "PRIEST" or "SHAMAN" then -- Druid Bar ------------------------------------------------------------------------------
 
if CLS == "DRUID" or CLS == "PRIEST" or CLS == "SHAMAN" then -- Druid Bar ------------------------------------------------------------------------------
Stuf:AddBuilder("druidbar", function(unit, uf, name, db)
if unit ~= "player" then return end
local f = uf[name]
977,6 → 978,7
f.bar:SetVertexColor(c.r, c.g, c.b, db.baralpha or c.a or 1)
end)
end
 
if CLS == "DEATHKNIGHT" then -- Rune Bar -------------------------------------------------------------------------------------------------------
 
Stuf:AddBuilder("runebar", function(unit, uf, name, db, a5, config)
1075,7 → 1077,6
if _G.ShardBarFrame then _G.ShardBarFrame:EnableMouse(not db.nomouse) end
if _G.DemonicFuryBarFrame then _G.DemonicFuryBarFrame:EnableMouse(not db.nomouse) end
if _G.BurningEmbersBarFrame then _G.BurningEmbersBarFrame:EnableMouse(not db.nomouse) end
WarlockPowerFrame_OnLoad(f)
end)
 
end
1105,5 → 1106,5
end
end
end)
end
 
end
trunk/StufRaid/StufRaid.toc
2,7 → 2,7
## Title: Stuf Raid Frames
## Author: TotalPackage
## Notes: Raid unit frames. Assembly optional. (Does not require Stuf)
## Version: 7.0.001
## Version: 7.0.001a
 
## SavedVariables: StufRaidDB
## SavedVariablesPerCharacter: StufRaidCharLayoutDB, StufRaidCharDB
trunk/StufRaid/core.lua
124,6 → 124,21
dbc = StufRaidCharDB
classcolor, powercolor, reactioncolor = db.classcolor, db.powercolor, db.reactioncolor
basec, backc, bordc, mousec, targetc, tshadowc = db.basec, db.backc, db.bordc, db.mousec, db.targetc, db.tshadowc
 
if db.initlegion ~= 1 then
for i = 0, 20, 1 do
local color = PowerBarColor[i]
if color and (not powercolor[i] or not powercolor[i].r) then
powercolor[i]={ r=color.r, g=color.g, b=color.b, }
end
end
for class, color in pairs(CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS) do
if not classcolor[class] or not classcolor[class].r then
classcolor[class]={ r=color.r, g=color.g, b=color.b, }
end
end
db.initlegion = 1
end
 
if not a.OpenOptions then -- AceConfig hack to be LOD friendly
panel = CreateFrame("Frame")