<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="JH_Tracker.lua"/>
	<Frame name="JHT_MainFrame" toplevel="true" frameStrata="DIALOG" movable="true" resizable="false" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="316" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="4"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer>
				<FontString name="JHT_CurrentLocation" inherits="GameFontNormal" justifyV="TOP" justifyH="LEFT" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="JHT_MainFrame">
							<Offset>
								<AbsDimension x="8" y="-8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="JHT_CloseButton" inherits="OptionsButtonTemplate" text="Fermer">
				<Size>
					<AbsDimension x="60" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="JHT_MainFrame">
						<Offset>
							<AbsDimension x="-8" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>JHT_CloseClick();</OnClick>
				</Scripts>
			</Button>
			<Button name="JHT_PnjButton" inherits="OptionsButtonTemplate" text="Track">
				<Size>
					<AbsDimension x="60" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="JHT_MainFrame">
						<Offset>
							<AbsDimension x="-68" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>JHT_PnjClick();</OnClick>
				</Scripts>
			</Button>
			<Button name="JHT_JoueurButton" inherits="OptionsButtonTemplate" text="Joueur">
				<Size>
					<AbsDimension x="60" y="18"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="JHT_MainFrame">
						<Offset>
							<AbsDimension x="-128" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>JHT_JoueurClick();</OnClick>
				</Scripts>
			</Button>
			<Frame name="JHT_MapFrame" hidden="true">
				<Size>
					<AbsDimension x="316" y="216"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="JHT_MainFrame">
						<Offset>
							<AbsDimension x="0" y="-26"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<TileSize>
						<AbsValue val="30"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="4"/>
					</BackgroundInsets>
				</Backdrop>
				<Frames>
					<Frame name="JHT_JoueurMapFrame" hidden="false" alpha="0.8">
						<Size>
							<AbsDimension x="300" y="200"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="JHT_MapFrame">
								<Offset>
									<AbsDimension x="8" y="-8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer>
								<FontString name="JHT_AffichageJoueurText" inherits="GameFontNormal" justifyV="TOP" justifyH="LEFT" text="">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="JHT_JoueurMapFrame">
											<Offset>
												<AbsDimension x="4" y="-4"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
							<Layer level="BACKGROUND">
								<Texture name="JHT_CurrentJoueurMap" file="">
									<Size>
										<AbsDimension x="300" y="200"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="JHT_JoueurMapFrame">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
          					</Layer>
						</Layers>
						<Frames>
							<Button name="JHT_PlayerPosition" alpha="0.8">
								<Size>
									<AbsDimension x="12" y="12"/>
								</Size>
								<Scripts>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_LEFT");
										GameTooltip:SetText("|cffffffff"..UnitName("player").."|r");
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<NormalTexture file="Interface\WorldMap\WorldMapPartyIcon" />
							</Button>
						</Frames>
						<Scripts>
						</Scripts>
					</Frame>
					<Frame name="JHT_PnjMapFrame" hidden="true" alpha="0.8">
						<Size>
							<AbsDimension x="300" y="200"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="JHT_MapFrame">
								<Offset>
									<AbsDimension x="8" y="-8"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer>
								<FontString name="JHT_AffichagePnjText" inherits="GameFontNormal" justifyV="TOP" justifyH="LEFT" text="">
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="JHT_PnjMapFrame">
											<Offset>
												<AbsDimension x="4" y="-4"/>
											</Offset>
										</Anchor>
									</Anchors>
								</FontString>
							</Layer>
							<Layer level="BACKGROUND">
								<Texture name="JHT_CurrentPnjMap" file="">
									<Size>
										<AbsDimension x="300" y="200"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT" relativeTo="JHT_PnjMapFrame">
											<Offset>
												<AbsDimension x="0" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
								</Texture>
          					</Layer>
						</Layers>
						<Frames>
							<Button name="JHT_PlayerPnjMapPosition" hidden="true" alpha="0.8">
								<Size>
									<AbsDimension x="12" y="12"/>
								</Size>
								<Scripts>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_LEFT");
										GameTooltip:SetText("|cffffffff"..UnitName("player").."|r");
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<NormalTexture file="Interface\WorldMap\WorldMapPartyIcon" />
							</Button>
							<Button name="JHT_PnjMapPosition" hidden="true" alpha="0.8">
								<Size>
									<AbsDimension x="12" y="12"/>
								</Size>
								<Scripts>
									<OnEnter>
										GameTooltip:SetOwner(this, "ANCHOR_LEFT", 8, -4);
										GameTooltip:SetText("|cffffffff"..JH_Main.TrackPnj.."|r\n"..JH_Main.TrackZone.." ("..JH_Main.TrackLoc..")");
									</OnEnter>
									<OnLeave>
										GameTooltip:Hide();
									</OnLeave>
								</Scripts>
								<NormalTexture file="Interface\WorldMap\WorldMapPlayerIcon" />
							</Button>
						</Frames>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>this:SetBackdropBorderColor(0.7, 0.7, 0.7);</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnMouseDown> this:StartMoving();  </OnMouseDown>
            <OnMouseUp>  this:StopMovingOrSizing(); </OnMouseUp>
            <OnDragStop> this:StopMovingOrSizing(); </OnDragStop>
			<OnLoad>this:SetBackdropBorderColor(0.7, 0.7, 0.7);</OnLoad>
			<OnUpdate>if (JHT_MainFrame:IsVisible()) then JHT_UpdatePosition(arg1); end</OnUpdate> 
			<OnShow></OnShow>
			<OnHide></OnHide>
		</Scripts>
	</Frame>
</Ui>
