<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="DPSMate_Template_ProcsTotal_Box_Row" virtual="true">
		<Size x="680" y="30" />
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Icon" file="Interface\AddOns\DPSMate\images\dummy">
					<Size x="24" y="24" />
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="4" y="0" />
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parent_Name" inherits="GameFontNormalSmall" text="Test Buff of Testing of the Doom" justifyH="LEFT">
					<Size x="200" y="30" />
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_Icon" relativePoint="RIGHT">
							<Offset x="5" y="0" />
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
				<FontString name="$parent_Count" inherits="GameFontNormalSmall" text="9999">
					<Size x="75" y="30" />
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_Name" relativePoint="RIGHT">
							<Offset x="-5" y="0" />
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
				<FontString name="$parent_Chance" inherits="GameFontNormalSmall" text="999009s">
					<Size x="75" y="30" />
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_Count" relativePoint="RIGHT">
							<Offset x="-5" y="0" />
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	
	<ScrollFrame name="DPSMate_Template_ProcsTotal_Box" virtual="true">
		<Size x="680" y="225" />
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets left="6" right="6" top="6" bottom="6" />
			<TileSize val="16" />
			<EdgeSize val="16" />
			<Color r="0.157" g="0.08" b="0.06" a="0.5" />
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parent_Title" inherits="GameFontNormalHuge" text="Buffs" justifyH="LEFT">
					<Size x="870" y="30" />
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="10" y="30" />
						</Anchor>
					</Anchors>
					<Color r="1" g="1" b="1" />
				</FontString>
				<FontString name="$parent_Name" inherits="GameFontNormal" text="Name">
					<Size x="230" y="30" />
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="-5" y="-5" />
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent_Count" inherits="GameFontNormal" text="Count">
					<Size x="75" y="30" />
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_Name" relativePoint="RIGHT">
							<Offset x="5" y="0" />
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parent_Chance" inherits="GameFontNormal" text="Chance">
					<Size x="375" y="30" />
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_Count" relativePoint="RIGHT">
							<Offset x="0" y="0" />
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parent_Row1" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="5" y="-35" />
					</Anchor>
				</Anchors>
			</Frame>
			<Frame name="$parent_Row2" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parent_Row1" relativePoint="BOTTOM" />
				</Anchors>
			</Frame>
			<Frame name="$parent_Row3" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parent_Row2" relativePoint="BOTTOM" />
				</Anchors>
			</Frame>
			<Frame name="$parent_Row4" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parent_Row3" relativePoint="BOTTOM" />
				</Anchors>
			</Frame>
			<Frame name="$parent_Row5" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parent_Row4" relativePoint="BOTTOM" />
				</Anchors>
			</Frame>
			<Frame name="$parent_Row6" inherits="DPSMate_Template_ProcsTotal_Box_Row">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parent_Row5" relativePoint="BOTTOM" />
				</Anchors>
			</Frame>
		</Frames>
	</ScrollFrame>
	
	<Frame name="DPSMate_Details_ProcsTotal" parent="UIParent" movable="true" hidden="true">
		<Size x="710" y="335" />
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets left="6" right="6" top="6" bottom="6" />
			<TileSize val="16" />
			<EdgeSize val="16" />
			<Color r="0.157" g="0.08" b="0.06" a="1" />
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parent_Title" inherits="GameFontNormalHuge" justifyH="LEFT" justifyV="CENTER">
					<Size x="900" y="40" />
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="20" y="-10" />
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				this:SetClampedToScreen()
				getglobal(this:GetName().."_Title"):SetFont(UNIT_NAME_FONT, 24)
			</OnLoad>
			<OnMouseDown>
				this:StartMoving()
			</OnMouseDown>
			<OnMouseUp>
				this:StopMovingOrSizing()
			</OnMouseUp>
		</Scripts>
		<Frames>
			<Button name="$parent_CloseButton">
				<Size x="30" y="30" />
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
						GameTooltip:SetText(DPSMate.L["close"], nil, nil, nil, nil, 1)
						GameTooltip:Show()
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide()
					</OnLeave>
					<OnClick>
						DPSMate_Details_ProcsTotal:Hide()
						PlaySound("igMainMenuOptionCheckBoxOff")
					</OnClick>
				</Scripts>
				<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
				<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
				<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
			</Button>
			<ScrollFrame name="$parent_Buffs" inherits="DPSMate_Template_ProcsTotal_Box">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="15" y="-95" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						getglobal(this:GetName().."_Title"):SetText(DPSMate.L["procs"])
						getglobal(this:GetName().."_Name"):SetText(DPSMate.L["bname"])
						getglobal(this:GetName().."_Count"):SetText(DPSMate.L["count"])
						getglobal(this:GetName().."_Chance"):SetText(DPSMate.L["chance"])
						DPSMate.Modules.DetailsProcsTotal:CreateGraphTable(this)
						this:SetVerticalScroll(0)
					</OnLoad>
					<OnMouseWheel>
						DPSMate.Modules.DetailsProcsTotal:UpdateBuffs(arg1)
					</OnMouseWheel>
				</Scripts>
			</ScrollFrame>
		</Frames>
	</Frame>
</Ui>