<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="TextParsing.lua"/>
    <Script file="Sets.lua"/>
    <Script file="LootButtons.lua"/>
    <Script file="Options.lua"/>
	<Script file="AtlasLoot.lua"/>
	
    <GameTooltip name="AtlasLootTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
    
    <Button name="AtlasLootBossLineTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="256" y="15"/>
		</Size>
        <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
        <Layers>
            <Layer level="OVERLAY">
                <FontString name="$parent_Text" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT"/>
					</Anchors>
				</FontString>
                <Texture name="$parent_Loot" file="Interface\AddOns\AtlasLoot\Images\AtlasIcon">
                    <Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"/>
					</Anchors>
				</Texture>
                <Texture name="$parent_Selected" file="Interface\MoneyFrame\UI-MoneyIcons">
                    <Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT"/>
					</Anchors>
                    <TexCoords left="0" right="0.25" top="0" bottom="1"/>
				</Texture>
            </Layer>
        </Layers>
		<Scripts>
			<OnClick>
				AtlasLootBoss_OnClick(this:GetID());
			</OnClick>
		</Scripts>
	</Button>
	
    <Button name="AtlasLootNextButtonTemplate" virtual="true" hidden="true">
        <Size>
            <AbsDimension x="32" y="32" />
        </Size>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture file="Interface\Buttons\UI-PageButton-Background">
                    <Size>
                        <AbsDimension x="32" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="1"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnClick>
                AtlasLoot_Set();
            </OnClick>
            <OnShow>
		        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
	        </OnShow>
        </Scripts>
        <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
        <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
        <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
        <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
    </Button>
    
    <Button name="AtlasLootPrevButtonTemplate" virtual="true" hidden="true">
        <Size>
            <AbsDimension x="32" y="32" />
        </Size>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture file="Interface\Buttons\UI-PageButton-Background">
                    <Size>
                        <AbsDimension x="32" y="32"/>
                    </Size>
                    <Anchors>
                        <Anchor point="CENTER">
                            <Offset>
                                <AbsDimension x="0" y="1"/>
                            </Offset>
                        </Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnClick>
                AtlasLoot_Set();
            </OnClick>
            <OnShow>
		        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
	        </OnShow>
        </Scripts>
        <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
        <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
        <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
        <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
    </Button>
    
    <Button name="AtlasLootClassButtonTemplate" inherits="OptionsButtonTemplate" virtual="true" hidden="true">
        <Size>
			<AbsDimension x="120" y="25"/>
		</Size>
        <Scripts>
            <OnClick>
                AtlasLoot_Set();
            </OnClick>
            <OnShow>
		        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
	        </OnShow>
        </Scripts>
    </Button>

	<Frame name="AtlasLootBossLinesFrame" toplevel="true" enableMouse="true" parent="UIParent" hidden="false">
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
		<Frames>
			<Button name="AtlasBossLine_1" inherits="AtlasLootBossLineTemplate" id="1"/>
			<Button name="AtlasBossLine_2" inherits="AtlasLootBossLineTemplate" id="2"/>
			<Button name="AtlasBossLine_3" inherits="AtlasLootBossLineTemplate" id="3"/>
			<Button name="AtlasBossLine_4" inherits="AtlasLootBossLineTemplate" id="4"/>
			<Button name="AtlasBossLine_5" inherits="AtlasLootBossLineTemplate" id="5"/>
			<Button name="AtlasBossLine_6" inherits="AtlasLootBossLineTemplate" id="6"/>
			<Button name="AtlasBossLine_7" inherits="AtlasLootBossLineTemplate" id="7"/>
			<Button name="AtlasBossLine_8" inherits="AtlasLootBossLineTemplate" id="8"/>
			<Button name="AtlasBossLine_9" inherits="AtlasLootBossLineTemplate" id="9"/>
			<Button name="AtlasBossLine_10" inherits="AtlasLootBossLineTemplate" id="10"/>
			<Button name="AtlasBossLine_11" inherits="AtlasLootBossLineTemplate" id="11"/>
			<Button name="AtlasBossLine_12" inherits="AtlasLootBossLineTemplate" id="12"/>
			<Button name="AtlasBossLine_13" inherits="AtlasLootBossLineTemplate" id="13"/>
			<Button name="AtlasBossLine_14" inherits="AtlasLootBossLineTemplate" id="14"/>
			<Button name="AtlasBossLine_15" inherits="AtlasLootBossLineTemplate" id="15"/>
			<Button name="AtlasBossLine_16" inherits="AtlasLootBossLineTemplate" id="16"/>
			<Button name="AtlasBossLine_17" inherits="AtlasLootBossLineTemplate" id="17"/>
			<Button name="AtlasBossLine_18" inherits="AtlasLootBossLineTemplate" id="18"/>
			<Button name="AtlasBossLine_19" inherits="AtlasLootBossLineTemplate" id="19"/>
			<Button name="AtlasBossLine_20" inherits="AtlasLootBossLineTemplate" id="20"/>
			<Button name="AtlasBossLine_21" inherits="AtlasLootBossLineTemplate" id="21"/>
			<Button name="AtlasBossLine_22" inherits="AtlasLootBossLineTemplate" id="22"/>
			<Button name="AtlasBossLine_23" inherits="AtlasLootBossLineTemplate" id="23"/>
			<Button name="AtlasBossLine_24" inherits="AtlasLootBossLineTemplate" id="24"/>
			<Button name="AtlasBossLine_25" inherits="AtlasLootBossLineTemplate" id="25"/>
			<Button name="AtlasBossLine_26" inherits="AtlasLootBossLineTemplate" id="26"/>
			<Button name="AtlasBossLine_27" inherits="AtlasLootBossLineTemplate" id="27"/>
		</Frames>
	</Frame>

    <Button name="AtlasLootItem_ParentTemplate" virtual="true" hidden="false">
        <Size>
			<AbsDimension x="236" y="30"/>
		</Size>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Icon">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<FontString name="$parent_Name" inherits="GameFontNormal" justifyH="LEFT">
					<Size>
						<AbsDimension x="205" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="3" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent_Extra" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size>
						<AbsDimension x="205" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Name" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
    </Button>

	<Button name="AtlasLootItem_Template" inherits="AtlasLootItem_ParentTemplate" virtual="true" hidden="false">
		<Scripts>
            <OnLoad>
                this:RegisterForClicks("LeftButtonDown", "RightButtonDown");
            </OnLoad>
			<OnEnter>
				AtlasLootItem_OnEnter();
			</OnEnter>
			<OnLeave>
				AtlasLootItem_OnLeave();
			</OnLeave>
			<OnClick>
				AtlasLootItem_OnClick(arg1);
			</OnClick>
            <OnShow>
				this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
			</OnShow>
		</Scripts>
	</Button>

	<Frame name="AtlasLootInfo" hidden="false">
		<Size>
			<AbsDimension x="128" y="25"/>
		</Size>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parent_Text1" inherits="GameFontNormalSmall" text="ATLASLOOT_BANNER_TEXT" justifyH="LEFT">
					<Size>
						<AbsDimension x="150" y="25"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
					</Anchors>
				</FontString>
				<FontString name="$parent_Text2" inherits="GameFontNormalSmall" text="ATLASLOOT_VERSION" justifyH="LEFT">
					<Size>
						<AbsDimension x="180" y="25"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
 							<Offset>
 								<AbsDimension x="0" y="18"/>
 							</Offset>
			 			</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="AtlasLootItemsFrame" parent="UIParent" hidden="false">
		<Size>
			<AbsDimension x="510" y="510"/>
		</Size>
		<Anchors>
 			<Anchor point="CENTER"/>
 		</Anchors>
		<Frames>
			<Button name="AtlasLootItem_1" inherits="AtlasLootItem_Template" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-50"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="AtlasLootItem_2" inherits="AtlasLootItem_Template" id="2">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_1" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_3" inherits="AtlasLootItem_Template" id="3">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_2" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_4" inherits="AtlasLootItem_Template" id="4">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_3" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_5" inherits="AtlasLootItem_Template" id="5">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_4" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_6" inherits="AtlasLootItem_Template" id="6">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_5" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_7" inherits="AtlasLootItem_Template" id="7">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_6" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_8" inherits="AtlasLootItem_Template" id="8">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_7" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_9" inherits="AtlasLootItem_Template" id="9">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_8" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_10" inherits="AtlasLootItem_Template" id="10">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_9" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_11" inherits="AtlasLootItem_Template" id="11">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_10" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_12" inherits="AtlasLootItem_Template" id="12">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_11" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_13" inherits="AtlasLootItem_Template" id="13">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_12" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_14" inherits="AtlasLootItem_Template" id="14">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_13" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_15" inherits="AtlasLootItem_Template" id="15">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_14" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_16" inherits="AtlasLootItem_Template" id="16">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="AtlasLootItem_1" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="AtlasLootItem_17" inherits="AtlasLootItem_Template" id="17">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_16" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_18" inherits="AtlasLootItem_Template" id="18">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_17" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_19" inherits="AtlasLootItem_Template" id="19">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_18" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_20" inherits="AtlasLootItem_Template" id="20">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_19" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_21" inherits="AtlasLootItem_Template" id="21">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_20" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_22" inherits="AtlasLootItem_Template" id="22">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_21" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_23" inherits="AtlasLootItem_Template" id="23">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_22" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_24" inherits="AtlasLootItem_Template" id="24">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_23" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_25" inherits="AtlasLootItem_Template" id="25">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_24" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_26" inherits="AtlasLootItem_Template" id="26">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_25" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_27" inherits="AtlasLootItem_Template" id="27">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_26" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_28" inherits="AtlasLootItem_Template" id="28">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_27" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_29" inherits="AtlasLootItem_Template" id="29">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_28" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
			<Button name="AtlasLootItem_30" inherits="AtlasLootItem_Template" id="30">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_29" relativePoint="BOTTOMLEFT"/></Anchors>
			</Button>
            <Button name="$parent_Druid" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_DRUID">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP">
                        <Offset>
                            <AbsDimension x="0" y="-50"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Hunter" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_HUNTER">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Druid" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Mage" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_MAGE">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Hunter" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Paladin" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_PALADIN">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Mage" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Priest" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_PRIEST">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Paladin" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Rogue" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_ROGUE">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Priest" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Shaman" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_SHAMAN">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Rogue" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Warlock" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_WARLOCK">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Shaman" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Warrior" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_WARRIOR">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Warlock" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_Weapons" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_WEAPONS">
                <Anchors>
                    <Anchor point="TOP" relativeTo="$parent_Warrior" relativePoint="BOTTOM">
                        <Offset>
                            <AbsDimension x="0" y="-10"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_BACK" inherits="AtlasLootClassButtonTemplate" text="ATLASLOOT_UIBACK">
                <Anchors>
                    <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
                        <Offset>
                            <AbsDimension x="5" y="-5"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_NEXT" inherits="AtlasLootNextButtonTemplate">
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
                        <Offset>
                            <AbsDimension x="-12" y="8"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="$parent_PREV" inherits="AtlasLootPrevButtonTemplate">
                <Anchors>
                    <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
                        <Offset>
                            <AbsDimension x="12" y="8"/>
                        </Offset>
                    </Anchor>
                </Anchors>
            </Button>
            <Button name="AtlasLoot_Tier0Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_3" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("T0SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_Tier0Button_Name:SetText(ATLASLOOT_TIER0_SETS);
                        AtlasLoot_Tier0Button_Extra:SetText("");
                        AtlasLoot_Tier0Button_Icon:SetTexture("Interface\\Icons\\INV_Chest_Chain_03");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_Tier1Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_4" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("T1SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_Tier1Button_Name:SetText(ATLASLOOT_TIER1_SETS);
                        AtlasLoot_Tier1Button_Extra:SetText("");
                        AtlasLoot_Tier1Button_Icon:SetTexture("Interface\\Icons\\INV_Pants_Mail_03");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_Tier2Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_5" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("T2SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_Tier2Button_Name:SetText(ATLASLOOT_TIER2_SETS);
                        AtlasLoot_Tier2Button_Extra:SetText("");
                        AtlasLoot_Tier2Button_Icon:SetTexture("Interface\\Icons\\INV_Shoulder_32");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_Tier3Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_6" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("T3SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_Tier3Button_Name:SetText(ATLASLOOT_TIER3_SETS);
                        AtlasLoot_Tier3Button_Extra:SetText("");
                        AtlasLoot_Tier3Button_Icon:SetTexture("Interface\\Icons\\INV_Pants_Cloth_05");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_ZGButton" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_18" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("ZGSET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_ZGButton_Name:SetText(ATLASLOOT_ZG_SETS);
                        AtlasLoot_ZGButton_Extra:SetText("");
                        AtlasLoot_ZGButton_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Necklace_19");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_AQ20Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_19" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("AQ20SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_AQ20Button_Name:SetText(ATLASLOOT_AQ20_SETS);
                        AtlasLoot_AQ20Button_Extra:SetText("");
                        AtlasLoot_AQ20Button_Icon:SetTexture("Interface\\Icons\\INV_Jewelry_Ring_AhnQiraj_03");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_AQ40Button" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_20" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("AQ40SET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_AQ40Button_Name:SetText(ATLASLOOT_AQ40_SETS);
                        AtlasLoot_AQ40Button_Extra:SetText("");
                        AtlasLoot_AQ40Button_Icon:SetTexture("Interface\\Icons\\INV_Sword_59");
			        </OnShow>
				</Scripts>
			</Button>
			<Button name="AtlasLoot_PVPButton" inherits="AtlasLootItem_ParentTemplate">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasLootItem_21" relativePoint="TOPLEFT"/></Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetButton_OnClick("PVPSET");
					</OnClick>
                    <OnShow>
				        AtlasLoot_PVPButton_Name:SetText(ATLASLOOT_PVP_SETS);
                        AtlasLoot_PVPButton_Extra:SetText("");
                        AtlasLoot_PVPButton_Icon:SetTexture("Interface\\Icons\\INV_Axe_02");
			        </OnShow>
				</Scripts>
			</Button>
		</Frames>
		<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="0" a="0.7"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="AtlasLoot_BossName" inherits="GameFontHighlightLarge" justifyH="CENTER">
					<Size>
						<AbsDimension x="512" y="30"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="$parent" relativePoint="TOP"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				AtlasLoot_OnLoad();
			</OnLoad>
			<OnEvent>
				AtlasLoot_OnEvent(event);
			</OnEvent>
		</Scripts>
	</Frame>
    
    <Frame name="AtlasLootOptionsFrame" toplevel="true" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="true" parent="UIParent" enableKeyboard="true">
		<Size>
			<AbsDimension x="300" y="280"/>
		</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>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="ATLASLOOT_OPTIONS_TITLE">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton name="$parentSafeLinks" inherits="OptionsCheckButtonTemplate" enable="false">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_SAFE_LINKS);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_SafeLinksToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentAllLinks" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-70"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_ALL_LINKS);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_AllLinksToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentDefaultTT" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-100"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_DEFAULT_TOOLTIPS);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_DefaultTTToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
			<CheckButton name="$parentLootlinkTT" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-130"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_LOOTLINK_TOOLTIPS);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_LootlinkTTToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
            <CheckButton name="$parentItemSyncTT" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-160"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_ITEMSYNC_TOOLTIPS);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_ItemSyncTTToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
            <CheckButton name="$parentEquipCompare" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-190"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."Text"):SetText(ATLASLOOT_OPTIONS_EQUIPCOMPARE);
					</OnLoad>
					<OnClick>
						AtlasLootOptions_EquipCompareToggle();
					</OnClick>
				</Scripts>
			</CheckButton>
			<Button name="$parentDone" inherits="OptionsButtonTemplate" text="ATLASLOOT_OPTIONS_DONE">
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						AtlasLootOptions_Toggle();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				AtlasLootOptions_OnLoad();
			</OnLoad>
		</Scripts>
	</Frame>
    
    <Frame name="AtlasLootPanel">
        <Size>
			<AbsDimension x="230" y="60"/>
		</Size>
        <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>
        <Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Title" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="275" y="59"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="BOTTOM">
                            <Offset>
								<AbsDimension x="0" y="-35"/>
							</Offset>                        
                        </Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="Atlasloot Enhanced">
					<Anchors>
						<Anchor point="BOTTOM" relativeTo="$parent_Title" relativePoint="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="34"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
        <Frames>
            <Button name="$parent_Options" inherits="OptionsButtonTemplate" text="ATLASLOOT_PANEL_BUTTON_OPTIONS">
                <Anchors>
                    <Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
                        <Offset>
                            <AbsDimension x="15" y="4"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnClick>
						AtlasLootOptions_Toggle();
					</OnClick>
                    <OnShow>
				        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
			        </OnShow>
				</Scripts>
            </Button>
            <Button name="$parent_Sets" inherits="OptionsButtonTemplate" text="ATLASLOOT_PANEL_BUTTON_SETS">
                <Anchors>
                    <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
                        <Offset>
                            <AbsDimension x="-15" y="4"/>
                        </Offset>
                    </Anchor>
                </Anchors>
                <Scripts>
					<OnClick>
						AtlasLootSetMenu();
					</OnClick>
                    <OnShow>
				        this:SetFrameLevel( (this:GetParent()):GetFrameLevel() + 1 );
			        </OnShow>
				</Scripts>
            </Button>
        </Frames>
    </Frame>

</Ui>

