<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="localization.lua"/>
	<Script file="localization.cn.lua"/>
	<Script file="localization.de.lua"/>
	<Script file="localization.fr.lua"/>
	<Script file="localization.kr.lua"/>
	<Script file="localization.tw.lua"/>
	<Script file="Perl_Config.lua"/>


	<Frame name="Perl_Config_Frame" movable="true" frameStrata="DIALOG" hidden="true" enableMouse="true">
		<Scripts>
			<OnEvent>
				Perl_Config_OnEvent(event);
			</OnEvent>
			<OnLoad>
				this:RegisterForDrag('LeftButton');
				Perl_Config_OnLoad();
			</OnLoad>
			<OnDragStart>
				Perl_Config_Frame:StartMoving();
			</OnDragStart>
			<OnDragStop>
				Perl_Config_Frame:StopMovingOrSizing();
			</OnDragStop>
		</Scripts>
		<Size>
			<AbsDimension x="600" y="500"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="Perl_Config_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_HEADER">
					<Anchors>
						<Anchor point="TOP" relativeTo="Perl_Config_Header">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Title_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_NAME">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="55" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Version_Text" inherits="GameFontNormal" text="PERL_LOCALIZED_VERSION">
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="-90" y="-15"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<Frames>
			<Button name="Perl_Config_Close_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_CLOSE">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Toggle();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Close_X_Button" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-4" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Toggle();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Close_X_Button2" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="6" y="-4"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Toggle();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_All_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_ALL">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="215"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_All_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_ArcaneBar_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_ARCANEBAR">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="-210" y="185"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_ArcaneBar_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_CombatDisplay_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_COMBATDISPLAY">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_ArcaneBar_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_CombatDisplay_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Party_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_PARTY">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_CombatDisplay_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Party_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Party_Pet_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_PARTYPET">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Party_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Party_Pet_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Party_Target_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_PARTYTARGET">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Party_Pet_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Party_Target_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Player_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_PLAYER">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="Perl_Config_ArcaneBar_Button">
						<Offset>
							<AbsDimension x="0" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Player_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Player_Pet_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_PLAYERPET">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Player_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Player_Pet_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Raid_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_RAID">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Player_Pet_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Raid_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Target_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_TARGET">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Raid_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Target_Display();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="Perl_Config_Target_Target_Button" inherits="UIPanelButtonTemplate" text="PERL_LOCALIZED_CONFIG_TARGETTARGET">
				<Size>
					<AbsDimension x="100" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="Perl_Config_Target_Button">
						<Offset>
							<AbsDimension x="5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						Perl_Config_Target_Target_Display();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>


	<Frame name="Perl_Config_NotInstalled_Frame" frameStrata="DIALOG" hidden="true" enableMouse="true">
		<Size>
			<AbsDimension x="600" y="380"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="Perl_Config_Frame">
				<Offset>
					<AbsDimension x="0" y="-120"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="Perl_Config_NotInstalled_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_NOTINSTALLED">
					<Anchors>
						<Anchor point="TOP" relativeTo="Perl_Config_NotInstalled_Header">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString inherits="GameFontNormal" text="PERL_LOCALIZED_CONFIG_NOTINSTALLED_EXPLANATION">
					<Anchors>
						<Anchor point="TOP" relativeTo="Perl_Config_NotInstalled_Header">
							<Offset>
								<AbsDimension x="0" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>


	<Frame name="Perl_Config_ButtonFrame" parent="Minimap" enableMouse="true" hidden="false" frameStrata="LOW">
		<Size>
			<AbsDimension x="32" y="32"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="Minimap" relativePoint="RIGHT">
				<Offset>
					<AbsDimension x="2" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="PerlButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\AddOns\Perl_Config\Perl_Minimap_Button"/>
				<HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
				<Scripts>
					<OnLoad>
						this:RegisterForClicks('LeftButtonUp', 'RightButtonUp');
					</OnLoad>
					<OnClick>
						Perl_Config_Button_OnClick(arg1);
					</OnClick>
					<OnEnter>
						Perl_Config_Button_Tooltip();
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

</Ui>