<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">

	<Script file="EDB_Frame_Reagent.lua" />

	<!-- Reagent list entry template -->
	<Button name="EDB_Frame_Reagent_ReagentListEntryTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="293" y="16"/>
		</Size>

		<Layers>
			<Layer level="OVERLAY">

				<FontString name="$parent_Name" inherits="GameFontNormalSmall" justifyH="LEFT" text="Greater Eternal Essence">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="4" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="140" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_NumBags" inherits="GameFontNormalSmall" justifyH="LEFT" text="846">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="175" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_NumBank" inherits="GameFontNormalSmall" justifyH="LEFT" text="000">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="215" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

			</Layer>
		</Layers>

		<Frames>
			<Button name="$parent_Icon">
				<Size>
					<AbsDimension x="18" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="-16" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Icons\Spell_Holy_GreaterHeal"/>
			</Button>

			<Frame name="$parent_Price" inherits="EDB_Money_Template">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-12" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>

		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
				EDB_Money_SetText(this:GetName().."_Price", 1234567);
			</OnLoad>
			<OnClick>
				EDB_Frame_Reagent_ReagentListEntry_OnClick();
			</OnClick>
			<OnEnter>
				EDB_Frame_Reagent_ReagentListEntry_OnEnter();
			</OnEnter>
			<OnLeave>
				EDB_Frame_Reagent_ReagentListEntry_OnLeave();
			</OnLeave>
		</Scripts>

	</Button>

	<!-- Reagent Frame -->
	<Frame name="EDB_Frame_Reagent" setAllPoints="true" enableMouse="true" parent="EDB_Frame" hidden="true" id="2">

		<Layers>
		
			<Layer level="BORDER">

				<Texture name="$parent_HorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-340"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
				</Texture>

				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="75" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_HorizontalBarLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
				</Texture>

			</Layer>

			<Layer level="OVERLAY">

				<FontString name="$parent_ReagentListNameHeader" inherits="GameFontNormalSmall" justifyH="LEFT" text="Name">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="45" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_ReagentListNumBagsHeader" inherits="GameFontNormalSmall" justifyH="LEFT" text="Bags">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="188" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_ReagentListNumBankHeader" inherits="GameFontNormalSmall" justifyH="LEFT" text="Bank">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="228" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_ReagentListPriceHeader" inherits="GameFontNormalSmall" justifyH="LEFT" text="Price">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="292" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="$parent_ReagentName" inherits="GameFontNormal" justifyH="LEFT" text="Reagent Name:">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parent_HorizontalBarLeft" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="115" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_ReagentAucPrice" inherits="GameFontNormal" justifyH="LEFT" text="Auction Price:">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parent_ReagentName" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-10"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_ReagentSetPrice" inherits="GameFontNormal" justifyH="LEFT" text="User Set Price:">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parent_ReagentAucPrice" relativePoint="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="-10"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

			</Layer>

		</Layers>

		<Frames>

			<!-- Reagent scroll bar -->
			<ScrollFrame name="$parent_ReagentListScrollBar" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="244"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-67" y="-99"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(15, EDB_Frame_Reagent_ReagentList_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>

			<!-- Reagent list highlight -->
			<Frame name="$parent_ReagentListHighlight" hidden="true">
				<Size>
					<AbsDimension x="293" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parent_ReagentListEntryHighlightTexture" file="Interface\QuestFrame\UI-QuestLogTitleHighlight" alphaMode="ADD"/>
					</Layer>
				</Layers>
			</Frame>

			<!-- Reagent list buttons -->
			<Button name="$parent_ReagentListEntry1" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListScrollBar" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry2" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry3" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry4" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry5" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry4" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry6" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry5" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry7" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry6" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry8" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry7" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry9" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="9">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry8" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry10" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="10">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry9" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry11" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="11">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry10" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry12" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="12">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry11" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry13" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="13">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry12" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry14" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="14">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry13" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry15" inherits="EDB_Frame_Reagent_ReagentListEntryTemplate" id="15">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry14" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>



		</Frames>
		
		<Scripts>
			<OnLoad>
				EDB_Frame_Reagent_OnLoad();
			</OnLoad>
			<OnShow>
				EDB_Frame_Reagent_ReagentList_Update();
			</OnShow>
		</Scripts>

	</Frame>

</Ui>
