<GuiXml>
    <Controls>

        <TopLevelControl name="LeoGMWindow" mouseEnabled="true" movable="true" hidden="true" clampedToScreen="true">
            <Dimensions x="900" y="700" />
            <Anchor point="TOP" relativeTo="GuiRoot" relativePoint="CENTER" offsetY="100" />

            <OnMoveStop> LeoGM:OnWindowMoveStop() </OnMoveStop>

            <Controls>
                <Backdrop name="$(parent)BG" centerColor="000000" edgeColor="222222">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)"/>
                    <Dimensions x="900" y="50"/>
                    <Edge edgeSize="1"/>
                </Backdrop>
                <Backdrop name="$(parent)HeaderBG" centerColor="111111" edgeColor="222222">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)" offsetX="8" offsetY="5"/>
                    <Dimensions x="660" y="40"/>
                    <Edge edgeSize="1"/>
                </Backdrop>
                <Label name="$(parent)Title" color="39B027" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                       verticalAlignment="CENTER" mouseEnabled="true">
                    <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="16" offsetY="10"/>
                </Label>

                <Button name="$(parent)RulesButton" clickSound="Click">
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" relativeTo="$(parent)HeaderBG" offsetX="47" />
                    <Dimensions x="40" y="40"/>
                    <OnMouseEnter>ZO_Tooltips_ShowTextTooltip(self, TOP, 'House Rules')</OnMouseEnter>
                    <OnMouseExit>ZO_Tooltips_HideTextTooltip()</OnMouseExit>
                    <OnClicked>LeoGM.ShowTab("Rules")</OnClicked>
                    <Controls>
                        <Backdrop name="$(parent)BG" centerColor="101010" edgeColor="202020">
                            <AnchorFill/>
                            <Edge edgeSize="1"/>
                        </Backdrop>
                        <Texture name="$(parent)Texture" textureFile="esoui/art/tutorial/menubar_ava_up.dds">
                            <Dimensions y="35" x="35"/>
                            <Anchor point="128"/>
                        </Texture>
                    </Controls>
                </Button>
                <Button name="$(parent)PurgeButton" clickSound="Click">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)RulesButton" offsetX="45"/>
                    <Dimensions x="40" y="40"/>
                    <OnMouseEnter>ZO_Tooltips_ShowTextTooltip(self, TOP, 'Purge')</OnMouseEnter>
                    <OnMouseExit>ZO_Tooltips_HideTextTooltip()</OnMouseExit>
                    <OnClicked>LeoGM.ShowTab("Purge")</OnClicked>
                    <Controls>
                        <Backdrop name="$(parent)BG" centerColor="101010" edgeColor="202020">
                            <AnchorFill/>
                            <Edge edgeSize="1"/>
                        </Backdrop>
                        <Texture name="$(parent)Texture" textureFile="esoui/art/deathrecap/deathrecap_killingblow_icon.dds">
                            <Dimensions y="35" x="35"/>
                            <Anchor point="128"/>
                        </Texture>
                    </Controls>
                </Button>
                <Button name="$(parent)RaffleButton" clickSound="Click">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)PurgeButton" offsetX="45"/>
                    <Dimensions x="40" y="40"/>
                    <OnMouseEnter>ZO_Tooltips_ShowTextTooltip(self, TOP, 'Raffle')</OnMouseEnter>
                    <OnMouseExit>ZO_Tooltips_HideTextTooltip()</OnMouseExit>
                    <!--<OnClicked>LeoGM.ShowTab("Raffle")</OnClicked>-->
                    <Controls>
                        <Backdrop name="$(parent)BG" centerColor="101010" edgeColor="202020">
                            <AnchorFill/>
                            <Edge edgeSize="1"/>
                        </Backdrop>
                        <Texture name="$(parent)Texture" textureFile="esoui/art/mainmenu/menubar_inventory_up.dds">
                            <Dimensions y="35" x="35"/>
                            <Anchor point="128"/>
                        </Texture>
                    </Controls>
                </Button>
                <Button name="$(parent)FeedbackButton" clickSound="Click">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)RaffleButton" offsetX="45"/>
                    <Dimensions x="40" y="40"/>
                    <OnMouseEnter>ZO_Tooltips_ShowTextTooltip(self, TOP, 'Research')</OnMouseEnter>
                    <OnMouseExit>ZO_Tooltips_HideTextTooltip()</OnMouseExit>
                    <Controls>
                        <Backdrop name="$(parent)BG" centerColor="101010" edgeColor="202020">
                            <AnchorFill/>
                            <Edge edgeSize="1"/>
                        </Backdrop>
                    </Controls>
                </Button>
                <Button name="$(parent)Close" clickSound="Click">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$(parent)FeedbackButton" offsetX="45"/>
                    <Dimensions x="40" y="40"/>
                    <OnClicked>LeoGM:HideUI()</OnClicked>
                    <Controls>
                        <Backdrop name="$(parent)BG" centerColor="101010" edgeColor="202020">
                            <AnchorFill/>
                            <Edge edgeSize="1"/>
                        </Backdrop>
                        <Texture name="$(parent)Texture" textureFile="esoui/art/buttons/decline_up.dds">
                            <Dimensions y="25" x="25"/>
                            <Anchor point="128"/>
                        </Texture>
                    </Controls>
                </Button>

                <Backdrop name="LeoGMWindowRulesPanel" tier="1" centerColor="000000" edgeColor="202020" hidden="true" clampedToScreen="true" movable="false" mouseEnabled="true">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="LeoGMWindow" offsetX="0" offsetY="52"/>
                    <Dimensions x="900" y="648"/>
                    <Edge edgeSize="1"/>
                    <Controls>

                        <Label name="$(parent)RequirementsLabel" text="Requirements" font="ZoFontWinH2" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="CENTER" mouseEnabled="false">
                            <Dimensions x="900" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="20" offsetY="20"/>
                        </Label>

                        <Label name="$(parent)TicketsLabel" text="Tickets" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="RIGHT" mouseEnabled="false">
                            <Dimensions x="120" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)RequirementsLabel" relativePoint="BOTTOMLEFT" offsetY="10"/>
                        </Label>
                        <Slider name="$(parent)TicketsSlider" mouseEnabled="true" step="1" orientation="horizontal">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)TicketsLabel" relativePoint="TOPRIGHT" offsetX="10" offsetY="14" />
                            <ThumbTexture textureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" disabledTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" highlightedTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" thumbWidth="8" thumbHeight="16" left="0" top="0" bottom="1" right="1" />
                            <Dimensions x="160" y="14" />
                            <Limits min="0" max="100" />
                            <OnValueChanged>
                                LeoGMWindow.OnTicketsSliderMoved()
                            </OnValueChanged>
                            <Controls>
                                <Backdrop name="$(parent)Backdrop" centerColor="000000">
                                    <Edge file="/EsoUI/Art/Tooltips/UI-SliderBackdrop.dds" edgeFileWidth="32" edgeFileHeight="4" />
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="4" />
                                    <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="-4" />
                                </Backdrop>
                            </Controls>
                        </Slider>
                        <Label name="$(parent)TicketsValue" text="disabled" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="80" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)TicketsSlider" relativePoint="TOPRIGHT" offsetX="10" offsetY="-10" />
                        </Label>

                        <Label name="$(parent)SalesLabel" text="Sales" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="RIGHT" mouseEnabled="false">
                            <Dimensions x="120" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)TicketsValue" relativePoint="TOPRIGHT" offsetX="10"/>
                        </Label>
                        <Slider name="$(parent)SalesSlider" mouseEnabled="true" step="10" orientation="horizontal">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)SalesLabel" relativePoint="TOPRIGHT" offsetX="10" offsetY="14" />
                            <ThumbTexture textureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" disabledTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" highlightedTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" thumbWidth="8" thumbHeight="16" left="0" top="0" bottom="1" right="1" />
                            <Dimensions x="160" y="14" />
                            <Limits min="0" max="1000" />
                            <OnValueChanged>
                                LeoGMWindow.OnSalesSliderMoved()
                            </OnValueChanged>
                            <Controls>
                                <Backdrop name="$(parent)Backdrop" centerColor="000000">
                                    <Edge file="/EsoUI/Art/Tooltips/UI-SliderBackdrop.dds" edgeFileWidth="32" edgeFileHeight="4" />
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="4" />
                                    <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="-4" />
                                </Backdrop>
                            </Controls>
                        </Slider>
                        <Label name="$(parent)SalesValue" text="disabled" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="80" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)SalesSlider" relativePoint="TOPRIGHT" offsetX="10" offsetY="-10" />
                        </Label>

                        <Label name="$(parent)OfflineLabel" text="Inactivity" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="RIGHT" mouseEnabled="false">
                            <Dimensions x="120" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)TicketsLabel" relativePoint="BOTTOMLEFT" offsetY="10"/>
                        </Label>
                        <Slider name="$(parent)OfflineSlider" mouseEnabled="true" step="1" orientation="horizontal">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)OfflineLabel" relativePoint="TOPRIGHT" offsetX="10" offsetY="14" />
                            <ThumbTexture textureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" disabledTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" highlightedTextureFile="/esoui/art/miscellaneous/scrollbox_elevator.dds" thumbWidth="8" thumbHeight="16" left="0" top="0" bottom="1" right="1" />
                            <Dimensions x="160" y="14" />
                            <Limits min="0" max="100" />
                            <OnValueChanged>
                                LeoGMWindow.OnOfflineSliderMoved()
                            </OnValueChanged>
                            <Controls>
                                <Backdrop name="$(parent)Backdrop" centerColor="000000">
                                    <Edge file="/EsoUI/Art/Tooltips/UI-SliderBackdrop.dds" edgeFileWidth="32" edgeFileHeight="4" />
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="0" offsetY="4" />
                                    <Anchor point="BOTTOMRIGHT" relativeTo="$(parent)" relativePoint="BOTTOMRIGHT" offsetX="0" offsetY="-4" />
                                </Backdrop>
                            </Controls>
                        </Slider>
                        <Label name="$(parent)OfflineValue" text="disabled" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="120" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)OfflineSlider" relativePoint="TOPRIGHT" offsetX="10" offsetY="-10" />
                        </Label>

                        <Label name="$(parent)RequirementsDesc" text="" font="ZoFontGame" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="CENTER" mouseEnabled="false">
                            <Dimensions x="860" y="60"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="20" offsetY="160" />
                        </Label>

                        <Texture name="$(parent)Divider" textureFile="EsoUI/Art/Miscellaneous/centerscreen_topDivider.dds">
                            <Dimensions x="900" y="5" />
                            <Anchor point="TOP" relativeTo="$(parent)" relativePoint="TOP" offsetX="0" offsetY="220" />
                        </Texture>


                        <Label name="$(parent)BlacklistLabel" text="Blacklist" font="ZoFontWinH2" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="CENTER" mouseEnabled="false">
                            <Dimensions x="900" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="20" offsetY="240" />
                        </Label>
                        <Label name="$(parent)BlacklistDesc" text="UserIDs that will be kicked |cFF2222automatically|r: " font="ZoFontGame" wrapMode="ELLIPSIS"
                               color="FFFFFF" verticalAlignment="TOP" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="320" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)BlacklistLabel" relativePoint="TOPLEFT" offsetX="0" offsetY="40" />
                        </Label>
                        <Label name="$(parent)BlacklistList" text="" font="ZoFontGame" wrapMode="ELLIPSIS"
                               color="FFFFFF" verticalAlignment="TOP" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="500" y="90"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)BlacklistDesc" relativePoint="TOPRIGHT" offsetX="0" offsetY="0" />
                        </Label>
                        <Button name="$(parent)Save" inherits="ZO_DefaultButton" font="ZoFontWinH4" text="Change">
                            <Dimensions x="200" y="30" />
                            <Anchor point="TOPLEFT" relativeTo="$(parent)BlacklistDesc" relativePoint="BOTTOMLEFT" offsetX="2" offsetY="16"/>
                            <OnClicked>
                                LeoGMWindow.OnBlackListClick()
                            </OnClicked>
                        </Button>

                    </Controls>
                </Backdrop>

                <Backdrop name="LeoGMWindowPurgePanel" tier="1" centerColor="000000" edgeColor="202020" hidden="true" clampedToScreen="true" movable="false" mouseEnabled="true">
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="LeoGMWindow" offsetX="0" offsetY="52"/>
                    <Dimensions x="900" y="648"/>
                    <Edge edgeSize="1"/>
                    <Controls>

                        <Label name="$(parent)RankLabel" text="Rank" font="ZoFontWinH3" wrapMode="ELLIPSIS"
                               color="E8DFAF" verticalAlignment="CENTER" horizontalAlignment="RIGHT" mouseEnabled="false">
                            <Dimensions x="120" y="35"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetY="10"/>
                        </Label>

                        <Button name="$(parent)ListButton" text="List" inherits="ZO_DefaultButton">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)RankLabel" relativePoint="TOPRIGHT" offsetX="300" offsetY="0"/>
                            <Dimensions x="180" />
                            <OnClicked>
                                LeoGM:ListPurge()
                            </OnClicked>
                        </Button>

                        <Texture name="$(parent)LoadingIcon" textureFile="EsoUI/Art/Miscellaneous/wait_icon.dds" hidden="true">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)ListButton" relativePoint="TOPRIGHT" offsetX="20" offsetY="-4" />
                            <Dimensions x="32" y="32" />
                        </Texture>

                        <Label name="$(parent)PurgeDesc" text="" font="ZoFontGame" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="860" y="60"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" offsetX="20" offsetY="50" />
                        </Label>

                        <Control name="$(parent)MemberScroll" inheritAlpha="true">
                            <Anchor point="TOPLEFT" relativeTo="$(parent)RankLabel" relativePoint="TOPLEFT" offsetX="80" offsetY="100"/>
                            <Dimensions x="720" y="230" />
                            <Controls>
                                <Control name="$(parent)Headers">
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" />
                                    <Controls>
                                        <Control name="$(parent)Name" inherits="ZO_SortHeader">
                                            <Anchor point="TOPLEFT" relativeTo="$(parent)" relativePoint="TOPLEFT" />
                                            <Dimensions x="250" y="20" />
                                            <OnInitialized>
                                                ZO_SortHeader_Initialize(self, "Name", "name", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                            </OnInitialized>
                                        </Control>
                                        <Control name="$(parent)Deposits" inherits="ZO_SortHeader">
                                            <Anchor point="TOPLEFT" relativeTo="$(parent)Name" relativePoint="TOPRIGHT" offsetX="10" />
                                            <Dimensions x="100" y="20" />
                                            <OnInitialized>
                                                ZO_SortHeader_Initialize(self, "Deposits", "deposits", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                            </OnInitialized>
                                        </Control>
                                        <Control name="$(parent)Sales" inherits="ZO_SortHeader">
                                            <Anchor point="TOPLEFT" relativeTo="$(parent)Deposits" relativePoint="TOPRIGHT" offsetX="10" />
                                            <Dimensions x="100" y="20" />
                                            <OnInitialized>
                                                ZO_SortHeader_Initialize(self, "Sales", "sales", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                            </OnInitialized>
                                        </Control>
                                        <Control name="$(parent)Online" inherits="ZO_SortHeader">
                                            <Anchor point="TOPLEFT" relativeTo="$(parent)Sales" relativePoint="TOPRIGHT" offsetX="10" />
                                            <Dimensions x="100" y="20" />
                                            <OnInitialized>
                                                ZO_SortHeader_Initialize(self, "Online", "online", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                            </OnInitialized>
                                        </Control>
                                        <Control name="$(parent)Rank" inherits="ZO_SortHeader">
                                            <Anchor point="TOPLEFT" relativeTo="$(parent)Online" relativePoint="TOPRIGHT" offsetX="10" />
                                            <Dimensions x="100" y="20" />
                                            <OnInitialized>
                                                ZO_SortHeader_Initialize(self, "Rank", "rankIndex", ZO_SORT_ORDER_DOWN, TEXT_ALIGN_LEFT, "ZoFontGameLargeBold")
                                            </OnInitialized>
                                        </Control>
                                    </Controls>
                                </Control>
                                <Control name="$(parent)List" inherits="ZO_ScrollList">
                                    <Dimensions x="720" y="400" />
                                    <Anchor point="TOPLEFT" relativeTo="$(parent)Headers" relativePoint="TOPLEFT" offsetY="30" />
                                </Control>

                            </Controls>
                        </Control>

                        <Label name="$(parent)ListResult" text="" font="ZoFontGame" wrapMode="ELLIPSIS"
                               verticalAlignment="CENTER" horizontalAlignment="LEFT" mouseEnabled="false">
                            <Dimensions x="860" y="60"/>
                            <Anchor point="TOPLEFT" relativeTo="$(parent)MemberScrollList" relativePoint="BOTTOMLEFT" offsetX="0" offsetY="20" />
                        </Label>

                    </Controls>
                </Backdrop>

            </Controls>
        </TopLevelControl>

        <Control name="LeoGMMemberListTemplate" virtual="true" mouseEnabled="true">
            <Dimensions x="720" y="30" />
            <Controls>
                <Texture name="$(parent)BG" inherits="ZO_ThinListBgStrip" />

                <Label name="$(parent)Name" font="ZoFontGame" color="ffffff" verticalAlignment="CENTER" mouseEnabled="true">
                    <Dimensions x="250" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)BG" relativePoint="TOPLEFT"/>
                    <OnMouseUp> LeoGM.UserClick(self, button, upInside) </OnMouseUp>
                </Label>
                <Label name="$(parent)Deposits" font="ZoFontGame" verticalAlignment="CENTER">
                    <Dimensions x="100" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Name" relativePoint="TOPRIGHT" offsetX="10"/>
                </Label>
                <Label name="$(parent)Sales" font="ZoFontGame" verticalAlignment="CENTER">
                    <Dimensions x="100" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Deposits" relativePoint="TOPRIGHT" offsetX="10"/>
                </Label>
                <Label name="$(parent)Online" font="ZoFontGame" verticalAlignment="CENTER">
                    <Dimensions x="100" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Sales" relativePoint="TOPRIGHT" offsetX="10"/>
                </Label>
                <Label name="$(parent)Rank" font="ZoFontGame" verticalAlignment="CENTER">
                    <Dimensions x="100" y="32" />
                    <Anchor point="TOPLEFT" relativeTo="$(parent)Online" relativePoint="TOPRIGHT" offsetX="10"/>
                </Label>
            </Controls>
        </Control>

        <Control name="LeoGMWindowDropdown" inherits="ZO_ComboBox" virtual="true">
            <OnInitialized>
                ZO_ComboBox:New(self)
            </OnInitialized>
        </Control>

    </Controls>
</GuiXml>