Added spells to detect specs in Dragonflight

This commit is contained in:
Tercio Jose
2022-09-22 11:36:54 -03:00
parent e2196f64c7
commit a1e7da12f3
7 changed files with 936 additions and 235 deletions
+8
View File
@@ -55,6 +55,14 @@ function Details.OpenSpellCategoryScreen()
padding = 2,
}
local savedSpellsCategories = Details.spell_category_savedtable
local unitClass = select(2, UnitClass("player"))
local thisClassSavedTable = savedSpellsCategories[unitClass]
if (not thisClassSavedTable) then
thisClassSavedTable = {}
savedSpellsCategories[unitClass] = thisClassSavedTable
end
detailsSpellCategoryFrame.Header = DetailsFramework:CreateHeader(detailsSpellCategoryFrame, headerTable, headerOptions)
detailsSpellCategoryFrame.Header:SetPoint("topleft", detailsSpellCategoryFrame, "topleft", startX, headerY)