From 5b8a35a014ddd2155bdcc955a7f97eb461b9be2c Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 11 Oct 2012 15:21:36 +0400 Subject: [PATCH] A basis for loot history --- ElvUI_SLE/core/test.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ElvUI_SLE/core/test.lua b/ElvUI_SLE/core/test.lua index 9db7709..88a093f 100644 --- a/ElvUI_SLE/core/test.lua +++ b/ElvUI_SLE/core/test.lua @@ -17,3 +17,15 @@ E.Options.args.sle.args.general.args.errors = { get = function(info) return E.private.sle.errors end, set = function(info, value) E.private.sle.errors = value; E:StaticPopup_Show("PRIVATE_RL") end } + +--This is basics for the loot history show/hide option +--[[ +function :LootShow() --Needs to be run on PLAYER_ENTERING_WORLD event = loading screen ends. Also need a module assinged. + local inInstance, instanceType = IsInInstance() + if (inInstance and (instanceType == "party" or "raid") and E.db.sle.autoloot) then + LootHistoryFrame:Show() + else + LootHistoryFrame:Hide() + end +end +]] \ No newline at end of file -- 1.7.9.5