Moving Avoidance and Auras tab code to their own separate files

This should clean up and make the player breakdown file even smaller
This commit is contained in:
Tercio Jose
2023-03-26 15:22:34 -03:00
parent 0f36b4f9f8
commit b2f91e91b2
6 changed files with 1119 additions and 1115 deletions
+10 -3
View File
@@ -1911,12 +1911,19 @@ local iconTableCompare = {
height = 14,
}
C_Timer.After(2, function()
function Details:InitializeCompareTab()
--check if the tab is already created
for i = 1, #_detalhes.player_details_tabs do
local tabButton = _detalhes.player_details_tabs[i]
if (tabButton.tabname == "Compare" or tabButton.tabname == "New Compare") then
return
end
end
for i = 1, #_detalhes.player_details_tabs do
local tabButton = _detalhes.player_details_tabs[i]
if (tabButton.replaces) then
if (tabButton.replaces.bIsCompareTab) then
print("already installed a compare tab")
return
end
end
@@ -2004,4 +2011,4 @@ C_Timer.After(2, function()
compare_create, --[6] oncreate
iconTableCompare --icon table
)
end)
end