<Ui>
	<Script file="panic.lua"/>
  <Button name="DefendYourselfPanicButton" frameStrata="HIGH" hidden="true" parent="DefendYourselfFrame" enableMouse="true" movable="true">
	<Size>
		<AbsDimension x="25" y="25"/>
	</Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="UIParent" relativePoint="TOPLEFT">
			<Offset>
				<AbsDimension x="5" y="-10"/>
			</Offset>
		</Anchor>
	</Anchors>
	<NormalTexture name="$parentTex" file="Interface\Icons\Ability_Rogue_FeignDeath"/>
	<HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/>
	<Scripts>
		<OnLoad>this:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up');</OnLoad>
		<OnClick>DefendYourselfPanicButtonClick(arg1);</OnClick>
		<OnMouseDown>if this:IsMovable() and arg1 == "RightButton" then this:StartMoving(); end</OnMouseDown>
		<OnMouseUp>if this:IsMovable() and arg1 == "RightButton" then this:StopMovingOrSizing(); end</OnMouseUp>
	</Scripts>
  </Button>
  <Frame name="DefendYourselfPanicBar" frameStrata="HIGH" hidden="true" parent="DefendYourselfFrame" enableMouse="true" movable="true">
	<Size>
		<AbsDimension x="125" y="15"/>
	</Size>
	<Anchors>
		<Anchor point="TOPLEFT" relativeTo="TargetFrame" relativePoint="TOPLEFT">
			<Offset>
				<AbsDimension x="3" y="-9"/>
			</Offset>
		</Anchor>
	</Anchors>
	<Layers>
		<Layer level="FOREGROUND">
			<FontString name="DefendYourselfPanicText" inherits="GameFontNormalSmall" wraponspaces="true">
				<Size>
					<AbsDimension x="0" y="60"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
			</FontString>
			<Texture name="DefendYourselfPanicBarBorder" file="Interface\Tooltips\UI-StatusBar-Border"/>
		</Layer>
	</Layers>
	<Frames>
		<StatusBar name="DefendYourselfBar" movable="true" inherits="TextStatusBar">
														
						<Size>
							<AbsDimension x="120" y="12"/>
						</Size>
						<Anchors>
							<Anchor point="CENTER" relativeTo="$Parent" relativePoint="CENTER">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
						
						<Frames>
							<Frame name="DefendYourselfBarBackground">
								<Layers>
									<Layer level="BACKGROUND">
	
										<Texture name="DefendYourselfBarLowerBackground1">
											<Size>
												<AbsDimension x="118" y="12"/>
											</Size>
											<Anchors>
												<Anchor point="CENTER" relativeTo="$Parent" relativePoint="CENTER">
													<Offset>
														<AbsDimension x="0" y="0"/>
													</Offset>
												</Anchor>
											</Anchors>
											<Color r="0" g="0" b="0" a="0.5"/>
										</Texture>	
									</Layer>
								</Layers>	
							</Frame>
						</Frames>			
		</StatusBar>
	</Frames>
	<Scripts>
		<OnLoad>this.maxtime = 0; DefendYourselfPanicText:SetTextColor(1,1,1);</OnLoad>
		<OnMouseDown>if this:IsMovable() then this:StartMoving(); end</OnMouseDown>
		<OnMouseUp>if this:IsMovable() then this:StopMovingOrSizing(); end</OnMouseUp>
	</Scripts>
  </Frame>
</Ui>