Quantcast

Reword the new item flash so it's more easily recognizable.

Michael Tindal [11-25-14 - 03:25]
Reword the new item flash so it's more easily recognizable.
Filename
ElvUI_SLE/defaults/profile.lua
ElvUI_SLE/modules/bags.lua
ElvUI_SLE/options/bags_c.lua
diff --git a/ElvUI_SLE/defaults/profile.lua b/ElvUI_SLE/defaults/profile.lua
index e02ceb9..586daf5 100644
--- a/ElvUI_SLE/defaults/profile.lua
+++ b/ElvUI_SLE/defaults/profile.lua
@@ -439,7 +439,7 @@ P['sle'] = {
 	['rumouseover'] = false,

 	['bags'] = {
-		['lootshadow'] = true,
+		['lootflash'] = true,
 	},
 }

diff --git a/ElvUI_SLE/modules/bags.lua b/ElvUI_SLE/modules/bags.lua
index 986d2db..e688974 100755
--- a/ElvUI_SLE/modules/bags.lua
+++ b/ElvUI_SLE/modules/bags.lua
@@ -42,14 +42,14 @@ end

 function SB:HookSlot(slot, bagID, slotID)
 	slot:HookScript('OnEnter', function()
-		if (E.db.sle.bags.lootshadow) then
+		if (E.db.sle.bags.lootflash) then
 			C_NewItems.RemoveNewItem(bagID, slotID);
 			SB:StopAnim(slot);
 		end
 	end);

 	slot:HookScript('OnShow', function()
-		if (E.db.sle.bags.lootshadow) then
+		if (E.db.sle.bags.lootflash) then
 			if (C_NewItems.IsNewItem(bagID, slotID)) then
 				SB:StartAnim(slot);
 			else
@@ -59,7 +59,7 @@ function SB:HookSlot(slot, bagID, slotID)
 	end);

 	slot:HookScript('OnHide', function()
-		if (E.db.sle.bags.lootshadow) then
+		if (E.db.sle.bags.lootflash) then
 			C_NewItems.RemoveNewItem(bagID, slotID);
 			SB:StopAnim(slot);
 		end
@@ -139,7 +139,7 @@ function SB:Initialize()
 	for _, bagFrame in pairs(B.BagFrames) do
 		local UpdateSlot = function(self, bagID, slotID)
 			BUpdateSlot(bagFrame, bagID, slotID);
-			if (E.db.sle.bags.lootshadow) then
+			if (E.db.sle.bags.lootflash) then
 				SBUpdateSlot(bagFrame, bagID, slotID);
 			end
 		end
@@ -148,7 +148,7 @@ function SB:Initialize()
 		local SBUpdateReagentSlot = SB.UpdateReagentSlot;
 		local UpdateReagentSlot = function(self, slotID)
 			BUpdateReagentSlot(bagFrame, slotID);
-			if (E.db.sle.bags.lootshadow) then
+			if (E.db.sle.bags.lootflash) then
 				SBUpdateReagentSlot(bagFrame, slotID);
 			end
 		end
diff --git a/ElvUI_SLE/options/bags_c.lua b/ElvUI_SLE/options/bags_c.lua
index 26da134..5261874 100644
--- a/ElvUI_SLE/options/bags_c.lua
+++ b/ElvUI_SLE/options/bags_c.lua
@@ -11,13 +11,13 @@ local function configTable()
 				type = "header",
 				name = L["Bags"],
 			},
-			lootshadow = {
+			lootflash = {
 				order = 5,
 				type = "toggle",
-				name = L["Loot Shadow"],
-				desc = L["Use the Shadow & Light Loot Shadow"],
-				get = function(info) return E.db.sle.bags.lootshadow end,
-				set = function(info, value)	E.db.sle.bags.lootshadow = value end,
+				name = L["New Item Flash"],
+				desc = L["Use the Shadow & Light New Item Flash instead of the default ElvUI flash"],
+				get = function(info) return E.db.sle.bags.lootflash end,
+				set = function(info, value)	E.db.sle.bags.lootflash = value end,
 			},
 		},
 	}