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]