Remove default stacking nameplates

This commit is contained in:
andrew6180
2024-05-01 11:15:21 -07:00
parent c7f435287d
commit df3dfac277
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -95,6 +95,10 @@ end
function NP:SetCVar(cvar, value)
if GetCVar(cvar) ~= tostring(value) then
SetCVar(cvar, value)
if cvar == "nameplateSmoothStacking" then
C_NamePlateManager.CheckNamePlateMotion()
StaticPopup_Show("RELOAD_UI_NEEDED")
end
end
end
@@ -131,7 +135,7 @@ function NP:CVarReset()
end
function NP:SetCVars()
NP:SetCVar('nameplateAllowOverlap', NP.db.motionType == 'STACKED' and 1 or 0)
NP:SetCVar('nameplateSmoothStacking', NP.db.motionType == 'STACKED' and 1 or 0)
NP:SetCVar('nameplateDistance', NP.db.loadDistance)
-- the order of these is important !!