Quantcast
Fixing crusty old chat addon, Lynchat for 9.0 - WoWInterface
Thread Tools Display Modes
10-16-20, 10:39 AM   #1
tordenflesk
A Deviate Faerie Dragon
Join Date: May 2008
Posts: 18
Fixing crusty old chat addon, Lynchat for 9.0

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.
Attached Files
File Type: lua init.lua (5.4 KB, 49 views)
File Type: lua strings.lua (6.6 KB, 53 views)
File Type: lua window.lua (9.6 KB, 62 views)
  Reply With Quote
10-16-20, 10:45 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 790
Take a look at this post https://www.wowinterface.com/forums/...8&postcount=19 might help you.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
10-16-20, 12:19 PM   #3
tordenflesk
A Deviate Faerie Dragon
Join Date: May 2008
Posts: 18
I've seen that, Unfortunately I don't have a clue where to put that.
  Reply With Quote
10-16-20, 01:01 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,292
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 10-16-20 at 01:03 PM.
  Reply With Quote
10-16-20, 11:38 PM   #5
tordenflesk
A Deviate Faerie Dragon
Join Date: May 2008
Posts: 18
This worked:
Code:
	if not editbox.SetBackdrop then
		Mixin(editbox, BackdropTemplateMixin)
	end
	editbox:SetBackdrop(chatBackdrop)
Thank you.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Fixing crusty old chat addon, Lynchat for 9.0

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off