Quantcast
<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">
	<Frame name="PROptionsTemplate" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent" virtual="true">
		<Size>
			<AbsDimension x="500" y="400"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Frames>
		  <Button name="$parentHeader">
			<Size>
			  <AbsDimension x="350" y="64"/>
			</Size>
			<Anchors>
			  <Anchor point="TOP">
				<Offset>
				  <AbsDimension x="0" y="12"/>
				</Offset>
			  </Anchor>
			</Anchors>
			<Layers>
			  <Layer level="ARTWORK">
				<Texture name="$parentTexture" file="Interface\DialogFrame\UI-DialogBox-Header" setAllPoints="true">
				</Texture>
				<FontString name="$parentTitle" inherits="GameFontNormal">
				  <Anchors>
					<Anchor point="TOP" relativeTo="$parentTexture">
					  <Offset>
						<AbsDimension x="0" y="-14"/>
					  </Offset>
					</Anchor>
				  </Anchors>
				</FontString>
			  </Layer>
			</Layers>
			<Scripts>
			  <OnMouseDown>
				self:GetParent():StartMoving()
			  </OnMouseDown>
			  <OnMouseUp>
				self:GetParent():StopMovingOrSizing()
			  </OnMouseUp>
			</Scripts>
		  </Button>
			<Button name="$parentCloseButton" hidden="false" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-5" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						PerfectRaid:HasModule("PerfectRaid-Options"):ShowOptions()
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				local name = self:GetName()
				table.insert(UISpecialFrames,name)
				self.Title = getglobal(name.."Title")
			</OnLoad>
			<OnHide>
				PlaySound("UChatScrollButton");
			</OnHide>
		</Scripts>
	</Frame>
	<Button name="PRTabTemplate" hidden="false" inherits="CharacterFrameTabButtonTemplate" virtual="true">>
		<Size>
		    <AbsDimension x="115" y="32"/>
		</Size>
		<Scripts>
			<OnLoad>
				self:SetFrameLevel(2);
			</OnLoad>
			<OnClick>
				PerfectRaid:HasModule("PerfectRaid-Options"):TabOnClick(self)
			</OnClick>
		</Scripts>
	</Button>
	<CheckButton name="PRCheckTemplate" hidden="true" inherits="UICheckButtonTemplate" virtual="true">
		<Size><AbsDimension x="26" y="26"/></Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentLabel" inherits="GameFontHighlightSmall" text="Check Label">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset><AbsDimension x="5" y="0"/></Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.Label = getglobal(self:GetName().."Label")
			</OnLoad>
		</Scripts>
	</CheckButton>
	<Slider name="PRSliderTemplate" inherits="OptionsSliderTemplate" hidden="true" virtual="true">
		<Size><AbsDimension x="160" y="16"/></Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentCurrent" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset><AbsDimension x="5" y="0"/></Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				local name = self:GetName()
				self.Text = getglobal(name.."Text")
				self.High = getglobal(name.."High")
				self.Low = getglobal(name.."Low")
				self.Current = getglobal(name.."Current")
			</OnLoad>
			<OnValueChanged>
				self.Current:SetText(string.format("%.2f", self:GetValue()))
			</OnValueChanged>
		</Scripts>
	</Slider>
	<Button name="PRButtonTemplate" inherits="OptionsButtonTemplate" virtual="true">
	</Button>
</Ui>