<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
	<Script file="EnchantingSell_PriceFrame.lua" />

	<Frame name="EnchantingSell_ChangeEnchantePriceFrame"  toplevel="true" movable="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="280" y="200"/>
		</Size>
		<Anchors>
			<Anchor point="TOP">
				<Offset>
					<AbsDimension x="0" y="-200"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border">
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="10" right="10" top="10" bottom="10"/>
			</BackgroundInsets>
		</Backdrop>
		<Frames>
			<Frame name="$parent_PriceWithPourcent">
				<Size>
					<AbsDimension x="280" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="160" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parent_Header" inherits="GameFontNormal" justifyH="LEFT" text="ENCHANTINGSELL_CHANGEPRICEFRAME_PRICEWITHPOURCENTHEADER">
							<Size>
								<AbsDimension x="110" y="32"/>
							</Size>
							<Anchors>
								<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPLEFT"/>
							</Anchors>
						</FontString>	 
						<FontString name="$parent_Price" inherits="GameFontNormal" justifyH="LEFT" justifyV="CENTER" text="Prix">
							<Size>
								<AbsDimension x="80" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="10" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>	 
					</Layer>
				</Layers>
			</Frame>
			<CheckButton name="$parent_CheckButton" hidden="false" inherits="OptionsCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="50" y="-60"/>
						</Offset>
					</Anchor>
				</Anchors>
				<HitRectInsets>
					<AbsInset left="0" right="0" top="0" bottom="0"/>
				</HitRectInsets>
				<Size>
					<AbsDimension x="22" y="22"/>
				</Size>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parent_Header" inherits="GameFontNormal" justifyH="LEFT" text="ENCHANTINGSELL_CHANGEPRICEFRAME_PRICEWITHPOURCENTCHECKBOX">
							<Size>
								<AbsDimension x="200" y="16"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>	 
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						ESell_ChangeEnchantePrice_SetStatuEditBox(this:GetChecked())
					</OnShow>
					<OnClick>
						ESell_ChangeEnchantePrice_SetStatuEditBox(this:GetChecked())
					</OnClick>
				</Scripts>
			</CheckButton>			
			<EditBox name="$parent_GoldEditBox" letters="3" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="45" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="55" y="-110"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\MoneyFrame\UI-MoneyIcons.blp">
							<Size>
								<AbsDimension x="14" y="14"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="17" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.25" top="0" bottom="1"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parent_up" inherits="UIPanelScrollUpButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-9" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								if this:GetParent():GetNumber() == 999 then return end
								this:GetParent():SetNumber(this:GetParent():GetNumber() + 1);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parent_down" inherits="UIPanelScrollDownButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-9" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								this:GetParent():SetNumber(this:GetParent():GetNumber() - 1);
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</EditBox>
			<EditBox name="$parent_SilverEditBox" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="35" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_GoldEditBox" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="25" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\MoneyFrame\UI-MoneyIcons.blp">
							<Size>
								<AbsDimension x="14" y="14"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="17" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parent_up" inherits="UIPanelScrollUpButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-9" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								if this:GetParent():GetNumber() == 99 then return end
								this:GetParent():SetNumber(this:GetParent():GetNumber() + 1);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parent_down" inherits="UIPanelScrollDownButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-9" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								this:GetParent():SetNumber(this:GetParent():GetNumber() - 1);
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</EditBox>
			<EditBox name="$parent_CopperEditBox" letters="2" numeric="true" autoFocus="false" inherits="InputBoxTemplate">
				<Size>
					<AbsDimension x="35" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_SilverEditBox" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="25" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\MoneyFrame\UI-MoneyIcons.blp">
							<Size>
								<AbsDimension x="14" y="14"/>
							</Size>
							<Anchors>
								<Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="17" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button name="$parent_up" inherits="UIPanelScrollUpButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT">
								<Offset>
									<AbsDimension x="-9" y="2"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								if this:GetParent():GetNumber() == 99 then return end
								this:GetParent():SetNumber(this:GetParent():GetNumber() + 1);
							</OnClick>
						</Scripts>
					</Button>
					<Button name="$parent_down" inherits="UIPanelScrollDownButtonTemplate">
						<Size>
							<AbsDimension x="11" y="11"/>
						</Size>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-9" y="-4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnClick>
								this:GetParent():SetNumber(this:GetParent():GetNumber() - 1);
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
			</EditBox>



			<Button name="$parent_OkButton" inherits="UIPanelButtonTemplate" text="OK">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="40" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ESell_ChangeEnchantePrice_SetNewPrice();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parent_CancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-40" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ESell_ChangeEnchantePrice_Reset(true);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

</Ui>

