Quantcast

Using globals

Darthpred [06-01-15 - 18:00]
Using globals
Filename
ElvUI_SLE/options/loot_c.lua
ElvUI_SLE/options/media_c.lua
ElvUI_SLE/options/raidmarkers_c.lua
ElvUI_SLE/options/threat_c.lua
ElvUI_SLE/options/uibuttons_c.lua
ElvUI_SLE/options/unitframes_c.lua
ElvUI_SLE/options/vehicle_c.lua
diff --git a/ElvUI_SLE/options/loot_c.lua b/ElvUI_SLE/options/loot_c.lua
index 7f62d2e..bccd695 100644
--- a/ElvUI_SLE/options/loot_c.lua
+++ b/ElvUI_SLE/options/loot_c.lua
@@ -10,7 +10,7 @@ local function configTable()
 			enable = {
 				order = 1,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				get = function(info) return E.db.sle.loot.enable end,
 				set = function(info, value) E.db.sle.loot.enable = value; E:StaticPopup_Show("CONFIG_RL") end
 			},
@@ -42,7 +42,7 @@ local function configTable()
 					enable = {
 						order = 4,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						disabled = function() return not E.db.sle.loot.enable end,
 						get = function(info) return E.db.sle.loot.autoroll.enable end,
 						set = function(info, value) E.db.sle.loot.autoroll.enable = value; LT:Update() end,
@@ -141,7 +141,7 @@ local function configTable()
 					enable = {
 						order = 4,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						disabled = function() return not E.db.sle.loot.enable end,
 						get = function(info) return E.db.sle.loot.announcer.enable end,
 						set = function(info, value) E.db.sle.loot.announcer.enable = value; E:StaticPopup_Show("CONFIG_RL") end,
diff --git a/ElvUI_SLE/options/media_c.lua b/ElvUI_SLE/options/media_c.lua
index 579403c..da35ea0 100644
--- a/ElvUI_SLE/options/media_c.lua
+++ b/ElvUI_SLE/options/media_c.lua
@@ -303,7 +303,7 @@ local function configTable()
 			enable = {
 				order = 1,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				get = function(info) return E.db.sle.media.screensaver.enable end,
 				set = function(info, value) E.db.sle.media.screensaver.enable = value; S:Reg(true); S:UpdateConfig() end,
 			},
diff --git a/ElvUI_SLE/options/raidmarkers_c.lua b/ElvUI_SLE/options/raidmarkers_c.lua
index 18ba65b..640951e 100644
--- a/ElvUI_SLE/options/raidmarkers_c.lua
+++ b/ElvUI_SLE/options/raidmarkers_c.lua
@@ -22,7 +22,7 @@ local function configTable()
 			enable = {
 				order = 3,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				desc = L["Show/Hide raid marks."],
 			},
 			reset = {
diff --git a/ElvUI_SLE/options/threat_c.lua b/ElvUI_SLE/options/threat_c.lua
index f327346..7ac6f42 100644
--- a/ElvUI_SLE/options/threat_c.lua
+++ b/ElvUI_SLE/options/threat_c.lua
@@ -20,7 +20,7 @@ local function configTable()
 			enabled = {
 				order = 3,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				--desc = L["Show/Hide UI buttons."],
 				get = function(info) return E.db.sle.threat.enable end,
 				set = function(info, value) E.db.sle.threat.enable = value; SLT:Update(); SLT:UpdatePosition() end,
diff --git a/ElvUI_SLE/options/uibuttons_c.lua b/ElvUI_SLE/options/uibuttons_c.lua
index 22fa521..bd4888a 100644
--- a/ElvUI_SLE/options/uibuttons_c.lua
+++ b/ElvUI_SLE/options/uibuttons_c.lua
@@ -33,7 +33,7 @@ local function configTable()
 			enabled = {
 				order = 3,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				desc = L["Show/Hide UI buttons."],
 				get = function(info) return E.db.sle.uibuttons.enable end,
 				set = function(info, value) E.db.sle.uibuttons.enable = value; Bar:ToggleShow() end
@@ -181,7 +181,7 @@ local function configTable()
 					enabled = {
 						order = 1,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						desc = L["Use quick access (on right click) for this button."],
 						get = function(info) return E.db.sle.uibuttons.Config.enable end,
 						set = function(info, value) E.db.sle.uibuttons.Config.enable = value end
@@ -212,7 +212,7 @@ local function configTable()
 					enabled = {
 						order = 1,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						desc = L["Use quick access (on right click) for this button."],
 						get = function(info) return E.db.sle.uibuttons.Addon.enable end,
 						set = function(info, value) E.db.sle.uibuttons.Addon.enable = value end
@@ -241,7 +241,7 @@ local function configTable()
 					enabled = {
 						order = 1,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						desc = L["Use quick access (on right click) for this button."],
 						get = function(info) return E.db.sle.uibuttons.Status.enable end,
 						set = function(info, value) E.db.sle.uibuttons.Status.enable = value end
@@ -270,7 +270,7 @@ local function configTable()
 					enabled = {
 						order = 1,
 						type = "toggle",
-						name = L["Enable"],
+						name = ENABLE,
 						desc = L["Use quick access (on right click) for this button."],
 						get = function(info) return E.db.sle.uibuttons.Roll.enable end,
 						set = function(info, value) E.db.sle.uibuttons.Roll.enable = value end
diff --git a/ElvUI_SLE/options/unitframes_c.lua b/ElvUI_SLE/options/unitframes_c.lua
index 37461d6..b8d14d0 100644
--- a/ElvUI_SLE/options/unitframes_c.lua
+++ b/ElvUI_SLE/options/unitframes_c.lua
@@ -85,7 +85,7 @@ local function configTable()
 				powtext = {
 					order = 1,
 					type = "toggle",
-					name = L["Enable"],
+					name = ENABLE,
 					desc = L["Show/hide the text with exact number of energy (Solar/Lunar or Demonic Fury) on your Classbar."],
 					get = function(info) return E.db.sle.powtext end,
 					set = function(info, value) E.db.sle.powtext = value; UF:ClassbarTextSLE() end,
diff --git a/ElvUI_SLE/options/vehicle_c.lua b/ElvUI_SLE/options/vehicle_c.lua
index ce98193..946cadc 100644
--- a/ElvUI_SLE/options/vehicle_c.lua
+++ b/ElvUI_SLE/options/vehicle_c.lua
@@ -19,7 +19,7 @@ local function configTable()
 			enable = {
 				order = 3,
 				type = "toggle",
-				name = L["Enable"],
+				name = ENABLE,
 				get = function(info) return E.private.sle.vehicle.enable end,
 				set = function(info, value) E.private.sle.vehicle.enable = value; E:StaticPopup_Show("PRIVATE_RL") end,
 			},