<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="ZHunterTranq.lua"/>

	<StatusBar name="ZHunterTranqTemplate" parent="UIParent" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="128" y="12"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture setAllPoints="true">
					<Color r="0" g="0" b="0" a="0.5"/>
				</Texture>		
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentTextLeft" inherits="GameFontHighlightSmall" text="Name" justifyH="LEFT" justifyV="CENTER">
					<Size>
						<AbsDimension x="88" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="2" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentTextRight" inherits="GameFontHighlightSmall" text="Time" justifyH="LEFT" justifyV="CENTER">
					<Size>
						<AbsDimension x="32" y="12"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="-3" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon" file="Interface\Icons\Spell_Nature_Drowsy" hidden="true">
					<Size>
						<AbsDimension x="14" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-16" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentSpark" file="Interface\CastingBar\UI-CastingBar-Spark" alphaMode="ADD">
					<Size>
						<AbsDimension x="12" y="32"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame>
				<Size>
					<AbsDimension x="132" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<TileSize>
						<AbsValue val="10"/>
					</TileSize>
					<EdgeSize>
						<AbsValue val="10"/>
					</EdgeSize>
				</Backdrop>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:SetMinMaxValues(0,1)
			</OnLoad>
			<OnUpdate>
				ZHunterTranqTemplate_OnUpdate()
			</OnUpdate>
			<OnHide>
				getglobal(this:GetName().."Icon"):Hide()
			</OnHide>
		</Scripts>
		<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
		<BarColor r="0.0" g="1.0" b="0.0"/>
	</StatusBar>

	<StatusBar name="ZHunterTranq0" enableMouse="true" movable="true" inherits="ZHunterTranqTemplate">
		<Anchors>
			<Anchor point="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Scripts>
			<OnLoad>
				this:RegisterEvent("VARIABLES_LOADED")
				this:SetMinMaxValues(0,1)
				this:RegisterForDrag("LeftButton", "RightButton")
			</OnLoad>
			<OnEvent>
				ZHunterTranq_OnEvent()
			</OnEvent>
			<OnMouseUp>
				if ( this.isMoving ) then
					this:StopMovingOrSizing()
					this.isMoving = false
				end
			</OnMouseUp>
			<OnDragStart>
				if IsAltKeyDown() then
					this:StartMoving()
					this.isMoving = true
				end
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing()
				this.isMoving = false
			</OnDragStop>
		</Scripts>
	</StatusBar>
	<StatusBar name="ZHunterTranq1" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq2" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq3" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq4" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq5" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq6" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq7" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq8" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq9" inherits="ZHunterTranqTemplate"/>
	<StatusBar name="ZHunterTranq10" inherits="ZHunterTranqTemplate"/>
</Ui>