Just tried to do a fix for CFM, but has caused an error and I have no idea why:
lua Code:
function CFM:ADDON_LOADED(_,addon)
if addon ~= "CFM" then return end
-- Load Blizzard UIs
LoadAddOn("Blizzard_AchievementUI")
AchievementAlertFrame_GetAlertFrame() -- load to avoid achievement alert frame errors
--rest of code
end
Produces error when opening achievement frame:
Code:
Error occured in: Global
Count: 1
Message: ...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua line 569:
attempt to index local 'button' (a nil value)
Debug:
[C]: ?
...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua:569: AchievementFrameCategories_SelectButton()
...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua:717: AchievementCategoryButton_OnClick()
...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua:119:
...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua:114
[C]: Show()
..\FrameXML\UIParent.lua:1467: SetUIPanel()
..\FrameXML\UIParent.lua:1288: ShowUIPanel()
..\FrameXML\UIParent.lua:1198:
..\FrameXML\UIParent.lua:1194
[C]: SetAttribute()
..\FrameXML\UIParent.lua:1873:
..\FrameXML\UIParent.lua:1861
[C]: ShowUIPanel()
...ns\Blizzard_AchievementUI\Blizzard_AchievementUI.lua:79: AchievementFrame_ToggleAchievementFrame()
..\FrameXML\UIParent.lua:373: ToggleAchievementFrame()
[string "TOGGLEACHIEVEMENT"]:1:
[string "TOGGLEACHIEVEMENT"]:1
And here I thought I was just simply forcing the creation of the achievement alert frames.