<!--
path: /BGInvite/
filename: BGInviteFrame.xml
author: 
created: Sat, 17 Jan 2005 16:09:00 -0800
updated: Sun, 30 Jan 2005 15:16:00 -0800

-->
<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="BGInviteFrame.lua"/>
	<Script file="localization.lua"/>

	<GameTooltip name="BGInviteTooltip" frameStrata="LOW" toplevel="true" movable="true" parent="UIParent" inherits="GameTooltipTemplate"/>
	<GameTooltip name="BGInviteDisplayTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
		
	<Button name="BGInviteFrameTabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 4);
			</OnLoad>
			<OnClick>
				PanelTemplates_Tab_OnClick(BGInviteFrame);
				BGInviteTab_OnClick();
			</OnClick>
			<OnShow>
				PanelTemplates_TabResize(10);
				getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 30);
			</OnShow>
		</Scripts>
	</Button>

	<!-- Frame to handle all core events -->
	<Frame name="BGInviteLoadingFrame">
		<Scripts>
			<OnLoad>
				BGInviteLoadingFrame_OnLoad();
			</OnLoad>
			<OnEvent>
				BGInviteLoadingFrame_OnEvent(event,arg1);
			</OnEvent>
			<OnUpdate>
				BGInviteLoadingFrame_OnUpdate();
			</OnUpdate>
		</Scripts>
	</Frame>

	<Frame name="BGInviteFrame" toplevel="true" movable="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="45"/>
		</HitRectInsets>	
		<Layers>		
			<Layer level="BACKGROUND">
				<Texture file="Interface\QuestFrame\UI-QuestLog-BookIcon">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-4"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>	 
			</Layer>
			<Layer level="ARTWORK">
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="BGInviteTitleText" inherits="GameFontHighlight" text="BGINVITE_TITLE">
					<Size>
					    <AbsDimension x="300" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="BGInviteFrame" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="BGInviteCloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="CENTER" relativeTo="BGInviteFrame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-44" y="-26"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetFrameLevel(this:GetFrameLevel() + 4);
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="BGInviteFrameTab1" inherits="BGInviteFrameTabButtonTemplate" id="1" text="BGINVITE_TAB_OPTIONS">
				<Anchors>
					<Anchor point="CENTER" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="65" y="61"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="BGInviteFrameTab2" inherits="BGInviteFrameTabButtonTemplate" id="2" text="BGlocal_BLACKLISTED_PLAYERS">
				<Anchors>
					<Anchor point="LEFT" relativeTo="BGInviteFrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				BGInviteFrame_OnLoad();
			</OnLoad>
			<OnEvent>
				BGInviteFrame_OnEvent(event,arg1);
			</OnEvent>
			<OnShow>
				BGInviteFrame_OnShow();
			</OnShow>
			<OnHide>
				BGInviteFrame_OnHide();
			</OnHide>
		</Scripts>
	</Frame>
</Ui>
