
<Frame name = "BF_ChatHelp_Fram_Global_EditBox" parent = "FRAME_ROOT">
	<Attrib hide="false" click="true" alphaMode="CAM_Translucent"/>
	<Position self="FAT_Center" rel="FAT_Center" width="236" height="122" />
	<Textures r="1.0" g="1.0" b="1.0" a="1.0">
		<TexInfo texture="interface.XYLoot" left="0" top="41" right="219" bottom="337"/>
	</Textures>
	<Frames>
		<EditBoxFrame name="BF_ChatHelp_Fram_Global_EditBox_EditBox">
			<Attrib alphaMode="CAM_Translucent"/>
			<Position width="204" height="24" offsetX="19" offsetY="51" />
			<Text font="0" height="14" r="1.f" g="1.f" b="1.f" rb="1.f" gb="1.f" bb="1.f" a="1"/>
			<Script>
				<FE_OnKeyDown>
					  BF_ChatHelp.OnGlobalEditBoxKeyDown(FRAME_THIS, FRAME_PARAM);
				</FE_OnKeyDown>
			</Script>
		</EditBoxFrame>
		<Frame name = "BF_ChatHelp_Fram_Global_EditBox_Ok"  inherit="CombatStat_ConfigFrame_Ok_Btn_Template">
			<Position offsetX="82" offsetY="80"/>
			<Script>
				<FE_OnLMClick>
					BF_ChatHelp.GlobalEditBoxOK(FRAME_THIS);
				</FE_OnLMClick>
			</Script>
		</Frame>
		<Frame name = "BF_ChatHelp_Fram_Global_EditBox_Cancel" inherit="CombatStat_ConfigFrame_Cancel_Btn_Template">
			<Position offsetX="148" offsetY="80"/>
			<Script>
				<FE_OnLMClick>
					BF_ChatHelp.GlobalEditBoxCancel(FRAME_THIS);
				</FE_OnLMClick>
			</Script>
		</Frame>
	</Frames>
	<Script>
		<FE_OnLoad>
			BF_ChatHelp.OnGlobalEditBoxLoad(FRAME_THIS);
		</FE_OnLoad>
	</Script>
</Frame>
<Frame name = "BF_ChatHelp_Fram"  inherit="Drag_FrameTemplate" parent = "FRAME_ROOT">
	<Attrib hide="false" click="true" alphaMode="CAM_Translucent"/>
	<Position width="305" height="389" offsetX="200" offsetY="200"/>
	<Textures r="1.0" g="1.0" b="1.0" a="1.0">
		<TexInfo texture="interface.XYLoot" left="0" top="41" right="219" bottom="337"/>
	</Textures>
	<Frames>
		<Frame name="BF_ChatHelp_Fram_EditBox_Frame">
			<Position width="149" height="27" offsetX="11" offsetY="348"/>	
			<Attrib alphaMode="CAM_Translucent"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="interface.XYCreditTrade" left="547" top="23" right="582" bottom="45"/>
			</Textures>
			<Frames>
				<EditBoxFrame name="BF_ChatHelp_Fram_EditBox">
					<Attrib alphaMode="CAM_Translucent"/>
					<Position self ="FAT_LeftBottom" rel = "FAT_LeftBottom" width="131" height="24" offsetY="3" offsetX="3"/>
					<Text font="0" height="14" r="1.f" g="1.f" b="1.f" rb="1.f" gb="1.f" bb="1.f" a="1"/>
					<Script>
						<FE_OnKeyDown>
							BF_ChatHelp.OnEditBoxKeyDown(FRAME_THIS, FRAME_PARAM);
						</FE_OnKeyDown>
					</Script>
				</EditBoxFrame>
			</Frames>
			<Script>
				<FE_OnLoad>
					BF_ChatHelp.OnEditBoxLoad(FRAME_THIS)
				</FE_OnLoad>
			</Script>
		</Frame>
		<Frame name="BF_ChatHelp_Fram_HideBtn" inherit="BF_ConfigPanel_FRAME_CloseButton_Template">
			<Position offsetX="268" offsetY="11"/>
			<Script>
			    <FE_OnLoad>			        
		        </FE_OnLoad>
				<FE_OnLMClick>
					BF_ChatHelp.OnCloseButtonClick(FRAME_THIS);
				</FE_OnLMClick>
			</Script>
		</Frame>
		<Frame name="BF_ChatHelp_Fram_SearthBtn" >	
			<Position width="30" height="24" self="FAT_LeftTop" rel="FAT_LeftTop" offsetX="161" offsetY="349"/>
			<Attrib click="true" alphaMode="CAM_Translucent" cursor="interface.UIHand"/>
			<Textures r="1.f" g="1.f" b="1.f" a="1.f">
				<TexInfo texture="interface.CommonUse" left="365" top="884" right="435" bottom="913"/>
			</Textures>
			<Script>
				<FE_OnLoad>
					BF_ChatHelp.OnSearthBtnLoad(FRAME_THIS)
				</FE_OnLoad>
				<FE_OnCursorEnter>
					BF_ChatHelp.OnSearthBtnEnter(FRAME_THIS)
				</FE_OnCursorEnter>
				<FE_OnCursorLeave>
					BF_ChatHelp.OnSearthBtnLeave(FRAME_THIS)
				</FE_OnCursorLeave>
				<FE_OnLMDown>
					BF_ChatHelp.OnSearthBtnLMDown(FRAME_THIS)
				</FE_OnLMDown>
				<FE_OnLMUp>
					BF_ChatHelp.OnSearthBtnLMUp(FRAME_THIS)
				</FE_OnLMUp>
				<FE_OnLMClick>
					BF_ChatHelp.OnSearthBtnClick(FRAME_THIS);
				</FE_OnLMClick>
			</Script>
		</Frame> 
		
       <Frame name="BF_ChatHelp_Fram_SearthText_Btn" inherit="Font19">
			<Attrib click="true" alphaMode="CAM_Translucent" cursor="interface.UIHand"/>
			<Position width="75" height="18"offsetX="202" offsetY="355" />
			<Textures r="1.f" g="1.f" b="1.f" a="0.f">
				<TexInfo texture="interface.CommonUse" left="365" top="884" right="435" bottom="913"/>
			</Textures>
			<Frames>
				<Frame name="BF_ChatHelp_Fram_SearthText_Btn_Icon" >
					<Position width="18" height="18"  offsetX="0" offsetY="0"/>
					<Textures r="1.f" g="1.f" b="1.f" a="1.f">
						<TexInfo texture="interface.CommonUse" left="365" top="884" right="435" bottom="913"/>
					</Textures>
				</Frame>
			<Frame name="BF_ChatHelp_Fram_SearthText_Btn_Text">
				<Attrib alphaMode="CAM_Translucent"/>
				<Position offsetX="18" offsetY="0" width="85" height="21"/>
				<Text font="0" height="16" r="0.33" g="0.31" b="0.55" rb="0.33" gb="0.31" bb="0.55" a="1"/>
			</Frame>
			</Frames>
			<Script>
				<FE_OnLoad>
					BF_ChatHelp.SearthTextButtonOnLoad(FRAME_THIS);
				</FE_OnLoad>
				<FE_OnCursorEnter>
					BF_ChatHelp.SearthTextButtonOnLoadOnCursorEnter(FRAME_THIS);
				</FE_OnCursorEnter>
				<FE_OnCursorLeave>
					BF_ChatHelp.SearthTextButtonOnLoadOnCursorLeave(FRAME_THIS);
				</FE_OnCursorLeave>
				<FE_OnLMDown>
					BF_ChatHelp.SearthTextButtonOnLoadOnMDown(FRAME_THIS);
				</FE_OnLMDown>
				<FE_OnLMUp>
					BF_ChatHelp.SearthTextButtonOnLoadOnMUp(FRAME_THIS);
				</FE_OnLMUp>
				<FE_OnLMClick>
					BF_ChatHelp.SearthTextButtonOnClick(FRAME_THIS);
				</FE_OnLMClick>
			</Script>
		</Frame>
		
		<Frame name="BF_ChatHelp_Fram_ItemList_Template" >
			<Attrib click="true" wheel="true"/>
			<Position width="288" height="286" offsetX="12" offsetY="64"/>
			<Textures r="1.f" g="1.f" b="1.f" a="0.f">
				<TexInfo texture="system.whiteTexture" left="12" top="11" right="307" bottom="503"/>
			</Textures>
			<Tags tag1="5" tag2="0" tag3="0" tag4="1"/>
			<Frames>
				<TTextFrame name="BF_ChatHelp_TTMsg" >
					<Attrib click="true" wheel="true" ttCursor="interface.UIHand" getSegment="true"/>
					<Position self="FAT_RightTop" rel="FAT_RightTop" width="271" height="278" offsetX="-15" offsetY="0"/>
					<Text font="0" height="14" r="1.0" g="1.0" b="1.0" a="1.0" rb="1.0" gb="1.0" bb="1.0"/>
					<Script>
						<FE_OnLoad>
							--BF_ChatHelp.CF_TTMsgFramLoad(FRAME_THIS);
						</FE_OnLoad>
						<FE_OnWheelUp>
							BF_ChatHelp.OnWheelUp(FRAME_THIS)
						</FE_OnWheelUp>
						<FE_OnWheelDown>
							BF_ChatHelp.Down(FRAME_THIS)
						</FE_OnWheelDown>			
					</Script>
				</TTextFrame> 	
				<Frame name="BF_ChatHelp_UpButton" inherit="BF_ListBox_UpButton_Template" >
					<Position offsetX="269" offsetY="0" />	 
					<Script>
						<FE_OnLMClick>
							BF_ChatHelp.OnWheelUp(BF_ChatHelp_TTMsg)
						</FE_OnLMClick>
					</Script>
				</Frame>
				<Frame name="BF_ChatHelp_DownButton" inherit="BF_ListBox_DownButton_Template" >			
					<Position  offsetX="269" offsetY="258" />		 
					<Script>
						<FE_OnLMClick>
							BF_ChatHelp.Down(BF_ChatHelp_TTMsg)
						</FE_OnLMClick>
					</Script>
				</Frame>
				<Frame name="BF_ChatHelp_MidBottomButton" inherit="BF_ListBox_MidBottomButton_Template">		 
					<Position offsetX="269" offsetY="21"/>			 
					<Script>	
					</Script>
				</Frame>
				<Frame name = "BF_ChatHelp_MidBG" inherit="BF_ListBox_MidBtnBG_Template" >
					<Position offsetX = "274" offsetY = "18"  />	 
				</Frame>
			</Frames>
			<Script>
				<FE_OnLoad>
					BF_ChatHelp.CF_TTMsgFramLoad(FRAME_THIS);	 
				</FE_OnLoad>
				<FE_OnWheelUp>
					--ListBox_UpBtn_OnClick(BF_ChatHelp_Fram_UpBtn)
				</FE_OnWheelUp>
				<FE_OnWheelDown>
					--ListBox_DownBtn_OnClick(BF_ChatHelp_Fram_DownBtn)
				</FE_OnWheelDown>
			</Script>
		</Frame>


	</Frames>
    <Script file="InterFace\ChatHelp\ChatHelp.l">
		<FE_OnLoad>
			BF_ChatHelp.OnLoad(FRAME_THIS);
		</FE_OnLoad>
		<FE_OnTick>
			BF_ChatHelp.OnTick(FRAME_THIS);
		</FE_OnTick>
		<FE_OnGameEvent>
			BF_ChatHelp.OnGameEvent(FRAME_THIS, FRAME_PARAM, FRAME_ARG0, FRAME_ARG1, FRAME_ARG2, FRAME_ARG3, FRAME_ARG4)
		</FE_OnGameEvent>
		<FE_OnShow>
			BF_ChatHelp.OnFrameShow(FRAME_THIS);
		</FE_OnShow>
	</Script>
</Frame>