Quantcast

Shorter loot window function

Darthpred [10-15-12 - 20:05]
Shorter loot window function

Still need to test. Wrote this after leaving the game
Filename
ElvUI_SLE/ElvUI_SLE.lua
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