Elv did this in base ui
Darthpred [07-26-16 - 06:27]
diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua
index a633678..aabc82a 100644
--- a/ElvUI_SLE/locales/english.lua
+++ b/ElvUI_SLE/locales/english.lua
@@ -559,8 +559,6 @@ L["Target Count"] = true
L["Display the number of party / raid members targetting the nameplate unit."] = true
L["Threat Text"] = true
L["Display threat level as text on targeted, boss or mouseover nameplate."] = true
-L["Visibility Range"] = true
-L["Sets the maximum range to the unit on which its nameplate will be shown."] = true
--Professions
L["Deconstruct Mode"] = true
diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua
index d426a46..2cd1cb0 100644
--- a/ElvUI_SLE/locales/russian.lua
+++ b/ElvUI_SLE/locales/russian.lua
@@ -551,8 +551,6 @@ L["Target Count"] = "Число выделений"
L["Display the number of party / raid members targetting the nameplate unit."] = "Показывать количество членов группы/рейда, выбравших в цель этот юнит."
L["Threat Text"] = "Текст угрозы"
L["Display threat level as text on targeted, boss or mouseover nameplate."] = "Отображает текст угрозы на индикаторе цели, босса или юнита под курсором."
-L["Visibility Range"] = "Дальность видимости"
-L["Sets the maximum range to the unit on which its nameplate will be shown."] = "Устанавливает максимальное расстояние до юнита, на котором будет показываться его индикатор."
--Professions
L["Deconstruct Mode"] = "Режим распыления"
diff --git a/ElvUI_SLE/modules/nameplates.lua b/ElvUI_SLE/modules/nameplates.lua
index 911e070..dbecea7 100644
--- a/ElvUI_SLE/modules/nameplates.lua
+++ b/ElvUI_SLE/modules/nameplates.lua
@@ -116,17 +116,12 @@ function N:StartRosterUpdate()
end
end
-function N:PlateRange()
- SetCVar("nameplateMaxDistance", N.db.visibleRange or 60)
-end
-
function N:Initialize()
if not SLE.initialized or not E.private.nameplates.enable then return end
if E.db.sle.nameplate then E.db.sle.nameplates = E.db.sle.nameplate; E.db.sle.nameplate = nil end
N.db = E.db.sle.nameplates
self:RegisterEvent("GROUP_ROSTER_UPDATE", "StartRosterUpdate")
self:RegisterEvent("UNIT_TARGET", "UpdateCount")
- N:PlateRange()
E:Delay(.3, function() N:UpdateCount(nil,"player", true) end)
function N:ForUpdateAll()
diff --git a/ElvUI_SLE/options/nameplates_c.lua b/ElvUI_SLE/options/nameplates_c.lua
index 5e7c12f..e67ee6e 100644
--- a/ElvUI_SLE/options/nameplates_c.lua
+++ b/ElvUI_SLE/options/nameplates_c.lua
@@ -27,14 +27,6 @@ local function configTable()
name = L["Threat Text"],
desc = L["Display threat level as text on targeted, boss or mouseover nameplate."],
},
- visibleRange = {
- type = "range",
- order = 4,
- name = L["Visibility Range"],
- desc = L["Sets the maximum range to the unit on which its nameplate will be shown."],
- min = 1, max = 100, step = 1,
- set = function(info, value) E.db.sle.nameplates[ info[#info] ] = value; SLE:GetModule('Nameplates'):PlateRange() end,
- },
},
}
end