/
## Title: Stuf Unit Frames |
## Author: TotalPackage |
## Notes: Main unitframes replacement. Assembly optional. |
## Version: 5.0.003 |
## Version: 5.0.004 |
## SavedVariables: StufDB |
## SavedVariablesPerCharacter: StufCharDB |
hpgreen, hpred, gray = dbg.hpgreen, dbg.hpred, dbg.gray |
dbg.classification.unknown = dbg.classification.unknown or "??" |
dbg.nK, dbg.nM = dbg.nK or "K", dbg.nM or "M" |
Stuf.dbg = db.global |
Stuf.statusbar = Stuf:GetMedia("statusbar", dbg.bartexture) |
Stuf.font = Stuf:GetMedia("font", dbg.font) |
d2:Hide() |
d3:Show() |
d3:SetUnit(unit) |
d3:SetCamera(f.db.camera or 0) |
d3:SetPortraitZoom(f.db.camera or 1) |
d3:SetAlpha(0.8) |
d3:SetAlpha(uf.cache.dead and 0.5 or 1) |
if f.portraitrefreshing then |
end |
end |
local function PortraitOnShow(this) |
this:SetCamera(this.db.camera or 0) |
this:SetPortraitZoom(this.db.camera or 1) |
this:SetModelScale(2) |
UpdatePortrait(this.unit, this.uf, this.f) |
end |
## Title: Stuf Raid Frames |
## Author: TotalPackage |
## Notes: Raid unit frames. Assembly optional. (Does not require Stuf) |
## Version: 5.0.003 |
## Version: 5.0.004 |
## SavedVariables: StufRaidDB |
## SavedVariablesPerCharacter: StufRaidCharLayoutDB, StufRaidCharDB |
end, |
}, |
camera = { |
name=L["3D Camera View"], type="select", values={ [0]=L["Facial"], [1]=L["Body"], }, set=set, get=getorzero, order=20.3, |
name=L["3D Camera View"], type="select", values={ [1]=L["Facial"], [0]=L["Body"], }, set=set, get=getorone, order=20.3, |
hidden=function(info) |
local unit, object, setting = infobreakdown(info) |
return not db[unit][object].show3d |
end, |
hidden=function() return GetCVar("hidePartyInRaid") ~= "1" end, |
}, |
disableboss={ name=L["Disable Default Boss Frames"], type="toggle", width="double", desc=L["Automatically reloads UI"], confirm=true, |
disableboss={ name=L["Disable Default Boss Frames"], type="toggle", width="double", desc=L["Disable default boss frames and use Stuf's. Automatically reloads UI"], confirm=true, |
set=function(info, v) set(info, v) ReloadUI() end, get=get, order=12.6, }, |
disableprframes={ name=L["Hide Default Group Frames"], desc=L["May need to reload to take full effect."], type="toggle", width="double", |
set=function(info, v) set(info, v) end, get=get, order=12.7, }, |
}, |
} |
if Boss1TargetFrame then |
if Boss1TargetFrame and (not Stuf.dbg or Stuf.dbg.disableboss) then |
options.args.boss1 = { |
name=_G.BOSS.." 1", type="group", order=50, |
args = { |