<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="RecipeRow.lua"></Script>
	
	<Button name="AltoRecipeRowTemplate" virtual="true">
		<Size x="615" y="43" />
		<Layers>
			<Layer level="BACKGROUND">
				<FontString parentKey="IsLearned" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Size x="80" y="14" />
					<Anchors>
						<Anchor point="TOPLEFT" x="100" y="-15" />
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
		 	<Button parentKey="CraftedItem" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="RecipeLink">
				<Size x="230" y="18" />
				<Anchors>
					<Anchor point="TOPLEFT" x="42" y="3" />
				</Anchors>
				<ButtonText parentKey="Text" justifyH="LEFT">
					<Size x="230" y="18" />
					<Anchors>
						<Anchor point="LEFT" x="0" y="0" />
					</Anchors>
				</ButtonText>
				<Scripts>
					<OnEnter>
						self:GetParent():Link_OnEnter()
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide()
					</OnLeave>
					<OnClick>
						self:GetParent():RecipeLink_OnClick(button)
					</OnClick>
				</Scripts>
				<NormalFont style="GameFontNormalLeft"/>
			</Button>
			
			<Button parentKey="Reagent1" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.RecipeLink" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent2" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent1" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent3" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent2" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent4" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent3" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent5" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent4" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent6" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent5" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent7" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent6" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
			<Button parentKey="Reagent8" inherits="AltoItemIconTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.Reagent7" relativePoint="TOPRIGHT" x="5" y="0" />
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				Altoholic:BindViewToController(self, "AltoholicUI.RecipeRow")
			</OnLoad>
		</Scripts>
	</Button>
</Ui>
