<Ui xmlns="http://www.blizzard.com/wow/ui/">
	<Font name="GameFontHighlightSmall" inherits="GameFontNormalSmall" virtual="true">
		<Color r="1.0" g="1.0" b="1.0"/>
	</Font>
	<Font name="GameFontHighlightSmallLeft" inherits="GameFontHighlightSmall" justifyH="LEFT" virtual="true"/>
	<Font name="GameFontNormalCenter" inherits="GameFontNormal" justifyH="CENTER" virtual="true"/>
	<FontString name="EventTraceTimeFont" font="fonts\arialn.ttf" justifyH="RIGHT" virtual="true">
		<FontHeight val="10"/>
		<Color r="1" g="1" b="1" a="1"/>
	</FontString>

	<Button name="EventTraceEventTemplate" virtual="true">
		<Size x="0" y="16"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTime" inherits="EventTraceTimeFont">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="TOPRIGHT" relativePoint="TOPLEFT">
							<Offset x="72" y="0"/>
						</Anchor>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</FontString>
				<FontString name="$parentEvent" inherits="GameFontHighlightSmallLeft">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
						<Anchor point="TOPLEFT">
							<Offset x="80" y="0"/>
						</Anchor>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentHideButton" hidden="true">
				<Size x="16" y="8"/>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						EventTraceFrameEventHideButton_OnClick(this);
					</OnClick>
					<OnLeave>
						EventTraceFrameEvent_OnLeave(this:GetParent());
					</OnLeave>
				</Scripts>
				<ButtonText text="X" inherits="GameFontRedSmall">
					<Anchors>
						<Anchor point="LEFT"/>
					</Anchors>
				</ButtonText>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				local frameName = this:GetName();
				this.time = _G[frameName.."Time"];
				this.event = _G[frameName.."Event"];
				this.HideButton = _G[frameName.."HideButton"];
				this:GetHighlightTexture():SetAlpha(.15);
			</OnLoad>
			<OnEnter>
				EventTraceFrameEvent_OnEnter(this);
			</OnEnter>
			<OnLeave>
				EventTraceFrameEvent_OnLeave(this);
			</OnLeave>
			<OnClick>
				EventTraceFrameEvent_OnClick(this);
			</OnClick>
		</Scripts>
		<HighlightTexture setAllPoints="true" alphaMode="ADD">
			<Color r=".8" g=".8" b="1" a="1"/>
		</HighlightTexture>
	</Button>

	<Frame name="UIPanelDialogTemplate" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<Texture name="$parentTopLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.501953125" right="0.625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.625" right="0.75" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTop" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.25" right="0.369140625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.751953125" right="0.875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.875" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.376953125" right="0.498046875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.001953125" right="0.125" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.1171875" right="0.2421875" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentTitleBG" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Title-Background">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="8" y="-7"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset x="-8" y="-24"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentDialogBG" file="Interface\PaperDollInfoFrame\UI-Character-CharacterTab-L1">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="8" y="-24"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-6" y="8"/>
						</Anchor>
					</Anchors>
					<TexCoords left="0.255" right="1" top="0.29" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="12" y="-8"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="-32" y="-24"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentClose" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="2" y="1"/>
					</Anchor>
				</Anchors>
			</Button>
		</Frames>
	</Frame>

	<Frame name="EventTraceFrame" parent="UIParent" movable="true" enableMouse="true" clampedToScreen="true" hidden="true" frameStrata="MEDIUM" toplevel="true">
		<Size x="326" y="505"/>
		<Anchors>
			<Anchor point="LEFT">
				<Offset x="64" y="0"/>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTitleBG" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Title-Background">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="9" y="-6"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT">
							<Offset x="-28" y="-24"/>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentDialogBG" file="Interface\Tooltips\UI-Tooltip-Background">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="8" y="-24"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-6" y="8"/>
						</Anchor>
					</Anchors>
					<Color r="0" g="0" b="0" a=".75"/>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture name="$parentTopLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.501953125" right="0.625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTopRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.625" right="0.75" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentTop" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.25" right="0.369140625" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.751953125" right="0.875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottomRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.875" right="1" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="0" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.376953125" right="0.498046875" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentLeft" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentBottomLeft" relativePoint="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0.001953125" right="0.125" top="0" bottom="1"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\AddOns\!DebugTools\media\UI-GearManager-Border">
					<Size x="64" y="0"/>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomRight" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.1171875" right="0.2421875" top="0" bottom="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<FontString name="$parentTitle" inherits="GameFontNormal" text="EVENTS_LABEL">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="12" y="-8"/>
						</Anchor>
						<Anchor point="TOPRIGHT">
							<Offset x="-32" y="-8"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentCloseButton" inherits="UIPanelCloseButton">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="2" y="1"/>
					</Anchor>
				</Anchors>
			</Button>
			<Frame name="$parentTitleButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTitleBG"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentTitleBG"/>
				</Anchors>
				<Frames>
					<Frame name="$parentHighlight" setAllPoints="true" hidden="true">
						<Layers>
							<Layer level="OVERLAY">
								<Texture file="Interface\Buttons\UI-ListBox-Highlight" setAllPoints="true">
									<Color r="1" g="1" b="1" a="0.4"/>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						this:RegisterForDrag("LeftButton");
					</OnLoad>
					<OnDragStart>
						local eventTraceFrame = _G["EventTraceFrame"];
						eventTraceFrame.moving = true;
						eventTraceFrame:StartMoving();
					</OnDragStart>
					<OnDragStop>
						local eventTraceFrame = _G["EventTraceFrame"];
						eventTraceFrame.moving = nil;
						eventTraceFrame:StopMovingOrSizing();
					</OnDragStop>
				</Scripts>
			</Frame>
			<Slider name="$parentScroll">
				<Size x="16" y="0"/>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset x="-7" y="-28"/>
					</Anchor>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-7" y="10"/>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBG" setAllPoints="true">
							<Color r=".8" g=".8" b="1" a="0.1"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						this:SetFrameLevel(self:GetFrameLevel() + 1);
						this:SetValue(0);
						this:SetValueStep(1);
					</OnLoad>
				</Scripts>
				<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-ScrollBar-Knob">
					<Size x="16" y="16"/>
					<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75"/>
				</ThumbTexture>
			</Slider>
		</Frames>
		<Scripts>
			<OnLoad>
				EventTraceFrame_OnLoad(this);
			</OnLoad>
			<OnShow>
				EventTraceFrame_OnShow(this);
			</OnShow>
			<OnEvent>
				EventTraceFrame_OnEvent(this, event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15);
			</OnEvent>
			<OnUpdate>
				EventTraceFrame_OnUpdate(this, arg1);
			</OnUpdate>
			<OnKeyUp>
				EventTraceFrame_OnKeyUp(this, arg1);
			</OnKeyUp>
		</Scripts>
	</Frame>

	<Frame name="ScriptErrorsFrame" inherits="UIPanelDialogTemplate" frameStrata="TOOLTIP" movable="true" enableMouse="true" clampedToScreen="true" hidden="true" toplevel="true">
		<Size x="384" y="260"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentIndexLabel" font="GameFontNormalCenter">
					<Size x="70" y="16"/>
					<Anchors>
						<Anchor point="BOTTOM">
							<Offset x="0" y="16"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentTitleButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentTitleBG"/>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentTitleBG"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:RegisterForDrag("LeftButton");
					</OnLoad>
					<OnDragStart>
						local frame = _G["ScriptErrorsFrame"];
						frame.moving = true;
						frame:StartMoving();
					</OnDragStart>
					<OnDragStop>
						local frame = _G["ScriptErrorsFrame"];
						frame.moving = nil;
						frame:StopMovingOrSizing();
					</OnDragStop>
				</Scripts>
			</Frame>
			<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
				<Size x="343" y="194"/>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset x="12" y="-30"/>
					</Anchor>
				</Anchors>
				<ScrollChild>
					<EditBox name="$parentText" multiLine="true" letters="4000" autoFocus="false">
						<Size x="343" y="194"/>
						<Scripts>
							<OnTextChanged>
								ScrollingEdit_OnTextChanged(this:GetParent());
							</OnTextChanged>
							<OnCursorChanged>
								ScrollingEdit_OnCursorChanged(arg1, arg2, arg3, arg4);
							</OnCursorChanged>
							<OnUpdate>
								ScrollingEdit_OnUpdate(this:GetParent());
							</OnUpdate>
							<OnEditFocusGained>
								this:HighlightText(0);
							</OnEditFocusGained>
							<OnEscapePressed>
								this:ClearFocus();
							</OnEscapePressed>
						</Scripts>
						<FontString inherits="GameFontHighlightSmall"/>
					</EditBox>
				</ScrollChild>
			</ScrollFrame>
			<Button name="$parentReload" inherits="UIPanelButtonTemplate" text="RELOADUI">
				<Size x="96" y="24"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="$parent">
						<Offset x="10" y="12" />
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ReloadUI();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentPrevious" id="2">
				<Size x="32" y="32"/>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset x="-50" y="8"/>
					</Anchor>
				</Anchors>

				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>

				<Scripts>
					<OnClick>
						ScriptErrorsFrameButton_OnClick(this);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentNext" id="1">
				<Size x="32" y="32" />
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset x="50" y="8"/>
					</Anchor>
				</Anchors>

				<NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/>
				<PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/>
				<DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>

				<Scripts>
					<OnClick>
						ScriptErrorsFrameButton_OnClick(this);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Size x="96" y="24"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset x="-8" y="12"/>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(this:GetParent());
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				ScriptErrorsFrame_OnLoad(this);
			</OnLoad>
			<OnShow>
				ScriptErrorsFrame_OnShow(this);
			</OnShow>
		</Scripts>
	</Frame>

	<GameTooltip name="FrameStackTooltip" frameStrata="TOOLTIP" hidden="true" inherits="GameTooltipTemplate">
		<Scripts>
			<OnLoad>
				FrameStackTooltip_OnLoad(this);
			</OnLoad>
			<OnShow>
				FrameStackTooltip_OnShow(this);
			</OnShow>
			<OnEnter>
				FrameStackTooltip_OnEnter(this);
			</OnEnter>
			<OnUpdate>
				FrameStackTooltip_OnUpdate(this, arg1);
			</OnUpdate>
			<OnEvent>
				FrameStackTooltip_OnEvent(this, event, arg1);
			</OnEvent>
		</Scripts>
	</GameTooltip>

	<GameTooltip name="EventTraceTooltip" frameStrata="TOOLTIP" hidden="true" parent="EventTraceFrame" inherits="GameTooltipTemplate">
		<Scripts>
			<OnLoad>
				DebugTooltip_OnLoad(this)
			</OnLoad>
		</Scripts>
	</GameTooltip>

	<Frame name="FrameStackHighlight" frameStrata="TOOLTIP">
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentTexture">
					<Color r="0.0" g="0.8" b="0.0" a=".4"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
</Ui>