<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/">
    <Script file="AtlasLootDefaultFrame.lua"/>
    <Frame name="AtlasLootDefaultFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
		<Size>
			<AbsDimension x="600" y="655"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
        <Frames>
            <Button name="$parent_CloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="AtlasLootDefaultFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-10" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
                <Scripts>
                    <OnClick>
                        AtlasLootDefaultFrame:Hide();
                    </OnClick>
                    <OnShow>
				        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
			        </OnShow>
                </Scripts>
			</Button>
            <Button name="$parent_Options" inherits="OptionsButtonTemplate" text="ATLASLOOT_PANEL_BUTTON_OPTIONS">
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                        <Offset>
                            <AbsDimension x="15" y="-15"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnClick>
						AtlasLootOptions_Toggle();
					</OnClick>
                    <OnShow>
				        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
			        </OnShow>
				</Scripts>
            </Button>
            <Button name="AtlasLootTypeDropDown" inherits="UIDropDownMenuTemplate">
                <Size>
			        <AbsDimension x="128" y="16"/>
		        </Size>
                <Anchors>
					<Anchor point="TOPLEFT" relativeTo="AtlasLootDefaultFrame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="10" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
                <Scripts>
                    <OnShow>
                        AtlasLootTypeDropDown_OnShow();
                    </OnShow>
                </Scripts>
            </Button>
            <Button name="AtlasLootZoneDropDown" inherits="UIDropDownMenuTemplate">
                <Size>
			        <AbsDimension x="180" y="16"/>
		        </Size>
                <Anchors>
					<Anchor point="LEFT" relativeTo="AtlasLootTypeDropDown" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
                <Scripts>
                    <OnShow>
                        AtlasLootZoneDropDown_OnShow();
                    </OnShow>
                </Scripts>
            </Button>
            <Button name="AtlasLootBossDropDown" inherits="UIDropDownMenuTemplate">
                <Size>
			        <AbsDimension x="128" y="16"/>
		        </Size>
                <Anchors>
					<Anchor point="LEFT" relativeTo="AtlasLootZoneDropDown" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
                <Scripts>
                    <OnShow>
                        AtlasLootBossDropDown_OnShow();
                    </OnShow>
                </Scripts>
            </Button>
            <Frame name="$parent_LootBackground">
                <Size>
			        <AbsDimension x="515" y="515"/>
		        </Size>
                <Anchors>
					<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="65"/>
						</Offset>
					</Anchor>
				</Anchors>
                <Layers>
                    <Layer level="BACKGROUND">
				        <Texture name="$parent_Back">
					        <Anchors>
						        <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
						        <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"/>
					        </Anchors>
					        <Color r="0" g="0" b="1" a="0.5"/>
				        </Texture>
			        </Layer>
                </Layers>
            </Frame>
            <EditBox name="AtlasLootDefaultFrameSearchBox" inherits="InputBoxTemplate" letters="100">
				<Size>
					<AbsDimension x="200" y="32"></AbsDimension>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetAutoFocus(false);
						this:SetTextInsets(0, 8, 0, 0);
					</OnLoad>
					<OnEnterPressed>
						AtlasLoot_Search(this:GetText());
						this:ClearFocus();
					</OnEnterPressed>
				</Scripts>
				<FontString name="AtlasLootDefaultFrameSearchString" inherits="GameFontNormal"></FontString>
			</EditBox>
            <Button name="AtlasLootDefaultFrameSearchButton" inherits="UIPanelButtonTemplate2" parent="AtlasLootDefaultFrameSearchBox" text="ATLASLOOT_SEARCH">
				<Size>
					<AbsDimension x="69" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="1" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AtlasLoot_Search(AtlasLootDefaultFrameSearchBox:GetText());
						AtlasLootDefaultFrameSearchBox:ClearFocus();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="AtlasLootDefaultFrameSearchClearButton" inherits="UIPanelButtonTemplate2" parent="AtlasLootDefaultFrameSearchBox" text="ATLASLOOT_CLEAR">
				<Size>
					<AbsDimension x="58" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-7" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AtlasLootDefaultFrameSearchBox:SetText("");
						AtlasLootDefaultFrameSearchBox:ClearFocus();
					</OnClick>
				</Scripts>
			</Button>
        </Frames>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="425" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="ATLASLOOT_VERSION">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
                <FontString inherits="GameFontNormal" text="ATLASLOOT_DEFAULTFRAME_NOTICE">
					<Anchors>
						<Anchor point="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
        <Scripts>
            <OnLoad>
                this:RegisterForDrag("LeftButton");
                this:SetMovable(1);
                this:SetBackdropColor(0.75, 0, 0.75);
            </OnLoad>
            <OnShow>
                AtlasLootDefaultFrame_OnShow();
            </OnShow>
            <OnHide>
                AtlasLootDefaultFrame_OnHide();
            </OnHide>
            <OnDragStart>
                this:StartMoving();
                this.isMoving = true;
            </OnDragStart>
            <OnDragStop>
                this:StopMovingOrSizing();
                this.isMoving = false;
            </OnDragStop>
        </Scripts>
    </Frame>
    
</Ui>