View Single Post
09-16-22, 08:23 PM   #5
Sharpedge
A Wyrmkin Dreamwalker
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 54
Originally Posted by Fizzlemizz View Post
Also, try changing the parenting from
Lua Code:
  1. local Incoming = CreateFrame("Frame", nil, PARENT_FRAME, BackdropTemplateMixin and "BackdropTemplate");
to

Lua Code:
  1. local Incoming = CreateFrame("Frame", nil, LocationMessageView, BackdropTemplateMixin and "BackdropTemplate");
Unless you have PARENT_FRAME assigned as something somewhere, it is nil.

The name of your XML frame (LocationMessageView) will be added to the global table and, assuming your XML file/frame loads first, you can use that as the parent in your .lua frame. This is done with the names of all frames.
Just tried it and got the same results.
  Reply With Quote