/
Stuf:AddBuilder("eclipsebar", function(unit, uf, name, db, a5, config) |
if unit ~= "player" then return end |
local f = EclipseBarFrame |
if db.hide then |
if not f or db.hide then |
if f then f:Hide() end |
return |
end |
Stuf:AddBuilder("holybar", function(unit, uf, name, db, a5, config) |
if unit ~= "player" then return end |
local f = PaladinPowerBar |
if db.hide then |
if not f or db.hide then |
if f then f:Hide() end |
return |
end |
Stuf:AddBuilder("priestbar", function(unit, uf, name, db, a5, config) |
if unit ~= "player" then return end |
local f = PriestBarFrame |
if db.hide then |
if not f or db.hide then |
if f then f:Hide() end |
return |
end |
f:EnableMouse(not db.nomouse) |
PriestBarFrame_OnLoad(f) |
end) |
end |
if CLS == "WARLOCK" then -- Warlock Power Frame ----------------------------------------------------------------------------------------------- |
Stuf:AddBuilder("shardbar", function(unit, uf, name, db, a5, config) |
if unit ~= "player" then return end |
local f = WarlockPowerFrame |
if db.hide then |
if not f or db.hide then |
if f then f:Hide() end |
return |
end |
if _G.BurningEmbersBarFrame then _G.BurningEmbersBarFrame:EnableMouse(not db.nomouse) end |
WarlockPowerFrame_OnLoad(f) |
end) |
end |
if CLS == "MONK" then -- Monk Power Frame ----------------------------------------------------------------------------------------------- |
Stuf:AddBuilder("chibar", function(unit, uf, name, db, a5, config) |
if unit ~= "player" then return end |
local f = MonkHarmonyBar |
if not f or db.hide then |
if f then f:Hide() end |
return |
end |
f:SetParent(uf) |
f:SetPoint("TOP", uf, "BOTTOM", db.x or 0, db.y or 0) |
f:SetScale(db.scale or 1) |
f:SetAlpha(db.alpha or 1) |
if db.framelevel then |
f:SetFrameLevel(db.framelevel) |
end |
if db.strata then |
f:SetFrameStrata(db.strata) |
end |
if _G.MonkHarmonyBar then _G.MonkHarmonyBar:EnableMouse(not db.nomouse) end |
for i = 1, 4, 1 do |
if _G.MonkHarmonyBar and _G.MonkHarmonyBar["lightEnergy"..i] then |
_G.MonkHarmonyBar["lightEnergy"..i]:EnableMouse(not db.nomouse) |
end |
end |
MonkHarmonyBar_OnLoad(f) |
end) |
end |
end |
db.player.holybar = db.player.holybar or { x=0, y=0, } |
db.player.shardbar = db.player.shardbar or { x=0, y=0, } |
db.player.chibar = db.player.chibar or { x=0, y=0, } |
db.player.eclipsebar = db.player.eclipsebar or { x=0, y=0, } |
db.player.priestbar = db.player.priestbar or { x=0, y=0, } |
## Title: Stuf Raid Frames |
## Author: TotalPackage |
## Notes: Raid unit frames. Assembly optional. (Does not require Stuf) |
## Version: 5.0.004 |
## Version: 5.0.005 |
## SavedVariables: StufRaidDB |
## SavedVariablesPerCharacter: StufRaidCharLayoutDB, StufRaidCharDB |
x=x2, y=y2, scale=scale, alpha=alpha, framelevel=framelevel, nomouse=nomouse, strata=bstrata, |
}, |
} |
local chibar = { |
name=L["Chi Bar"], type="group", hidden=function() return Stuf.CLS ~= "MONK" end, order=30, |
args = { |
hide=hide, blank=blank, |
x=x2, y=y2, scale=scale, alpha=alpha, framelevel=framelevel, nomouse=nomouse, strata=bstrata, |
}, |
} |
local eclipsebar = { |
name=L["Eclipse Bar"], type="group", hidden=function() return Stuf.CLS ~= "DRUID" end, order=30, |
args = { |
vehicleicon=vehicleicon, |
lfgicon=lfgicon, |
totembar=totembar, |
runebar=runebar, |
druidbar=druidbar, |
runebar=runebar, druidbar=druidbar, holybar=holybar, shardbar=shardbar, |
chibar=chibar, priestbar=priestbar, eclipsebar=eclipsebar, |
castbar=castbar, |
holybar=holybar, |
shardbar=shardbar, |
priestbar=priestbar, |
eclipsebar=eclipsebar, |
}, |
}, |
target = { |