<Ui xmlns="http://www.blizzard.com/wow/ui/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.blizzard.com/wow/ui/ 
 ..\..\FrameXML\UI.xsd">

    <Frame name="GMGenie_Spawns_OptionsWindow" hidden="true" parent="UIParent" inherits="GMGenie_OptionsWindowTemplate">
        <Frames>
            <Frame name="$parent_Objects">
                <Size>
                    <AbsDimension x="275" y="64" />
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent_SubText" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="0" y="-5"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Frames>
                    <Button name="$parent_Dropdown" inherits="GMGenie_Dropdown" text="Objects">
                        <Size>
                            <AbsDimension x="135" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" />
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                ToggleDropDownMenu(1, nil, GMGenie_Spawns_OptionsWindow_Objects_Dropdownbuttons, GMGenie_Spawns_OptionsWindow_Objects_Dropdown, 0, 0);
                            </OnClick>
                        </Scripts>
                    </Button>
                    <Frame name="$parent_Dropdownbuttons" inherits="UIDropDownMenuTemplate" id="50" />
                    <Button name="$parent_New" inherits="GMGenie_Button" text="New">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="LEFT" relativeTo="$parent_Dropdown" relativePoint="RIGHT">
                                <Offset>
                                    <AbsDimension x="5" y="0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Objects.cleanForm();
                            </OnClick>
                        </Scripts>
                    </Button>
                    <Frame name="$parent_IdText">
                        <Size>
                            <AbsDimension x="15" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="0" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer>
                                <FontString name="$parent_Text" inherits="GenieFontNormalSmall" text="Id:" justifyH="LEFT">
                                    <Anchors>
                                        <Anchor point="LEFT">
                                            <Offset>
                                                <AbsDimension x="0" y="2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                    </Frame>
                    <EditBox name="$parent_Id" enableMouse="true" inherits="GMGenie_Input_Text">
                        <Size>
                            <AbsDimension x="75" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="20" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnTabPressed>
                                GMGenie_Spawns_OptionsWindow_Objects_Name:SetFocus();
                            </OnTabPressed>
                        </Scripts>
                    </EditBox>
                    <Frame name="$parent_NameText">
                        <Size>
                            <AbsDimension x="30" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="105" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer>
                                <FontString name="$parent_Text" inherits="GenieFontNormalSmall" text="Name:" justifyH="LEFT">
                                    <Anchors>
                                        <Anchor point="LEFT">
                                            <Offset>
                                                <AbsDimension x="0" y="2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                    </Frame>
                    <EditBox name="$parent_Name" enableMouse="true" inherits="GMGenie_Input_Text">
                        <Size>
                            <AbsDimension x="135" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="140" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnTabPressed>
                                GMGenie_Spawns_OptionsWindow_Objects_Id:SetFocus();
                            </OnTabPressed>
                        </Scripts>
                    </EditBox>

                    <Button name="$parent_Delete" inherits="GMGenie_Button" text="Delete">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_IdText" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="0" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Objects.delete();
                            </OnClick>
                            <OnLoad>
                                self:Disable();
                            </OnLoad>
                        </Scripts>
                    </Button>
                    <Button name="$parent_Save" inherits="GMGenie_Button" text="Add">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="LEFT" relativeTo="$parent_Delete" relativePoint="RIGHT">
                                <Offset>
                                    <AbsDimension x="5" y="0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Objects.save();
                            </OnClick>
                        </Scripts>
                    </Button>
                </Frames>
            </Frame>
            <Frame name='$parent_Npcs'>
                <Size>
                    <AbsDimension x="280" y="64" />
                </Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent_Objects" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="0" y="-25"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Frames>
                    <Button name="$parent_Dropdown" inherits="GMGenie_Dropdown" text="Npcs">
                        <Size>
                            <AbsDimension x="135" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" />
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                ToggleDropDownMenu(1, nil, GMGenie_Spawns_OptionsWindow_Npcs_Dropdownbuttons, GMGenie_Spawns_OptionsWindow_Npcs_Dropdown, 0, 0);
                            </OnClick>
                        </Scripts>
                    </Button>
                    <Frame name="$parent_Dropdownbuttons" inherits="UIDropDownMenuTemplate" id="50" />
                    <Button name="$parent_New" inherits="GMGenie_Button" text="New">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="LEFT" relativeTo="$parent_Dropdown" relativePoint="RIGHT">
                                <Offset>
                                    <AbsDimension x="5" y="0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Npcs.cleanForm();
                            </OnClick>
                        </Scripts>
                    </Button>
                    <Frame name="$parent_IdText">
                        <Size>
                            <AbsDimension x="15" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="0" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer>
                                <FontString name="$parent_Text" inherits="GenieFontNormalSmall" text="Id:" justifyH="LEFT">
                                    <Anchors>
                                        <Anchor point="LEFT">
                                            <Offset>
                                                <AbsDimension x="0" y="2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                    </Frame>
                    <EditBox name="$parent_Id" enableMouse="true" inherits="GMGenie_Input_Text">
                        <Size>
                            <AbsDimension x="75" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="20" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnTabPressed>
                                GMGenie_Spawns_OptionsWindow_Npcs_Name:SetFocus();
                            </OnTabPressed>
                        </Scripts>
                    </EditBox>
                    <Frame name="$parent_NameText">
                        <Size>
                            <AbsDimension x="30" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="105" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Layers>
                            <Layer>
                                <FontString name="$parent_Text" inherits="GenieFontNormalSmall" text="Name:" justifyH="LEFT">
                                    <Anchors>
                                        <Anchor point="LEFT">
                                            <Offset>
                                                <AbsDimension x="0" y="2"/>
                                            </Offset>
                                        </Anchor>
                                    </Anchors>
                                </FontString>
                            </Layer>
                        </Layers>
                    </Frame>
                    <EditBox name="$parent_Name" enableMouse="true" inherits="GMGenie_Input_Text">
                        <Size>
                            <AbsDimension x="135" y="18" />
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_Dropdown" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="140" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnTabPressed>
                                GMGenie_Spawns_OptionsWindow_Npcs_Id:SetFocus();
                            </OnTabPressed>
                        </Scripts>
                    </EditBox>

                    <Button name="$parent_Delete" inherits="GMGenie_Button" text="Delete">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="TOPLEFT" relativeTo="$parent_IdText" relativePoint="BOTTOMLEFT">
                                <Offset>
                                    <AbsDimension x="0" y="-5"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Npcs.delete();
                            </OnClick>
                            <OnLoad>
                                self:Disable();
                            </OnLoad>
                        </Scripts>
                    </Button>
                    <Button name="$parent_Save" inherits="GMGenie_Button" text="Add">
                        <Size>
                            <AbsDimension x="135" y="18"/>
                        </Size>
                        <Anchors>
                            <Anchor point="LEFT" relativeTo="$parent_Delete" relativePoint="RIGHT">
                                <Offset>
                                    <AbsDimension x="5" y="0"/>
                                </Offset>
                            </Anchor>
                        </Anchors>
                        <Scripts>
                            <OnClick>
                                GMGenie.Spawns.Npcs.save();
                            </OnClick>
                        </Scripts>
                    </Button>
                </Frames>
            </Frame>
        </Frames>
    </Frame>
</Ui>