View Single Post
07/11/16, 01:19 PM   #10
Haho
Join Date: Jul 2016
Posts: 15
Originally Posted by tgolsson View Post
Sorry, I was perhaps a bit too brief.

I was wondering whether I could do
Code:
<GuiXml>
    <Controls>
        <Control name="MyAddonUnitFrame" virtual="true">
             <Controls>
                 <Label name="$(parent)Name" text="bob" />
             </Controls>
        </Control>
    </Controls>
</GuiXml>
<!-- another file -->
<GuiXml>
    <Controls>
        <TopLevelControl>
            <Controls>
                <MyAddonUnitFrame name="AddonGroup1" />
            </Controls>
        </TopLevelControl>
    </Controls>
</GuiXml>
Or something similar to this.

i'd say more like :
Code:
<GuiXml>
    <Controls>
        <TopLevelControl name="MyAddon"> 
        </TopLevelControl>
   

<!-- same file -->

        <Control name="MyAddonUnitFrame" virtual="true">
             <Controls>
                 <Label name="$(parent)Name" text="bob" />
             </Controls>
        </Control>
   </Controls>
</GuiXml>

Last edited by Haho : 07/11/16 at 01:22 PM.
  Reply With Quote