
<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="KLHThreatMeterLocalisation.lua"/>	
	<Script file="KLHThreatMeterMain.lua"/>
	<Script file="KLHThreatMeterCombat.lua"/>
	<Script file="KLHThreatMeterGUI.lua"/>
	<Script file="KLHThreatMeterTables.lua"/>
	<Script file="KLHThreatMeterNetworking.lua"/>
	<Script file="KLHThreatMeterAlert.lua"/>
	<Script file="KLHThreatMeterData.lua"/>
	<Script file="KLHThreatMeterTargetting.lua"/>
	<Script file="KLHThreatMeterConsoleIO.lua"/>
	
	<!-- This frame is used to determine the true width of a string on screen. The problem is that 
	FontString:GetStringWidth() will return FontString:GetWidth() if the string is truncated, and we want to know
	what the width would be without truncation. So we basically copy the FontString onto this really big form, then
	get its width. -->
	<Frame name="KLHTM_StringTester" toplevel="true" parent="UIParent" hidden="false">

		<Size>
			<AbsDimension x="500" y="100"/>
		</Size>

		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" inherits="KLHTM_Font">
					<Anchors>
						<Anchor point="TOPLEFT" relativePoint="TOPLEFT" relativeTo="$parent" />
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>

	<Frame name="KLHTM_OnUpdateFrame">
		<Scripts>
			<OnUpdate>
				KLHTM_OnUpdate()
			</OnUpdate>
		</Scripts>
	</Frame>	

	<Frame name="KLHTM_RaidFrame" inherits="KLHTM_WindowTemplate">

		<Anchors>
			<Anchor point="TOP" relativeTo="UIParent" relativePoint="CENTER">
				<Offset>
					<AbsDimension x="0" y="10"/>
				</Offset>
			</Anchor>
		</Anchors>

	</Frame>

	<!-- This is the main frame -->
	<Frame name="KLHTM_Frame" inherits="KLHTM_WindowTemplate">

		<Anchors>
			<Anchor point="TOP" relativeTo="UIParent" relativePoint="Center">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>

		<Scripts>
			<OnLoad>
				KLHTM_Frame_OnLoad()
			</OnLoad>
			<OnEvent>
				KLHTM_OnEvent()
			</OnEvent>
		</Scripts>

	</Frame>
</Ui>