WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Fixing crusty old chat addon, Lynchat for 9.0 (https://www.wowinterface.com/forums/showthread.php?t=58300)

tordenflesk 10-16-20 10:39 AM

Fixing crusty old chat addon, Lynchat for 9.0
 
3 Attachment(s)
As you might see I've done the generic " add "BackdropTemplateMixin and "BackdropTemplate")" to createframe" that seems to fix a lot of my aging addons, but in this case it didn't change anything. Seemingly, the only function of the addon that doesn't work is stripping some edit-box highlighting
Error:
Code:

1x LynChat2\window.lua:257: attempt to call method 'SetBackdrop' (a nil value)
[string "@LynChat2\window.lua"]:257: in function <LynChat2\window.lua:190>
[string "@LynChat2\window.lua"]:302: in function `StyleTheChat'
[string "@LynChat2\window.lua"]:321: in main chunk

addon files attached.

Rilgamon 10-16-20 10:45 AM

Take a look at this post https://www.wowinterface.com/forums/...8&postcount=19 might help you.

tordenflesk 10-16-20 12:19 PM

I've seen that, Unfortunately I don't have a clue where to put that.

Fizzlemizz 10-16-20 01:01 PM

Presumably window.lua line 256 (just before the line causing the error by calling xx:Setbackdrop(...))
Code:

if not xxx.SetBackdrop then
    Mixin(xxx, BackdropTemplateMixin)
end
xx:Setbackdrop(...)

xxx being whatever the frame name is in the code.

tordenflesk 10-16-20 11:38 PM

This worked:
Code:

        if not editbox.SetBackdrop then
                Mixin(editbox, BackdropTemplateMixin)
        end
        editbox:SetBackdrop(chatBackdrop)

Thank you.


All times are GMT -6. The time now is 07:56 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI