All pastes #47456 Raw Edit

Something

public text v1 · immutable
#47456 ·published 2006-03-29 15:56 UTC
rendered paste body
<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="localisation.lua"/>
	<Script file="globals.lua"/>
	<Script file="SHunterTimers.lua"/>
		
	<Frame name="SHunterTimersBarTemplate" virtual="true" hidden="true" >
		<Size>
			<AbsDimension x="220" y="10"/>
		</Size> 
		<Frames>
			<StatusBar name="$parentBar" inherits="TextStatusBar" enableMouse="true" >
				<Size>
					<AbsDimension x="220" y="10"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativePoint="CENTER">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<BarTexture file="Interface\TargetingFrame\UI-TargetingFrame-BarFill"/>
				<BarColor r="0" g="0.8" b="0" />
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentLeftText" inherits="GameFontNormal" text="Error!">
							<Anchors>
								<Anchor point="LEFT" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="10" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentRightText" inherits="GameFontNormal" text="Error!">
							<Anchors>
								<Anchor point="RIGHT" relativePoint="RIGHT">
									<Offset>
										<AbsDimension x="-10" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>					
				</Layers>
				<Scripts>	
					<OnEnter>
						SHunterTimers_Tooltip(this:GetParent());
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</StatusBar>
			
			<StatusBar name="$parentBGBar" inherits="TextStatusBar">
				<Size>
					<AbsDimension x="200" y="10"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativePoint="TOP" relativeTo="$parentBar">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<BarTexture file="Interface\TargetingFrame\UI-TargetingFrame-BarFill"/>
				<BarColor r="0" g="0.8" b="0" a="0.25"/>
			</StatusBar>
			
		</Frames>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentIcon" hidden="true">
					<Size>
						<AbsDimension x="10" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this.texture = nil;
				this.channeling = false;
				this.fadeOut = false;
				this.startTime = nil;
				this.endTime = nil;
				this.duration = nil;
				this.step = 0;
				this.target = nil;
			</OnLoad>
			
			<OnUpdate>
				SHunterTimers_OnUpdateBar(this:GetID());
			</OnUpdate>
		</Scripts>
	</Frame>
	<CheckButton name="SHTCheckBoxTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="-50" top="0" bottom="0"/>
		</HitRectInsets>
		<Scripts>
			<OnClick>
				if ( this:GetChecked() ) then
					PlaySound("igMainMenuOptionCheckBoxOff");
				else
					PlaySound("igMainMenuOptionCheckBoxOn");
				end
			</OnClick>
		</Scripts>
	</CheckButton>
	<Frame name="SHunterTimersAnchor" hidden="true" parent="UIParent" movable="true" enableMouse="true">
		<Size>
			<AbsDimension x="16" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Scripts>
			<OnLoad>
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnDragStart>
				this:StartMoving();
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing();
			</OnDragStop>
			<OnEnter>
				GameTooltip:ClearLines();
				GameTooltip:AddLine("Hunter Timers Anchor.");
				GameTooltip:Show();
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Frame>
	<Frame name="SHunterTimersFrame" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="240" y="30"/>
		</Size>
		<Anchors>
			<Anchor point="TOP" relativePoint="CENTER" relativeTo="SHunterTimersAnchor">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
		</Backdrop>
		<Scripts>
			<OnLoad>
				SHunterTimers_OnLoad();
				this.updateTime = 0;
			</OnLoad>
			<OnUpdate>
				SHunterTimersFrame_OnUpdate(GetTime());
			</OnUpdate>
			<OnEvent>
				SHunterTimersFrame_OnEvent(event);
			</OnEvent>
			<OnDragStart>
				this:StartMoving();
			</OnDragStart>
			<OnDragStop>
				this:StopMovingOrSizing();
			</OnDragStop>
		</Scripts>
	</Frame>
	<Frame name="SHunterTimersStatus1" inherits="SHunterTimersBarTemplate" id="1" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="TOP" relativeTo="SHunterTimersFrame">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus2" inherits="SHunterTimersBarTemplate" id="2" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus1">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus3" inherits="SHunterTimersBarTemplate" id="3" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus2">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus4" inherits="SHunterTimersBarTemplate" id="4" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus3">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus5" inherits="SHunterTimersBarTemplate" id="5" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus4">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus6" inherits="SHunterTimersBarTemplate" id="6" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus5">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus7" inherits="SHunterTimersBarTemplate" id="7" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus6">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus8" inherits="SHunterTimersBarTemplate" id="8" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus7">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus9" inherits="SHunterTimersBarTemplate" id="9" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus8">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus10" inherits="SHunterTimersBarTemplate" id="10" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus9">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="SHunterTimersStatus11" inherits="SHunterTimersBarTemplate" id="11" parent="UIParent">
		<Anchors>
			<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="SHunterTimersStatus10">
				<Offset>
					<AbsDimension x="0" y="-10"/>
				</Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<GameTooltip name="SHuntersTooltip" frameStrata="TOOLTIP" hidden="true" parent="UIParent" inherits="GameTooltipTemplate"/>
</Ui>