Remove default stacking nameplates
This commit is contained in:
@@ -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 !!
|
||||
|
||||
@@ -397,7 +397,7 @@ NamePlates.resetFilters = ACH:Execute(L["Reset Aura Filters"], nil, 3, function(
|
||||
NamePlates.resetcvars = ACH:Execute(L["Reset CVars"], L["Reset Nameplate CVars to the ElvUI recommended defaults."], 4, function() NP:CVarReset() end, nil, true)
|
||||
|
||||
NamePlates.generalGroup = ACH:Group(L["General"], nil, 5, nil, nil, function(info, value) E.db.nameplates[info[#info]] = value NP:SetCVars() NP:ConfigureAll() end, function() return not E.NamePlates.Initialized end)
|
||||
NamePlates.generalGroup.args.motionType = ACH:Select(L["UNIT_NAMEPLATES_TYPES"], L["Set to either stack nameplates vertically or allow them to overlap."], 1, { OVERLAP = L["UNIT_NAMEPLATES_TYPE_2"], STACKED = L["UNIT_NAMEPLATES_TYPE_1"] })
|
||||
NamePlates.generalGroup.args.motionType = ACH:Select(L["UNIT_NAMEPLATES_TYPES"], L["Set to either stack nameplates vertically or allow them to overlap."], 1, { OVERLAP = L["UNIT_NAMEPLATES_TYPE_1"], STACKED = L["UNIT_NAMEPLATES_TYPE_2"] })
|
||||
NamePlates.generalGroup.args.showEnemyCombat = ACH:Select(L["Enemy Combat Toggle"], L["Control enemy nameplates toggling on or off when in combat."], 2, { DISABLED = L["Disable"], TOGGLE_ON = L["Toggle On While In Combat"], TOGGLE_OFF = L["Toggle Off While In Combat"] }, nil, nil, nil, function(info, value) E.db.nameplates[info[#info]] = value NP:PLAYER_REGEN_ENABLED() end)
|
||||
NamePlates.generalGroup.args.showFriendlyCombat = ACH:Select(L["Friendly Combat Toggle"], L["Control friendly nameplates toggling on or off when in combat."], 3, { DISABLED = L["Disable"], TOGGLE_ON = L["Toggle On While In Combat"], TOGGLE_OFF = L["Toggle Off While In Combat"] }, nil, nil, nil, function(info, value) E.db.nameplates[info[#info]] = value NP:PLAYER_REGEN_ENABLED() end)
|
||||
NamePlates.generalGroup.args.smoothbars = ACH:Toggle(L["Smooth Bars"], L["Bars will transition smoothly."], 4, nil, nil, 110)
|
||||
|
||||
Reference in New Issue
Block a user