<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="ReportFrame.lua"/>	
		<Button name="CVReportFrameButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="31"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentNameLocation" inherits="GameFontNormal" text="location">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentInfo" inherits="GameFontHighlightSmall" justifyH="LEFT" text="info">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentNameLocation" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				--this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				--CVReportFrameButton_OnClick(arg1);
				--PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
	
	<Frame name="CVReportFrame" setAllPoints="true" enableMouse="true" parent="CVCharacterFrame" hidden="true" id="6">
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="75"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="258" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-257"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="258" y="-257"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
					<Button name="CVReportFrameButton1" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CVReportFrame">
								<Offset>
									<AbsDimension x="23" y="-76"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton2" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton1" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton3" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton2" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton4" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton3" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton5" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton4" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton6" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton5" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton7" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton6" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton8" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton7" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton9" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton8" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					<Button name="CVReportFrameButton10" inherits="CVReportFrameButtonTemplate">
						<Anchors>
							<Anchor point="TOP" relativeTo="CVReportFrameButton9" relativePoint="BOTTOM">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
					</Button>
					
					<Button name="CVReportFrameToggleTab1" inherits="TabButtonTemplate" text="CV_LOCATION" id="1">
						<Anchors>
							<Anchor point="TOPLEFT" relativeTo="CVReportFrame">
								<Offset>
									<AbsDimension x="70" y="-39"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnLoad>
								PanelTemplates_SelectTab(this);
								PanelTemplates_TabResize(0);
								getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 31);
							</OnLoad>
							<OnClick>
								CharactersViewer.ReportFrame.UpdateTab();
							</OnClick>
						</Scripts>
					</Button>
					<Button name="CVReportFrameToggleTab2" inherits="TabButtonTemplate" text="HONOR" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeTo="CVReportFrameToggleTab1" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(this);
							</OnShow>
							<OnClick>
								CharactersViewer.ReportFrame.UpdateTab();
							</OnClick>
						</Scripts>
					</Button>	
					<Button name="CVReportFrameToggleTab3" inherits="TabButtonTemplate" text="MONEY" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeTo="CVReportFrameToggleTab2" relativePoint="RIGHT">
								<Offset>
									<AbsDimension x="0" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnShow>
								PanelTemplates_DeselectTab(this);
							</OnShow>
							<OnClick>
								CharactersViewer.ReportFrame.UpdateTab();
							</OnClick>
						</Scripts>
					</Button>	
		</Frames>
		<Scripts>
			<OnShow>
				CharactersViewer.ReportFrame.OnShow();
			</OnShow>
			<OnHide>
				if ( CVCharacterFrame.isMoving ) then
					CVCharacterFrame:StopMovingOrSizing();
					CVCharacterFrame.isMoving = false;
				end
			</OnHide>
			<OnMouseUp>
				if ( CVCharacterFrame.isMoving ) then
					CVCharacterFrame:StopMovingOrSizing();
					CVCharacterFrame.isMoving = false;
				end
			</OnMouseUp>
			<OnMouseDown>
				if ( ( ( not CVCharacterFrame.isLocked ) or ( CVCharacterFrame.isLocked == 0 ) ) and ( arg1 == "LeftButton" ) ) then
					CVCharacterFrame:StartMoving();
					CVCharacterFrame.isMoving = true;
				end
			</OnMouseDown>   
		</Scripts>
	</Frame>
</Ui>
