From a82d91ce125a43361650502927d7f172be95ac73 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 16 Oct 2012 00:05:35 +0400 Subject: [PATCH] Shorter loot window function Still need to test. Wrote this after leaving the game --- ElvUI_SLE/ElvUI_SLE.lua | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/ElvUI_SLE/ElvUI_SLE.lua b/ElvUI_SLE/ElvUI_SLE.lua index 04cd7b3..03c4e7c 100644 --- a/ElvUI_SLE/ElvUI_SLE.lua +++ b/ElvUI_SLE/ElvUI_SLE.lua @@ -17,27 +17,10 @@ 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) - --local isDungeon = (instanceType == "party") - if (inInstance and (instanceType == "party" or "raid") and E.db.sle.lootwin) then --in instance with option enabled - LootHistoryFrame:Show() - elseif (inInstance and (instanceType == "party" or "raid") and not E.db.sle.lootwin) then --in instance with option disabled - elseif (not inInstance and E.db.sle.autoloot) then--out of instance with option enabled - LootHistoryFrame:Hide() - 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 + if (not IsInInstance() and E.db.sle.lootwin) then LootHistoryFrame:Hide() end end -- 1.7.9.5