cleanup unitframes

This commit is contained in:
Crum
2018-01-03 16:13:32 -06:00
parent ac2f9135b0
commit 2acd845058
2 changed files with 9 additions and 14 deletions
@@ -19,5 +19,6 @@ Filters.lua
NamePlates.lua NamePlates.lua
Skins.lua Skins.lua
Tooltip.lua Tooltip.lua
Unitframes.lua
DataBars.lua DataBars.lua
Maps.lua Maps.lua
+8 -14
View File
@@ -23,9 +23,8 @@ local RAID_CLASS_COLORS = RAID_CLASS_COLORS
local FRIEND, ENEMY, SHOW, HIDE, DELETE, NONE, FILTERS, FONT_SIZE, COLOR = "FRIEND", "ENEMY", "SHOW", "HIDE", "DELETE", "NONE", "FILTERS", "FONT_SIZE", "COLOR" local FRIEND, ENEMY, SHOW, HIDE, DELETE, NONE, FILTERS, FONT_SIZE, COLOR = "FRIEND", "ENEMY", "SHOW", "HIDE", "DELETE", "NONE", "FILTERS", "FONT_SIZE", "COLOR"
local SHIFT_KEY, ALT_KEY, CTRL_KEY = "SHIFT_KEY", "ALT_KEY", "CTRL_KEY" local SHIFT_KEY, ALT_KEY, CTRL_KEY = "SHIFT_KEY", "ALT_KEY", "CTRL_KEY"
local HEALTH, MANA, NAME, PLAYER, CLASS, ROLE, GROUP = "HEALTH", "MANA", "NAME", "PLAYER", "CLASS", "ROLE", "GROUP" local HEALTH, MANA, NAME, PLAYER, CLASS, GROUP = HEALTH, MANA, NAME, PLAYER, CLASS, GROUP
local RAGE, FOCUS, ENERGY, PAIN, FURY, INSANITY, MAELSTROM, RUNIC_POWER, HOLY_POWER, LUNAR_POWER = "RAGE", "FOCUS", "ENERGY", "PAIN", "FURY", "INSANITY", "MAELSTROM", "RUNIC_POWER", "HOLY_POWER", "LUNAR_POWER" local RAGE, FOCUS, ENERGY = RAGE, FOCUS, ENERGY
local POWER_TYPE_ARCANE_CHARGES, SOUL_SHARDS, RUNES = "POWER_TYPE_ARCANE_CHARGES", "SOUL_SHARDS", "RUNES"
------------------------------ ------------------------------
local ACD = LibStub("AceConfigDialog-3.0") local ACD = LibStub("AceConfigDialog-3.0")
@@ -1942,7 +1941,7 @@ E.Options.args.unitframe = {
colorsShortcut = { colorsShortcut = {
order = 5, order = 5,
type = "execute", type = "execute",
name = "COLORS", name = L["Colors"],
-- buttonElvUI = true, -- buttonElvUI = true,
func = function() ACD:SelectGroup("ElvUI", "unitframe", "generalOptionsGroup", "allColorsGroup") end, func = function() ACD:SelectGroup("ElvUI", "unitframe", "generalOptionsGroup", "allColorsGroup") end,
disabled = function() return not E.UnitFrames; end, disabled = function() return not E.UnitFrames; end,
@@ -2187,14 +2186,14 @@ E.Options.args.unitframe = {
order = 2, order = 2,
type = "group", type = "group",
childGroups = "tree", childGroups = "tree",
name = "COLORS", name = L["Colors"],
get = function(info) return E.db.unitframe.colors[ info[getn(info)] ] end, get = function(info) return E.db.unitframe.colors[ info[getn(info)] ] end,
set = function(info, value) E.db.unitframe.colors[ info[getn(info)] ] = value; UF:Update_AllFrames() end, set = function(info, value) E.db.unitframe.colors[ info[getn(info)] ] = value; UF:Update_AllFrames() end,
args = { args = {
header = { header = {
order = 0, order = 0,
type = "header", type = "header",
name = "COLORS", name = L["Colors"],
}, },
borderColor = { borderColor = {
order = 1, order = 1,
@@ -2362,11 +2361,6 @@ E.Options.args.unitframe = {
name = ENERGY, name = ENERGY,
type = "color", type = "color",
}, },
RUNIC_POWER = {
order = 6,
name = RUNIC_POWER,
type = "color",
},
}, },
}, },
reactionGroup = { reactionGroup = {
@@ -2625,7 +2619,7 @@ E.Options.args.unitframe = {
}, },
}, },
}, },
raidDebuffIndicator = { --[[raidDebuffIndicator = {
order = 4, order = 4,
type = "group", type = "group",
name = L["RaidDebuff Indicator"], name = L["RaidDebuff Indicator"],
@@ -2670,7 +2664,7 @@ E.Options.args.unitframe = {
set = function(info, value) E.global.unitframe.raidDebuffIndicator.otherFilter = value; UF:UpdateAllHeaders() end, set = function(info, value) E.global.unitframe.raidDebuffIndicator.otherFilter = value; UF:UpdateAllHeaders() end,
}, },
}, },
}, },--]]
}, },
}, },
}, },
@@ -4978,7 +4972,7 @@ end
--Custom Texts --Custom Texts
function E:RefreshCustomTextsConfigs() function E:RefreshCustomTextsConfigs()
--Hide any custom texts that don"t belong to current profile --Hide any custom texts that don't belong to current profile
for _, customText in pairs(CUSTOMTEXT_CONFIGS) do for _, customText in pairs(CUSTOMTEXT_CONFIGS) do
customText.hidden = true customText.hidden = true
end end