Backdrop error in new version
Revanbane opened this issue · 6 comments
Message: ...erface\AddOns\SilverDragon\targets\looks\classic.lua:18: attempt to call method 'SetBackdrop' (a nil value)
Time: Thu Oct 15 01:50:29 2020
Count: 1
Stack: ...erface\AddOns\SilverDragon\targets\looks\classic.lua:18: attempt to call method 'SetBackdrop' (a nil value)
[string "@Interface\AddOns\SilverDragon\targets\looks\classic.lua"]:18: in function <...erface\AddOns\SilverDragon\targets\looks\classic.lua:7>
[string "@Interface\AddOns\SilverDragon\targets\popup.lua"]:22: in function `ApplyLook'
[string "@Interface\AddOns\SilverDragon\targets\popup.lua"]:291: in function `CreatePopup'
[string "@Interface\AddOns\SilverDragon\targets\module.lua"]:94: in function <Interface\AddOns\SilverDragon\targets\module.lua:7>
[string "=[C]"]: ?
[string "@Interface\AddOns\SilverDragon\lib\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...ddOns\SilverDragon\lib\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\SilverDragon\lib\AceAddon-3.0\AceAddon-3.0.lua"]:498: in function `InitializeAddon'
[string "@Interface\AddOns\SilverDragon\lib\AceAddon-3.0\AceAddon-3.0.lua"]:623: in function <...ddOns\SilverDragon\lib\AceAddon-3.0\AceAddon-3.0.lua:615>
Locals: <none>
Happens with only SilverDragon loaded, directly upon login/reload.
@authors, the reason for these bugs is that with patch 9.0.1, frames do not inherently support backdrop anymore, when creating a frame you have to add it as a parameter like so:
CreateFrame('Frame', nil, nil, BackdropTemplateMixin and 'BackdropTemplate')
Every frame that makes use of backdrops will have to be declared with BackdropTemplateMixin and 'BackdropTemplate'
as the fourth argument.
I'm aware -- I just missed this one because it's only used off in one corner of the addon. :D
Now I feel like a dick, sorry if it came across as telling you what to do. Just wanted to make sure it gets fixed asap. Thank you very much.