|Go to Page...|
||Thread Tools||Display Modes|
|05-30-21, 08:13 AM||#1|
A Kobold Labourer
Join Date: Aug 2019
Upgrading old addon for BCC Backdrop change.
I've been trying to get sRaidFrames working on BCC for a bit now, but not being great at LUA I'm having trouble getting the suggestions in other threads about this working.
Since the addon had an outdated Ace3 version I swapped in the most recent version of that first which seems to have worked fine. Then based on this and some of the posts here, I edited the lines with CreateFrame that I could see how to easily, adding the BackdropTemplateMixin and "BackdropTemplate" part, but I'm still seeing these errors
Message: Interface\AddOns\sRaidFrames\sRaidFrames.lua:1451: attempt to call method 'SetBackdrop' (a nil value)
Message: Interface\AddOns\sRaidFrames\sRaidFrames.lua:1705: attempt to call global 'UnitHasVehicleUI' (a nil value)
As to not crowd this post with code blocks, here's the code around the first error I'm seeing, but there's more not throwing errors (yet), or ones that I couldn't figure out how to edit looking at examples, so checking the full source is probably best.
This code corresponds to
It's line 98 in that which causes the first error, but there are more examples in the full code.
Any advice or pointing in the right direction is greatly appreciated. Thanks!
|WoWInterface » Developer Discussions » Lua/XML Help » Upgrading old addon for BCC Backdrop change.|