<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="BigFootError.lua"/>
	<Frame name="BigFootErrorFrame" toplevel="true" frameStrata="DIALOG" hidden="true">
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Size>
			<AbsDimension x="500" y="370"/>
		</Size>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="16"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentHeader" inherits="ChatFontNormal" outline="THICK" text="">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="20"/>
					</FontHeight>
					<Color r="1.0" g="1.0" b="1.0"/>
				</FontString>
				<FontString name="BFE_FileHeader" inherits="ChatFontNormal" outline="THICK" text="BFE_PREFIX_FILE">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-50"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="16"/>
					</FontHeight>
					<Color r="0.0" g="1.0" b="1.0"/>
				</FontString>
				<FontString name="BFE_File" inherits="ChatFontNormal" outline="THICK" justifyH="LEFT" justifyV="TOP" nonspacewrap="true">
					<Size>
						<AbsDimension x="450" y="40"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="80" y="-50"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="16"/>
					</FontHeight>
					<Color r="0.0" g="1.0" b="1.0"/>
				</FontString>
				<FontString name="BFE_LineHeader" inherits="ChatFontNormal" outline="THICK" text="BFE_PREFIX_LINE">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="16"/>
					</FontHeight>
					<Color r="1.0" g="1.0" b="1.0"/>
				</FontString>
				<FontString name="BFE_Line" inherits="ChatFontNormal" outline="THICK" >
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="90" y="-80"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="16"/>
					</FontHeight>
					<Color r="1.0" g="1.0" b="1.0"/>
				</FontString>
				<FontString name="BFE_Desc" inherits="GameFontNormal" outline="THICK" justifyH="LEFT" justifyV="TOP" nonspacewrap="false">
					<Size>
						<AbsDimension x="450" y="120"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-105"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="18"/>
					</FontHeight>
					<Color r="1.0" g="0" b="0"/>
				</FontString>
				<FontString name="BFE_Note" inherits="ChatFontNormal" outline="THIN" justifyH="LEFT" justifyV="TOP" Text="BFE_NOTE">
					<Size>
						<AbsDimension x="450" y="120"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-160"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="12"/>
					</FontHeight>
					<Color r="0.8" g="0.8" b="0.8"/>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<ScrollFrame name="BFE_ScrollFrame" inherits="UIPanelScrollFrameTemplate">
				<Size>
					<AbsDimension x="410" y="85"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="24" y="-221"/>
						</Offset>
					</Anchor>
				</Anchors>
				<ScrollChild>
					<EditBox name="CallStackText" multiLine="true" letters="65535" autoFocus="true">
						<Size>
							<AbsDimension x="450" y="85"/>
						</Size>
						<Scripts>
							<OnTextChanged>
								CallStackText:SetText(self.total .. "\nThe version of interface is: " .. BIGFOOT_VERSION .. ".\nCALLSTACK==>\n" .. self.callstack);
								CallStackText:HighlightText();
							</OnTextChanged>
							<OnEscapePressed>
								BigFootErrorFrame:Hide();
							</OnEscapePressed>
						</Scripts>
						<FontString inherits="GameFontHighlightSmall"/>
					</EditBox>
				</ScrollChild>
			</ScrollFrame>
			<Frame name="BFE_CallStackBackground">
				<Size>
					<AbsDimension x="450" y="105"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-210"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
				<Scripts>
					<OnLoad>
						self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
						self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
					</OnLoad>
				</Scripts>
			</Frame>
            <Button name="$parentCloseButton" inherits="GameMenuButtonTemplate" text="CLOSE">
				<Size>
					<AbsDimension x="80" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="90" y="16"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Hide();
					</OnClick>
					<OnEnter>
						BigFootError_OnCloseButtonEnter(self);
					</OnEnter>
					<OnLeave>
						BigFootError_OnCloseButtonLeave(self);
					</OnLeave>
				</Scripts>
			</Button>
            <Button name="$parentHideButton" inherits="GameMenuButtonTemplate" text="BFE_HIDE">
				<Size>
					<AbsDimension x="100" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentCloseButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						BigFootError_OnHideButtonClicked(self);
					</OnClick>
					<OnEnter>
						BigFootError_OnHideButtonEnter(self);
					</OnEnter>
					<OnLeave>
						BigFootError_OnHideButtonLeave(self);
					</OnLeave>
				</Scripts>
			</Button>
            <Button name="$parentDisableButton" inherits="GameMenuButtonTemplate" text="BFE_DISABLE">
				<Size>
					<AbsDimension x="120" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentHideButton" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						BigFootError_OnDisableButtonClicked(self);
					</OnClick>
					<OnEnter>
						BigFootError_OnDisableButtonEnter(self);
					</OnEnter>
					<OnLeave>
						BigFootError_OnDisableButtonLeave(self);
					</OnLeave>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				BigFootErrorFrame_OnLoad(self);
			</OnLoad>
			<OnShow>
				BFE_File:SetText(self.file);
				BFE_Line:SetText(self.line);
				BFE_Desc:SetText(self.desc);
				BigFootError_CheckButtons(self);
				CallStackText.total = self.total;
				CallStackText.callstack = self.callstack;
				CallStackText:SetText(self.total .. "\nThe version of interface is: " .. BIGFOOT_VERSION .. ".\nCALLSTACK==>\n" .. self.callstack);
				if (CallStackText:IsVisible()) then
					CallStackText:HighlightText();
				end
			</OnShow>
			<OnHide>
				BigFootErrorFrame_OnHide(self);
			</OnHide>
			<OnEvent>
				BigFootErrorFrame_OnEvent(self, event, ...);
			</OnEvent>
		</Scripts>
	</Frame>
</Ui>