Commit a2433c72 authored by Merathilis's avatar Merathilis

Don't lock the CVar 'loadDistance'

parent 319f9624
......@@ -106,7 +106,6 @@ function NP:SetCVars()
SetCVar('nameplateOtherBottomInset', -1)
end
SetCVar('nameplateMaxDistance', NP.db.loadDistance)
SetCVar('nameplateMotion', NP.db.motionType == 'STACKED' and 1 or 0)
SetCVar('NameplatePersonalShowAlways', NP.db.units.PLAYER.visibility.showAlways and 1 or 0)
......
......@@ -437,7 +437,6 @@ P.nameplates = {
font = 'PT Sans Narrow',
fontOutline = 'OUTLINE',
fontSize = 11,
loadDistance = 40,
lowHealthThreshold = 0.4,
motionType = 'STACKED',
nameColoredGlow = false,
......
......@@ -4356,6 +4356,8 @@ E.Options.args.nameplate = {
name = L["Load Distance"],
desc = L["Only load nameplates for units within this range."],
min = 10, max = 100, step = 1,
get = function() return tonumber(GetCVar('nameplateMaxDistance')) end,
set = function(_, value) SetCVar('nameplateMaxDistance', value) end,
},
overlapV = {
order = 7,
......
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