<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">
<!--
	Enchantrix:Barker Addon for World of Warcraft(tm).
	Version: 5.7.4568 (KillerKoala)
	Revision: $Id: EnchantrixBarker.xml 3576 2008-10-10 03:07:13Z aesir $
	URL: http://enchantrix.org/

	License:
		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 2
		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(see GPL.txt); if not, write to the Free Software
		Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

	Note:
		This AddOn's source code is specifically designed to work with
		World of Warcraft's interpreted AddOn system.
		You have an implicit license to use this AddOn with these facilities
		since that is it's designated purpose as per:
		http://www.fsf.org/licensing/licenses/gpl-faq.html#InterpreterIncompat
-->
	<Script>
		EnchantrixBarker_RegisterRevision("$URL: http://svn.norganna.org/auctioneer/branches/5.7/Enchantrix-Barker/EnchantrixBarker.xml $", "$Rev: 3576 $")
	</Script>

	<Button name="Enchantrix_BarkerDisplayButton" inherits="UIPanelButtonTemplate" hidden="true" text="Trade Barker">
		<Size>
			<AbsDimension x="125" y="22"/>
		</Size>
		<Scripts>
			<OnClick>
				Enchantrix_BarkerOptions_OnClick();
			</OnClick>
		</Scripts>
	</Button>

	<Button name="Enchantrix_BarkerOptions_TradeTab" inherits="CharacterFrameTabButtonTemplate" id="1" text="Trade Barker">
		<Scripts>
			<OnClick>
				Enchantrix_BarkerOptions_OnClick();
			</OnClick>
		</Scripts>
	</Button>

	<Slider name="EnchantrixBarker_OptionsSliderTemplate" inherits="OptionsSliderTemplate" virtual="true" minValue="0" maxValue="100" defaultValue="50" valueStep="2">
		<Size>
			<AbsDimension x="290" y="17"/>
		</Size>
		<Scripts>
			<OnValueChanged> <!-- we need to update the text on value change -->
				EnchantrixBarker_OptionsSlider_OnValueChanged();
			</OnValueChanged>
		</Scripts>
	</Slider>

	<Button name="Enchantrix_BarkerOptions_FrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PlaySound("igCharacterInfoTab");
				
				if select(4, GetBuildInfo() ) >= 30000 then
					local frame = self:GetParent()
					PanelTemplates_SetTab(frame, this:GetID());
				else
					PanelTemplates_Tab_OnClick(Enchantrix_BarkerOptions_Frame);
				end
				
				Enchantrix_BarkerOptions_Tab_OnClick();
			</OnClick>
		</Scripts>
	</Button>


	<Frame name="Enchantrix_BarkerOptions_Frame"
		toplevel="true" parent="UIParent" movable="true" enableMouse="true" hidden="true" >

		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>

		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>

		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="45"/>
		</HitRectInsets>

		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\FriendsFrame\FriendsFrameScrollIcon">
				<Size>
					<AbsDimension x="60" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="7" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				</Texture>
			</Layer>

			<Layer level="ARTWORK">
				<Texture name="Enchantrix_BarkerOptionsFrameTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<Texture name="Enchantrix_BarkerOptionsFrameTopRight" file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<Texture name="Enchantrix_BarkerOptionsFrameBottomLeft" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<Texture name="Enchantrix_BarkerOptionsFrameBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="Enchantrix_BarkerOptionsFrameTitleText" inherits="GameFontNormal" text="Enchantrix Trade Barker">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-18"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>
			<Button name="Enchantrix_BarkerOptionsBark_Button" inherits="UIPanelButtonTemplate" text="Bark!">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-235" y="-33"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Enchantrix_BarkerOnClick();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Enchantrix_BarkerOptionsTest_Button" inherits="UIPanelButtonTemplate" text="Test Barker">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-235" y="-52"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Enchantrix_BarkerOptions_TestButton_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Enchantrix_BarkerOptionsReset_Button" inherits="UIPanelButtonTemplate" text="Reset All">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="Enchantrix_BarkerOptionsBark_Button" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="100" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Enchantrix_BarkerOptions_ResetButton_OnClick();
					</OnClick>
				</Scripts>
			</Button>
			
			<!--
			<Frame name="Enchantrix_BarkerOptions_ChanFilterDropDown" inherits="UIDropDownMenuTemplate" id="1" enableMouse="true">
				<Size>
					<AbsDimension x="10" y="10"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">>
						<Offset>
							<AbsDimension x="-190" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(self:GetName().."Text"):SetJustifyH("LEFT");
						dropDownMenuInitialize(self,Enchantrix_BarkerOptions_ChanFilterDropDown_Initialize);
					</OnLoad>
					<OnClick>
						Enchantrix_BarkerOptions_ChanFilterDropDown_OnClick();
					</OnClick>
				</Scripts>
			</Frame>
			-->
			
			<Button name="Enchantrix_BarkerOptions_FrameTab1" inherits="Enchantrix_BarkerOptions_FrameTabTemplate" id="1" text="Pricing">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="11" y="45"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Enchantrix_BarkerOptions_FrameTab2" inherits="Enchantrix_BarkerOptions_FrameTabTemplate" id="2" text="Priorities">
				<Anchors>
					<Anchor point="LEFT" relativeTo="Enchantrix_BarkerOptions_FrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-14" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Enchantrix_BarkerOptions_FrameTab3" inherits="Enchantrix_BarkerOptions_FrameTabTemplate" id="3" text="Stats 1">
				<Anchors>
					<Anchor point="LEFT" relativeTo="Enchantrix_BarkerOptions_FrameTab2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-14" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="Enchantrix_BarkerOptions_FrameTab4" inherits="Enchantrix_BarkerOptions_FrameTabTemplate" id="4" text="Stats 2">
				<Anchors>
					<Anchor point="LEFT" relativeTo="Enchantrix_BarkerOptions_FrameTab3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-14" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Button name="Enchantrix_BarkerOptions_CloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-46" y="-24"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Slider name="EnchantrixBarker_OptionsSlider_1" id="1" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="30" y="-95"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_2" id="2" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_3" id="3" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_4" id="4" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_5" id="5" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_6" id="6" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_7" id="7" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_8" id="8" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_9" id="9" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_8" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>
			<Slider name="EnchantrixBarker_OptionsSlider_10" id="10" inherits="EnchantrixBarker_OptionsSliderTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantrixBarker_OptionsSlider_9" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>

		</Frames>
		<Scripts>
			<OnShow>
				Enchantrix_BarkerOptions_OnShow();
				PanelTemplates_SetNumTabs(Enchantrix_BarkerOptions_Frame, 4);
				Enchantrix_BarkerOptions_Frame.selectedTab=1;
				PanelTemplates_UpdateTabs(Enchantrix_BarkerOptions_Frame);
			</OnShow>
		</Scripts>
	</Frame>

	<Frame name="EnchantrixBarker" parent="UIParent" hidden="true">
		<Scripts>
			<OnLoad>
				EnchantrixBarker_OnLoad();
				this:RegisterEvent("CRAFT_SHOW")
				this:RegisterEvent("CRAFT_CLOSE")
				this:RegisterEvent("TRADE_SKILL_SHOW")
				this:RegisterEvent("TRADE_SKILL_CLOSE")
			</OnLoad>
			<OnEvent>
				EnchantrixBarker_OnEvent();
			</OnEvent>
		</Scripts>
	</Frame>
</Ui>

