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

    <!--

	Skillet: A tradeskill window replacement.
	Copyright (c) 2007 Robert Clark <nogudnik@gmail.com>

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.

    -->

<!--
 #
 # A farme (well, button really) that is inserted into the merchant window
 # to allow the user to buy any reagents the vendor sells that are needed
 # for currently queued recipes.
 #
-->
<Frame name="SkilletMerchantBuyFrame" parent="UIParent" hidden="true">
	<Size>
		<AbsDimension x="300" y="50"/>
	</Size>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parentTopText" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="TOP" text="This merchant sells reagents you need!">
				<Size>
					<AbsDimension x="300" y="0"/>
				</Size>
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="0" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Color r="1" g="1" b="1" a="1"/>
			</FontString>
		</Layer>
	</Layers>
	<Frames>
		<Button name="$parentButton" inherits="GameMenuButtonTemplate" parent="SkilletMerchantBuyFrame" text="Buy Reagents">
		  <Size>
			<AbsDimension x="150" y="18"/>
		  </Size>
		  <Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="0" y="-25"/>
				</Offset>
			</Anchor>
		  </Anchors>
		  <Scripts>
		  	<OnEnter>
				Skillet:MerchantBuyButton_OnEnter(this)
			</OnEnter>
			<OnLeave>
				Skillet:MerchantBuyButton_OnLeave(this)
			</OnLeave>
			<OnClick>
				Skillet:BuyRequiredReagents()
			</OnClick>
		  </Scripts>
		</Button>
	</Frames>
</Frame>

</Ui>