From 7463a991dcd37e4451ea2dcf7b494314bf657f36 Mon Sep 17 00:00:00 2001 From: Repooc Date: Mon, 15 Oct 2012 11:13:57 -0500 Subject: [PATCH] Modified Loot History Window Option Signed-off-by: Repooc --- ElvUI_SLE/ElvUI_SLE.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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."], -- 1.7.9.5