Commit e7b217db authored by Azilroka's avatar Azilroka

SRF

parent f7b9013e
......@@ -89,7 +89,7 @@ end
function NP:Update_ThreatIndicator(nameplate)
local db = NP.db.threat
if (NP.InstanceType ~= 'arena' and NP.InstanceType ~= 'pvp') and nameplate.frameType == 'ENEMY_NPC' and db.enable then
if nameplate.frameType == 'ENEMY_NPC' and db.enable then
if not nameplate:IsElementEnabled('ThreatIndicator') then
nameplate:EnableElement('ThreatIndicator')
end
......
......@@ -56,10 +56,10 @@ function UF:Update_RaidpetFrames(frame, db)
frame.db = db
frame.colors = ElvUF.colors
frame:RegisterForClicks(self.db.targetOnMouseDown and 'AnyDown' or 'AnyUp')
frame:RegisterForClicks(UF.db.targetOnMouseDown and 'AnyDown' or 'AnyUp')
do
if(self.thinBorders) then
if UF.thinBorders then
frame.SPACING = 0
frame.BORDER = E.mult
else
......
......@@ -876,7 +876,7 @@ function UF:HandleSmartVisibility(skip)
sv.raid40.enable = true
end
UF:UpdateAllHeaders(sv, skip)
UF:UpdateAllHeaders(true, skip)
end
function UF:ZONE_CHANGED_NEW_AREA()
......@@ -918,8 +918,8 @@ function UF:CreateHeader(parent, groupFilter, overrideName, template, groupName,
end
function UF:GetSmartVisibilitySetting(setting, group, smart, db)
if smart and smart[group] and smart[group][setting] ~= nil then
return smart[group][setting]
if smart and UF.SmartSettings[group] and UF.SmartSettings[group][setting] ~= nil then
return UF.SmartSettings[group][setting]
end
return db[setting]
......
......@@ -3340,7 +3340,7 @@ E.Options.args.unitframe = {
name = L["Smart Raid Filter"],
desc = L["Override any custom visibility setting in certain situations, EX: Only show groups 1 and 2 inside a 10 man instance."],
type = 'toggle',
set = function(info, value) E.db.unitframe[info[#info]] = value; UF:UpdateAllHeaders(value and UF.SmartSettings) end
set = function(info, value) E.db.unitframe[info[#info]] = value; UF:UpdateAllHeaders(value) end
},
targetOnMouseDown = {
order = 3,
......
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