From 3dbb035e9b483ff08a3f1db7e71d8a056b23dd45 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 26 Jul 2016 09:27:31 +0300 Subject: [PATCH] Elv did this in base ui --- ElvUI_SLE/locales/english.lua | 2 -- ElvUI_SLE/locales/russian.lua | 2 -- ElvUI_SLE/modules/nameplates.lua | 5 ----- ElvUI_SLE/options/nameplates_c.lua | 8 -------- 4 files changed, 17 deletions(-) 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 -- 1.7.9.5