Verified Commit 1cbaae2f authored by Merathilis's avatar Merathilis

Merge branch 'beta' into ptr

parents b1dc5b02 12bc767b
......@@ -20,30 +20,38 @@ local function UnitFramesTable()
type = "group",
name = MER:cOption(L["General"]),
guiInline = true,
get = function(info) return E.db.mui.unitframes[ info[#info] ] end,
set = function(info, value) E.db.mui.unitframes[ info[#info] ] = value; E:StaticPopup_Show("CONFIG_RL"); end,
args = {
healPrediction = {
order = 1,
type = "toggle",
name = L["Heal Prediction"],
desc = L["Changes the Heal Prediction texture to the default Blizzard ones."],
get = function(info) return E.db.mui.unitframes[ info[#info] ] end,
set = function(info, value) E.db.mui.unitframes[ info[#info] ] = value; E:StaticPopup_Show("CONFIG_RL"); end,
},
auras = {
order = 2,
type = "toggle",
name = L["Auras"],
desc = L["Adds a shadow to the debuffs that the debuff color is more visible."],
},
style = {
order = 2,
type = "toggle",
name = L["UnitFrame Style"],
desc = L["Adds my styling to the Unitframes if you use transparent health."],
get = function(info) return E.db.mui.unitframes.style end,
set = function(info, value) E.db.mui.unitframes.style = value; E:StaticPopup_Show("CONFIG_RL"); end,
},
roleIcons = {
order = 3,
type = "toggle",
name = L["Role Icon"],
desc = L["Change the default role icons."],
get = function(info) return E.db.mui.unitframes.roleIcons end,
set = function(info, value) E.db.mui.unitframes.roleIcons = value; E:StaticPopup_Show("CONFIG_RL"); end,
},
highlight = {
order = 5,
type = "toggle",
name = L["Highlight"],
desc = L["Adds an own highlight to the Unitframes"],
},
},
},
......
......@@ -16,6 +16,8 @@ function module:ADDON_LOADED(event, addon)
end
function module:CreateHighlight(self)
if not E.db.mui.unitframes.highlight then return end
local hl = self:CreateTexture(nil, "OVERLAY")
hl:SetAllPoints()
hl:SetTexture("Interface\\PETBATTLES\\PetBattle-SelectedPetGlow")
......
......@@ -358,6 +358,7 @@ MP.unitframes = {
},
style = true,
roleIcons = true,
highlight = true,
}
MP.maps = {
......
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