Commit 1dca160d authored by Azilroka's avatar Azilroka
Browse files

UF: Castbar Strata / Level & Target Raid Icons on Party | Tank | Assist

parent 2a6885a3
......@@ -156,6 +156,8 @@ function UF:Update_AssistFrames(frame, db)
--Range
UF:Configure_Range(frame)
UF:Configure_RaidIcon(frame)
if not frame.isChild then
--Auras
UF:EnableDisable_Auras(frame)
......
......@@ -32,6 +32,8 @@ function UF:Construct_PartyFrames()
self.MouseGlow = UF:Construct_MouseGlow(self)
self.TargetGlow = UF:Construct_TargetGlow(self)
self.Name = UF:Construct_NameText(self)
self.RaidTargetIndicator = UF:Construct_RaidIcon(self)
self.originalParent = self:GetParent()
self.childType = "pet"
......@@ -206,6 +208,8 @@ function UF:Update_PartyFrames(frame, db)
--Health
UF:Configure_HealthBar(frame)
UF:Configure_RaidIcon(frame)
--Name
UF:UpdateNameSettings(frame, frame.childType)
else
......
......@@ -154,6 +154,8 @@ function UF:Update_TankFrames(frame, db)
--Range
UF:Configure_Range(frame)
UF:Configure_RaidIcon(frame)
if not frame.isChild then
--Auras
UF:EnableDisable_Auras(frame)
......
......@@ -1364,6 +1364,12 @@ P['unitframe'] = {
['tickWidth'] = 1,
['tickColor'] = {r = 0, g = 0, b = 0, a = 0.8},
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['classbar'] = {
['enable'] = true,
......@@ -1546,6 +1552,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['aurabar'] = {
['enable'] = true,
......@@ -1867,6 +1879,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['aurabar'] = {
['enable'] = false,
......@@ -2112,6 +2130,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
},
['pettarget'] = {
......@@ -2305,6 +2329,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['raidicon'] = {
['enable'] = true,
......@@ -2427,6 +2457,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['pvpTrinket'] = {
['enable'] = true,
......@@ -2597,6 +2633,12 @@ P['unitframe'] = {
['iconXOffset'] = -10,
['iconYOffset'] = 0,
['timeToHold'] = 0,
['strataAndLevel'] = {
['useCustomStrata'] = false,
['frameStrata'] = 'LOW',
['useCustomLevel'] = false,
['frameLevel'] = 1,
},
},
['roleIcon'] = {
['enable'] = true,
......@@ -2641,6 +2683,14 @@ P['unitframe'] = {
['yOffset'] = 0,
['xOffset'] = 0,
},
['raidicon'] = {
['enable'] = true,
['size'] = 18,
['attachTo'] = 'TOP',
['attachToObject'] = 'Frame',
['xOffset'] = 0,
['yOffset'] = 8,
},
},
['raidicon'] = {
['enable'] = true,
......@@ -3236,6 +3286,14 @@ P['unitframe'] = {
['color'] = {r = 1, g = 0.9, b = 0, a = 1}
},
},
['raidicon'] = {
['enable'] = true,
['size'] = 18,
['attachTo'] = 'TOP',
['attachToObject'] = 'Frame',
['xOffset'] = 0,
['yOffset'] = 8,
},
['targetsGroup'] = {
['enable'] = true,
['anchorPoint'] = 'RIGHT',
......@@ -3251,6 +3309,14 @@ P['unitframe'] = {
['xOffset'] = 0,
['attachTextTo'] = 'Health',
},
['raidicon'] = {
['enable'] = true,
['size'] = 18,
['attachTo'] = 'TOP',
['attachToObject'] = 'Frame',
['xOffset'] = 0,
['yOffset'] = 8,
},
},
},
['assist'] = {
......@@ -3335,6 +3401,14 @@ P['unitframe'] = {
['color'] = {r = 1, g = 0.9, b = 0, a = 1}
},
},
['raidicon'] = {
['enable'] = true,
['size'] = 18,
['attachTo'] = 'TOP',
['attachToObject'] = 'Frame',
['xOffset'] = 0,
['yOffset'] = 8,
},
['targetsGroup'] = {
['enable'] = true,
['anchorPoint'] = 'RIGHT',
......@@ -3350,6 +3424,14 @@ P['unitframe'] = {
['xOffset'] = 0,
['attachTextTo'] = 'Frame',
},
['raidicon'] = {
['enable'] = true,
['size'] = 18,
['attachTo'] = 'TOP',
['attachToObject'] = 'Frame',
['xOffset'] = 0,
['yOffset'] = 8,
},
},
},
},
......
......@@ -899,6 +899,50 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
type = "range",
min = 0, max = 10, step = .1,
},
strataAndLevel = {
order = 9,
type = "group",
name = L["Strata and Level"],
get = function(info) return E.db.unitframe.units[groupName]['castbar']["strataAndLevel"][ info[#info] ] end,
set = function(info, value) E.db.unitframe.units[groupName]['castbar']["strataAndLevel"][ info[#info] ] = value; updateFunc(UF, groupName, numUnits) end,
guiInline = true,
args = {
useCustomStrata = {
order = 1,
type = "toggle",
name = L["Use Custom Strata"],
},
frameStrata = {
order = 2,
type = "select",
name = L["Frame Strata"],
values = {
["BACKGROUND"] = "BACKGROUND",
["LOW"] = "LOW",
["MEDIUM"] = "MEDIUM",
["HIGH"] = "HIGH",
["DIALOG"] = "DIALOG",
["TOOLTIP"] = "TOOLTIP",
},
},
spacer = {
order = 3,
type = "description",
name = "",
},
useCustomLevel = {
order = 4,
type = "toggle",
name = L["Use Custom Level"],
},
frameLevel = {
order = 5,
type = "range",
name = L["Frame Level"],
min = 2, max = 128, step = 1,
},
},
}
},
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment