Modified Loot History Window Option
Repooc [10-15-12 - 16:13]
Modified Loot History Window Option
Signed-off-by: Repooc <repooc@tukui.org>
diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua
index 82d8392..04cd7b3 100644
--- a/ElvUI_SLE/ElvUI_SLE.lua
+++ b/ElvUI_SLE/ElvUI_SLE.lua
@@ -17,6 +17,7 @@ function SLE:UpdateThings()
end
end
+--[[
function SLE:LootShow() --Needs to be run on PLAYER_ENTERING_WORLD event = loading screen ends. Also need a module assinged.
local inInstance, instanceType = IsInInstance()
LootHistoryFrame:SetAlpha(E.db.sle.lootalpha or 1)
@@ -29,6 +30,17 @@ function SLE:LootShow() --Needs to be run on PLAYER_ENTERING_WORLD event = loadi
else --out of instance with option disabled
end
end
+]]
+function SLE:LootShow()
+ local inInstance, instanceType = IsInInstance()
+ local isDungeon = (instanceType == "party")
+
+ LootHistoryFrame:SetAlpha(E.db.sle.lootalpha or 1)
+
+ if (not inInstance and E.db.sle.lootwin) then
+ LootHistoryFrame:Hide()
+ end
+end
E.PopupDialogs["VERSION_MISMATCH"] = {
text = L["Your version of ElvUI is older than recommended to use with Shadow & Light Edit. Please, download the latest version from tukui.org."],