loot
Darthpred [07-11-14 - 20:26]
diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua
index ee0ef62..784253d 100644
--- a/ElvUI_SLE/modules/loot.lua
+++ b/ElvUI_SLE/modules/loot.lua
@@ -90,7 +90,7 @@ local function List()
end
end
-function LT:Announce()
+local function Announce()
if not IsInGroup() then return end -- not in group, exit.
local m = 0
local q = E.db.sle.loot.quality == "EPIC" and 4 or E.db.sle.loot.quality == "RARE" and 3 or E.db.sle.loot.quality == "UNCOMMON" and 2
@@ -134,5 +134,5 @@ end
function LT:Initialize()
self:RegisterEvent('PLAYER_ENTERING_WORLD', 'LootShow');
if not E.private.sle.loot.enable then return end
- self:RegisterEvent("LOOT_OPENED", "Announce")
+ self:RegisterEvent("LOOT_OPENED", Announce)
end
\ No newline at end of file
diff --git a/ElvUI_SLE/options/core_c.lua b/ElvUI_SLE/options/core_c.lua
index 1540fd5..a1d85e3 100644
--- a/ElvUI_SLE/options/core_c.lua
+++ b/ElvUI_SLE/options/core_c.lua
@@ -1,5 +1,7 @@
local E, L, V, P, G = unpack(ElvUI);
local SLE = E:GetModule('SLE')
+local LT = E:GetModule('SLE_Loot')
+
local function configTable()
E.Options.args.ElvUI_Header = {
@@ -101,7 +103,7 @@ Darth Predator and Repooc.]],
name = L["Auto hide"],
desc = L["Automaticaly hide Blizzard loot histroy frame when leaving the instance."],
get = function(info) return E.db.sle.lootwin end,
- set = function(info, value) E.db.sle.lootwin = value; SLE:LootShow() end
+ set = function(info, value) E.db.sle.lootwin = value; LT:LootShow() end
},
alpha = {
order = 4,
@@ -110,7 +112,7 @@ Darth Predator and Repooc.]],
desc = L["Sets alpha of loot histroy frame."],
min = 0.2, max = 1, step = 0.1,
get = function(info) return E.db.sle.lootalpha end,
- set = function(info, value) E.db.sle.lootalpha = value; SLE:LootShow() end,
+ set = function(info, value) E.db.sle.lootalpha = value; LT:LootShow() end,
},
},
},