<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="PlayerLink.lua"/>
	<Button name="PlayerLinkButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="100" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentHighlight" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true" hidden="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				if (this.onshow) then
					this.onshow(this.arg1, this.arg2);					
				end

				if (this.macro) then
					this:SetAttribute("macrotext", format(this.macro, this.arg1));
				end				
			</OnShow>
			<OnHide>
				this:Enable();
			</OnHide>
			<PostClick>
				if (this.func) then
					this.func(arg1, this.arg1, this.arg2);					
					PlaySound("UChatScrollButton");
				end
				PlayerLink_Hide();
				HideDropDownMenu(1);
			</PostClick>
			<OnEnter>				
				getglobal(this:GetName().."Highlight"):Show();				
				if ( this.tooltipTitle ) then
					GameTooltip_AddNewbieTip(this.tooltipTitle, 1.0, 1.0, 1.0, this.tooltipText, 1);
				end
				PlayerLink_StopCount();				
			</OnEnter>
			<OnLeave>
				getglobal(this:GetName().."Highlight"):Hide();				
				GameTooltip:Hide();
				PlayerLink_StartCount();
			</OnLeave>
		</Scripts>
		<ButtonText name="$parentNormalText"/>
		<NormalFont inherits="GameFontHighlightSmall" justifyH="LEFT"/>
		<HighlightFont inherits="GameFontHighlightSmall" justifyH="LEFT"/>
		<DisabledFont inherits="GameFontDisableSmall" justifyH="LEFT"/>
	</Button>

	<Button name="PlayerLinkList" hidden="true" frameStrata="FULLSCREEN_DIALOG" topLevel="true" enableMouse="true" parent="UIParent">		
		<Frames>	
			<Frame name="$parentMenuBackdrop" setAllPoints="true">
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Scripts>
					<OnLoad>
						this:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, 	TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
						this:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
	</Button>
</Ui>
