<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="spot.lua"/>
	
	<!-- A search panel for Bagnon-->
	<Frame name="BagnonSpot" clampedToScreen="true" enableMouse="true" topLevel="true" frameStrata="DIALOG" hidden="true" parent="UIParent">
		<Size x="220" y="42"/>

		<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		
		<Frames>
			<Button name="$parentClose" inherits="UIPanelCloseButton">
				<Size x="32" y="32"/>
				
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="-6" y="-6"/>
					</Anchor>
				</Anchors>
			</Button>
			
			<!-- Search Box -->
			<EditBox name="$parentSearch" autoFocus="false" hidden="false" letters="255">		
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="14" y="-12"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentClose" relativePoint="BOTTOMLEFT">
						<Offset x="6" y="7"/>
					</Anchor>
				</Anchors>

				<Scripts>
					<OnShow>
						this:SetFocus()
					</OnShow>
					<OnHide>
						this:SetText("");
					</OnHide>
					<OnEscapePressed>
						this:ClearFocus();
					</OnEscapePressed>
					<OnEditFocusLost>
						this:HighlightText();
					</OnEditFocusLost>
					<OnTextChanged>
						BagnonSpotSearch_OnTextChanged();
					</OnTextChanged>
				</Scripts>
				<FontString font="ChatFontNormal"/>
			</EditBox>
		</Frames>
		
		<Scripts>
			<OnHide>
				BagnonSpot_OnHide();
			</OnHide>
		</Scripts>
	</Frame>
</Ui>