
<Frame name="BF_TargetStateTemplate" inherit="ActiveStateTemplate">
	<Position width="16" height="16"/>
	<Script>
		<FE_OnLoad>
		</FE_OnLoad>
		<FE_OnGameEvent>
		</FE_OnGameEvent>
		<FE_OnUnitUpdate>
			--BF_Focus.TargetStateTemplate_OnUnitUpdate(FRAME_THIS, FRAME_PARAM, FRAME_ARG0, FRAME_ARG1,FRAME_ARG2)
		</FE_OnUnitUpdate>
		<FE_OnCursorEnter>
			BF_Focus.TargetStateTemplate_OnCursorEnter(FRAME_THIS)
		</FE_OnCursorEnter>
	</Script>
</Frame>

<Frame name="BF_TargetStatesFrame" parent="FRAME_ROOT">
	<Position width="180" height="45" offsetX="280" offsetY="65"/>
	<Frames>
		<Frame name="BF_TSF_PState0" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState1" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState2" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState3" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState4" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState5" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState6" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState7" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState8" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_PState9" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState0" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState1" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState2" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState3" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState4" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState5" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState6" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState7" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState8" inherit="BF_TargetStateTemplate"/>
		<Frame name="BF_TSF_NState9" inherit="BF_TargetStateTemplate"/>
	</Frames>
	<Script>
		<FE_OnLoad>
			<!-- TargetStatesFrame_OnLoad(FRAME_THIS) -->
			--Frame.moveToTop(FRAME_THIS)
		</FE_OnLoad>
	</Script>
</Frame>

<Frame name="BF_Focus_UnitFrame" parent="FRAME_ROOT">
	<Attrib hide="true" click="true" cursor="interface.UIHand"/>
	<Position width="255" height="89" offsetX="120" offsetY="150"/>
	<Tags tag0="7"/>
	<Frames>
		<Frame name="BF_Focus_TUF_FlagDesc" inherit="Font3">
			<Position width="15" height="15" offsetX="17" offsetY="8"/>
			<Text anchor="TAT_Center"/>
			<Attrib hide="true" click="true" alphaMode="CAM_Translucent"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="interface.XYIconWidget" left="167" top="0" right="184" bottom="17"/>
				<TexInfo texture="interface.XYPetM" left="0" top="0" right="16" bottom="16"/>
				<TexInfo texture="interface.XYIconWidget" left="83" top="130" right="101" bottom="148"/>
			</Textures>
			<Script>
				<FE_OnCursorEnter>
					Frame_ShowToolstip(FRAME_THIS)
				</FE_OnCursorEnter>
				<FE_OnCursorLeave>
					ToolTips_Init()
				</FE_OnCursorLeave>
			</Script>
		</Frame>

		<Frame name="BF_Focus_TUF_Name" inherit="Font1Y">
			<Position width="116" height="22" offsetX="28" offsetY="16"/>
			<Text anchor="TAT_Center" r="1.0" g="0.988" b="0.0" rb="1.0" gb="0.988" bb="0.0" a="1" sWeight = "1"/>
			<Attrib hide="false" alphaMode="CAM_Translucent"/>
		</Frame>

		<Frame name="BF_Focus_TUF_PreSkill" >
			<Position width="116" height="20" offsetX="25" offsetY="17"/>
			<Text anchor="TAT_Center"/>
			<Attrib hide="true" click="true" alphaMode="CAM_Translucent"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="interface.XYIconWidget" left="167" top="0" right="184" bottom="17"/>
				<TexInfo texture="interface.XYPetM" left="0" top="0" right="16" bottom="16"/>
				<TexInfo texture="interface.XYIconWidget" left="83" top="130" right="101" bottom="148"/>
			</Textures>
			<Script>

			</Script>
		</Frame>
		<Frame name="BF_Focus_TUF_FiveElm">
			<Attrib alphaMode="CAM_Translucent"/>
			<Position width="22" height="22" offsetX="122" offsetY="110"/>
			<Text anchor="TAT_Center"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="system.whiteTexture" left="362" top="168" right="427" bottom="184"/>
				<TexInfo texture="interface.XYtestMenu" left="450" top="167" right="474" bottom="189"/>
				<TexInfo texture="interface.XYtestMenu" left="389" top="165" right="413" bottom="187"/>
				<TexInfo texture="interface.XYtestMenu" left="476" top="167" right="500" bottom="189"/>
				<TexInfo texture="interface.XYtestMenu" left="361" top="168" right="385" bottom="190"/>
				<TexInfo texture="interface.XYtestMenu" left="418" top="166" right="442" bottom="188"/>
			</Textures>
			<Script>
				<FE_OnCursorEnter>
					Frame_ShowDescTip(FRAME_THIS)
				</FE_OnCursorEnter>
				<FE_OnCursorLeave>
					ToolTips_Init()
				</FE_OnCursorLeave>
			</Script>
		</Frame>
		<Frame name="BF_Focus_TUF_Hp" inherit="SlotTemplate">
			<Attrib click="false" alphaMode="CAM_Translucent"/>
			<Position width="165" height="13" offsetX="7" offsetY="42"/>
		</Frame>
		<Frame name="BF_Focus_TUF_Mp" inherit="SlotTemplate">
			<Attrib click="false" alphaMode="CAM_Translucent"/>
			<Position width="165" height="13" offsetX="7" offsetY="54"/>
		</Frame>

		<Frame name="BF_Focus_TUF_Lvl" inherit="Font0">
			<Position width="15" offsetX="134" offsetY="10"/>
			<Text anchor="TAT_Center" r="1.0" g="1.0" b="1.0" rb="1.0" gb="1.0" bb="1.0" a="1" sWeight = "1"/>
		</Frame>
		<Frame name="BF_Focus_TUF_ProIcon">
			<Position width="25" height="25" offsetX="39" offsetY="81"/>
			<Textures r="1.0" g="1.0" b="1.0" a="1.0">
				<TexInfo texture="interface.XYCardList" left="145" top="145" right="150" bottom="150"/>
			</Textures>
			<Script>
				<FE_OnCursorEnter>
					Frame_ShowToolstip(FRAME_THIS)
				</FE_OnCursorEnter>
				<FE_OnCursorLeave>
					ToolTips_Init()
				</FE_OnCursorLeave>
			</Script>
		</Frame>
		<Frame name="BF_Focus_TUF_BelongPic">
			<Attrib click="false" alphaMode="CAM_Translucent"/>
			<Position width="0" height="0" offsetX="10" offsetY="4"/>
			<Textures r="1.0" g="1.0" b="1.0" a="0.1f">
				<TexInfo texture="interface.XYSelChar" left="888" top="663" right="985" bottom="676"/>
			</Textures>
		</Frame>
		<Frame name="BF_Focus_TUF_BG">
			<Attrib hide="false"  alphaMode="CAM_Translucent"/>
			<Position width="255" height="89"/>
			<Textures r="1.0" g="1.0" b="1.0" a="1.0">
				<TexInfo texture="interface.XYtestMenu" left="748" top="580" right="1003" bottom="669"/>
				<TexInfo texture="interface.XYNewMenu" left="97" top="55" right="360" bottom="149"/>
			</Textures>
		</Frame>
		<PortraitFrame name="BF_Focus_TUF_Prt">
			<Attrib alphaMode="CAM_Translucent"/>
			<Position width="62" height="62" offsetX="180" offsetY="11"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f"/>
		</PortraitFrame>
	</Frames>
	<Script>
		<FE_OnLoad>
			BF_Focus.TargetUnitFrame_OnLoad(FRAME_THIS)
		</FE_OnLoad>
		<FE_OnGameEvent>
			--TargetUnitFrame_OnGameEvent(FRAME_THIS, FRAME_PARAM, FRAME_ARG0, FRAME_ARG1, FRAME_ARG2, FRAME_ARG3)
		</FE_OnGameEvent>
		<FE_OnUnitUpdate>
			--BF_Focus.TargetUnitFrame_OnUnitUpdate(FRAME_THIS, FRAME_PARAM, FRAME_ARG0, FRAME_ARG1, FRAME_ARG2)
		</FE_OnUnitUpdate>
		<FE_OnLMClick>
			BF_Focus.SelTarget();
		</FE_OnLMClick>
		<FE_OnRMClick>
			--TargetUnitFrame_OnRMClick();
		</FE_OnRMClick>
		<FE_OnLMDown>
			--BF_Focus.Drag_FrameTemplate_OnMDown(FRAME_THIS)
		</FE_OnLMDown>
		<FE_OnTick>

		</FE_OnTick>
		<FE_OnMHLMUp>
			Frame.unhookMouse(FRAME_THIS)
			BF_Focus.SelTarget();
		</FE_OnMHLMUp>
		<FE_OnHide>
			Frame.show(BF_TargetStatesFrame, false);
		</FE_OnHide>
	</Script>
</Frame>

<Frame name="BF_Focus_Tareget_PreSkill" parent="FRAME_ROOT">
	<Position width="116" height="20" offsetX="25" offsetY="17"/>
	<Textures r="1.f" g="1.f" b="1.f" a="1.f">
		<TexInfo texture="interface.CommonUse" left="11" top="513" right="413" bottom="518"/>
	</Textures>
	<Frames>
		<Frame name="BF_Focus_Tareget_PreSkill_per_Name" inherit="Font1Y">
			<Position width="116" height="22" offsetX="0" offsetY="-1"/>
			<Text anchor="TAT_Center" r="1.0" g="0.988" b="0.0" rb="1.0" gb="0.988" bb="0.0" a="1" sWeight = "1"/>
			<Attrib hide="false" alphaMode="CAM_Translucent"/>
		</Frame>

		<Frame name="BF_Focus_Tareget_PreSkill_per" >
			<Attrib hide="false" click="true" alphaMode="CAM_Translucent"/>
			<Position width="116" height="20" offsetX="0" offsetY="0"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="interface.XYIconWidget" left="167" top="0" right="184" bottom="17"/>
				<TexInfo texture="interface.XYPetM" left="0" top="0" right="16" bottom="16"/>
				<TexInfo texture="interface.XYIconWidget" left="83" top="130" right="101" bottom="148"/>
			</Textures>
			<Script>
			</Script>
		</Frame>
	</Frames>
</Frame>

<Frame name ="BF_Focus_Fram"  parent = "FRAME_ROOT">
	<Attrib hide="false" click="false" alphaMode="CAM_Translucent"/>
	<Frames>
	</Frames>
    <Script file="InterFace\Focus\Focus.l">
		<FE_OnLoad>
			BF_Focus.OnLoad(FRAME_THIS);
		</FE_OnLoad>
		<FE_OnTick>
			BF_Focus.OnTick(FRAME_THIS);
		</FE_OnTick>
		<FE_OnGameEvent>
			BF_Focus.OnGameEvent(FRAME_THIS, FRAME_PARAM, FRAME_ARG0, FRAME_ARG1,FRAME_ARG2,FRAME_ARG3,FRAME_ARG4)
		</FE_OnGameEvent>
	</Script>
</Frame>
