<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/">
	<Script file="BaudErrorFrame.lua"/>
	<Button name="BaudErrorFrameEntryTemplate" virtual="true">
		<Size>
			<AbsDimension x="1" y="16"/>
		</Size>
		<Anchors>
			<Anchor point="LEFT">
				<Offset>
					<AbsDimension x="13"/>
				</Offset>
			</Anchor>
			<Anchor point="RIGHT">
				<Offset>
					<AbsDimension x="-13"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentText" setAllPoints="true" justifyH="LEFT" inherits="GameFontHighlight"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				BaudErrorFrameEntry_OnClick(self);
			</OnClick>
		</Scripts>
	</Button>
	<Button name="BaudErrorFrameMinimapButton" frameStrata="DIALOG" parent="UIParent" movable="true" hidden="true">
		<Size>
			<AbsDimension x="21" y="21"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentIcon">
					<Size>
						<AbsDimension x="20" y="20"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="-1" y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<FontString name="BaudErrorFrameMinimapCount" inherits="ChatFontNormal">
					<Color r="1" g="0" b="0" a="0.8"/>
					<FontHeight>
						<AbsValue val="18"/>
					</FontHeight>
					<Anchors>
						<Anchor point="CENTER" relativeTo="$parentIcon">
							<Offset>
								<AbsDimension y="1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("LeftButtonUp");
				self:SetFrameLevel(self:GetFrameLevel()+1);
			</OnLoad>
			<OnEnter>
				BaudErrorFrameMinimapButton_OnEnter(self);
			</OnEnter>
			<OnLeave>
				BaudErrorFrameMinimapButton_OnLeave(self);
			</OnLeave>
			<OnClick>
				BaudErrorFrame:Show();
			</OnClick>
			<OnUpdate>
				BaudErrorFrameMinimapButton_OnUpdate(self);
			</OnUpdate>
		</Scripts>
	</Button>
	<Frame name="BaudErrorFrame" toplevel="true" frameStrata="DIALOG" enableMouse="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="1000" y="600"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentBackground" setAllPoints="true" file="Interface\ChatFrame\ChatFrameBackground">
					<Color r="0" g="0" b="0" a="0.5"/>
				</Texture>
				<Texture name="$parentHeader" alpha="0">
					<Size>
						<AbsDimension x="300" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension y="5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="SHOW_LUA_ERRORS">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeader">
							<Offset>
								<AbsDimension y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentListScrollBox">
				<Size>
					<AbsDimension x="1" y="148"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-40"/>
						</Offset>
					</Anchor>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="-40" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<FontString name="$parentTitle" inherits="GameFontNormal" text="ERRORS">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<ScrollFrame name="$parentScrollBar" inherits="FauxScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="0" y="-4"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-26" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Scripts>
							<OnVerticalScroll>
								FauxScrollFrame_OnVerticalScroll(self, offset, 16, BaudErrorFrameScrollBar_Update);
							</OnVerticalScroll>
						</Scripts>
					</ScrollFrame>
					<Frame name="$parentHighlight" hidden="true">
						<Size>
							<AbsDimension x="1" y="16"/>
						</Size>
						<Anchors>
							<Anchor point="LEFT">
								<Offset>
									<AbsDimension x="8" y="0"/>
								</Offset>
							</Anchor>
							<Anchor point="RIGHT">
								<Offset>
									<AbsDimension x="-8" y="0"/>
								</Offset>
							</Anchor>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture name="$parentTexture" file="Interface\ChatFrame\ChatFrameBackground"/>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								getglobal(self:GetName().."Texture"):SetVertexColor(1,.8,0,.25);
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad>
						self.Entries = 8;
						for Index = 1, self.Entries do
							CreateFrame("Button",self:GetName().."Entry"..Index,self,"BaudErrorFrameEntryTemplate"):SetPoint("TOP",0,6-16*Index);
						end
					</OnLoad>
				</Scripts>
			</Frame>
			<Frame name="$parentDetailScrollBox">
				<Size>
					<AbsDimension x="900" y="358"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="40" y="40"/>
						</Offset>
					</Anchor>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="-40" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentBackground" setAllPoints="true" file="Interface\ChatFrame\ChatFrameBackground">
							<Color r="0" g="0" b="0" a="0.25"/>
						</Texture>
						<FontString name="$parentTitle" inherits="GameFontNormal" text="QUEST_DESCRIPTION">
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
									<Offset>
										<AbsDimension x="0" y="1"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<ScrollFrame name="BaudErrorFrameDetailScrollFrame" inherits="UIPanelScrollFrameTemplate">
						<Size>
							<AbsDimension x="1" y="250"/>
						</Size>
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="8" y="-4"/>
								</Offset>
							</Anchor>
							<Anchor point="BOTTOMRIGHT">
								<Offset>
									<AbsDimension x="-26" y="4"/>
								</Offset>
							</Anchor>
						</Anchors>
						<ScrollChild>
							<EditBox name="BaudErrorFrameEditBox" autoFocus="false" multiLine="true">
								<Size>
									<AbsDimension x="866" y="250"/>
								</Size>
								<TextInsets>
									<AbsInset left="4" right="4" top="4" bottom="4"/>
								</TextInsets>
								<FontString inherits="ChatFontNormal"/>
								<Scripts>
									<OnTextChanged>
										BaudErrorFrameEditBox_OnTextChanged(self);
									</OnTextChanged>
									<OnTextSet>
										BaudErrorFrameEditBox_OnTextSet();
									</OnTextSet>
									<OnEscapePressed>
										self:ClearFocus();
									</OnEscapePressed>
								</Scripts>
							</EditBox>
						</ScrollChild>
						<Scripts>
							<OnLoad>
								ScrollFrame_OnLoad(self);
								self.scrollBarHideable = 1;
								getglobal(self:GetName().."ScrollBar"):Hide();
							</OnLoad>
						</Scripts>
					</ScrollFrame>
				</Frames>
			</Frame>
			<Button name="$parentReloadUIButton" inherits="GameMenuButtonTemplate" text="RELOADUI">
				<Size>
					<AbsDimension x="120" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="50" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						ReloadUI();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentCloseButton" inherits="GameMenuButtonTemplate" text="CLOSE">
				<Size>
					<AbsDimension x="100" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-50" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide();
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentClearButton" inherits="GameMenuButtonTemplate" text="CLEAR_ALL">
				<Size>
					<AbsDimension x="100" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parentCloseButton" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						BaudErrorFrameClearButton_OnClick(self);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				BaudErrorFrame_OnLoad(self);
			</OnLoad>
			<OnEvent function="BaudErrorFrame_OnEvent"/>
			<OnShow>
				BaudErrorFrame_OnShow();
			</OnShow>
			<OnHide>
				BaudErrorFrame_OnHide();
			</OnHide>
		</Scripts>
	</Frame>
</Ui>