View Single Post
04-26-23, 11:21 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,906
Create the whole "Panel" frame in XML and use whatever name you give it in the

Code:
	<Frame name="AeroMaxxDCharacterFrame" parent="CharacterFrame" frameStrata="HIGH" enableMouse="true" setallpoints="true" id="4">
		<Frames>
			<Frame name="OuterContent" frameStrata="HIGH" enableMouse="true" movable="true">
			...
		</Frames>
	</Frame>
in lua:
Code:
tinsert(CHARACTERFRAME_SUBFRAMES, "AeroMaxxDCharacterFrame") -- or whatever name you gave it in XML
Because frame names are global, make sure it is unique to you/your addon. To do this with all the other frames, add $parent to the names
Code:
<Frame name="$parentOuterContent" parentKey="OuterContent"...>
the game will replace $parent with the parent frame's name.

and/or use the parentKey and in code you can use it as
[code]AeroMaxxDCharacterFrame.OuterContent[C/ODE]
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-26-23 at 11:33 AM.
  Reply With Quote