Skip to content

Commit

Permalink
Update Core.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Mar 24, 2022
1 parent cdcfd5d commit da74587
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions ElvUI_EltreumUI/Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,6 @@ end
--Better EventTrace CLEU logging thanks to ;Meorawr.wtf.lua;
function ElvUI_EltreumUI:DevTools()
if E.db.ElvUI_EltreumUI.dev then
if not EventTraceFrame then
UIParentLoadAddOn("Blizzard_DebugTools")
_G.TableAttributeDisplay:SetWidth(800)
_G.TableAttributeDisplay.LinesScrollFrame:SetWidth(700)
_G.TableAttributeDisplay.TitleButton.Text:SetWidth(600)
end
if not IsAddOnLoaded("Blizzard_EventTrace") then
LoadAddOn("Blizzard_EventTrace")
end
local function LogEvent(self, event, ...)
if event == "COMBAT_LOG_EVENT_UNFILTERED" or event == "COMBAT_LOG_EVENT" then
self:LogEvent_Original(event, CombatLogGetCurrentEventInfo())
Expand All @@ -336,6 +327,12 @@ function ElvUI_EltreumUI:DevTools()
frame:SetScript("OnEvent", function(self, event, ...)
if event == "ADDON_LOADED" and (...) == "Blizzard_EventTrace" then
OnEventTraceLoaded()
if not IsAddOnLoaded("Blizzard_DebugTools") then
UIParentLoadAddOn("Blizzard_DebugTools")
end
_G.TableAttributeDisplay:SetWidth(800)
_G.TableAttributeDisplay.LinesScrollFrame:SetWidth(700)
_G.TableAttributeDisplay.TitleButton.Text:SetWidth(600)
frame:UnregisterAllEvents()
end
end)
Expand Down

0 comments on commit da74587

Please sign in to comment.