<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="localization.en.lua"/>
	<Script file="localization.de.lua"/>
	<Script file="AtlasLoot.lua"/>
	
	<Button name="AtlasLootBossLineTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="256" y="15"/>
		</Size>
		<NormalText inherits="GameFontNormal" justifyH="LEFT"/>
		<HighlightText inherits="GameFontHighlight" justifyH="LEFT"/>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
		<DisabledText inherits="GameFontDisable" justifyH="LEFT"/>
		<Scripts>
			<OnClick>
				AtlasLootBoss_OnClick(this:GetID());
			</OnClick>
		</Scripts>
	</Button>
	
	<Frame name="AtlasLootBossLinesFrame" toplevel="true" enableMouse="true" parent="AtlasFrame" hidden="false">
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="AtlasText_ZoneName" relativePoint="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-80"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="AtlasBossLine_1" inherits="AtlasLootBossLineTemplate" id="1">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_1" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_2" inherits="AtlasLootBossLineTemplate" id="2">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_2" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_3" inherits="AtlasLootBossLineTemplate" id="3">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_3" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_4" inherits="AtlasLootBossLineTemplate" id="4">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_4" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_5" inherits="AtlasLootBossLineTemplate" id="5">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_5" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_6" inherits="AtlasLootBossLineTemplate" id="6">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_6" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_7" inherits="AtlasLootBossLineTemplate" id="7">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_7" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_8" inherits="AtlasLootBossLineTemplate" id="8">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_8" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_9" inherits="AtlasLootBossLineTemplate" id="9">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_9" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_10" inherits="AtlasLootBossLineTemplate" id="10">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_10" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_11" inherits="AtlasLootBossLineTemplate" id="11">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_11" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_12" inherits="AtlasLootBossLineTemplate" id="12">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_12" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_13" inherits="AtlasLootBossLineTemplate" id="13">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_13" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_14" inherits="AtlasLootBossLineTemplate" id="14">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_14" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_15" inherits="AtlasLootBossLineTemplate" id="15">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_15" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_16" inherits="AtlasLootBossLineTemplate" id="16">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_16" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_17" inherits="AtlasLootBossLineTemplate" id="17">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_17" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_18" inherits="AtlasLootBossLineTemplate" id="18">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_18" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_19" inherits="AtlasLootBossLineTemplate" id="19">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_19" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_20" inherits="AtlasLootBossLineTemplate" id="20">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_20" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_21" inherits="AtlasLootBossLineTemplate" id="21">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_21" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_22" inherits="AtlasLootBossLineTemplate" id="22">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_22" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_23" inherits="AtlasLootBossLineTemplate" id="23">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_23" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_24" inherits="AtlasLootBossLineTemplate" id="24">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_24" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_25" inherits="AtlasLootBossLineTemplate" id="25">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_25" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_26" inherits="AtlasLootBossLineTemplate" id="26">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_26" relativePoint="TOPLEFT"/></Anchors>
			</Button>
			<Button name="AtlasBossLine_27" inherits="AtlasLootBossLineTemplate" id="27">
				<Anchors><Anchor point="TOPLEFT" relativeTo="AtlasText_27" relativePoint="TOPLEFT"/></Anchors>
			</Button>
		</Frames>
	</Frame>
	
	<Button name="AtlasLootItem_Template" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="236" y="30"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<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">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				if(this.itemID ~= nil and GetItemInfo(this.itemID) ~= nil) then
					GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT", -(this:GetWidth() / 2), 24);
					GameTooltip:SetHyperlink("item:"..this.itemID..":0:0:0");
				end
			</OnEnter>
			<OnLeave>
				if(this.itemID ~= nil) then
					GameTooltip:Hide()
				end
			</OnLeave>
			<OnClick>
				local color = strsub(getglobal("AtlasLootItem_"..this:GetID().."_Name"):GetText(), 1, 10);
				local id = this:GetID();
				local name = strsub(getglobal("AtlasLootItem_"..this:GetID().."_Name"):GetText(), 11);
--				local iteminfo = GetItemInfo(id);
--				if(ChatFrameEditBox:IsVisible() and IsShiftKeyDown() and iteminfo) then
--					ChatFrameEditBox:Insert(color.."|Hitem:"..id..":0:0:0|h["..name.."]|h|r");
--					ChatFrameEditBox:Insert("|cff0070dd|Hitem:14344:0:0:0|h[itemname]|h|r");
--					ChatFrameEditBox:Insert(name);
--				elseif(ChatFrameEditBox:IsVisible() and IsShiftKeyDown()) then
--					ChatFrameEditBox:Insert(name);
--				end
				if(ChatFrameEditBox:IsVisible() and IsShiftKeyDown()) then
					ChatFrameEditBox:Insert("["..name.."]");
				end
			</OnClick>
		</Scripts>
	</Button>
	
	<Frame name="AtlasLootInfo" toplevel="true" enableMouse="true" parent="AtlasFrame" hidden="false">
		<Size>
			<AbsDimension x="128" y="25"/>
		</Size>
		<Anchors>
 			<Anchor point="TOPLEFT">
 				<Offset>
 					<AbsDimension x="546" y="-50"/>
 				</Offset>
 			</Anchor>
 		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parent_Text" inherits="GameFontNormalSmall" text="Click onto the bossname to toggle the loot view." justifyH="LEFT">
					<Size>
						<AbsDimension x="180" y="25"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT"/>
					</Anchors>
				</FontString>
				<FontString name="$parent_Text" 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" toplevel="true" enableMouse="true" parent="AtlasFrame" hidden="false">
		<Size>
			<AbsDimension x="510" y="510"/>
		</Size>
		<Anchors>
 			<Anchor point="TOPLEFT">
 				<Offset>
 					<AbsDimension x="18" y="-84"/>
 				</Offset>
 			</Anchor>
 		</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>
		</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="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad> 
				AtlasLoot_OnLoad();
			</OnLoad> 
			<OnEvent> 
				AtlasLoot_OnEvent(event);
			</OnEvent> 
		</Scripts>
	</Frame>
	
</Ui>
