<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="BigFootBar.lua"/>

	<CheckButton name="BigFootBarButtonTemplate" virtual="true" inherits="ActionBarButtonTemplate">
		<Scripts>
			<OnLoad>
				BigFootBarButton_OnLoad(self)
			</OnLoad>
		</Scripts>
	</CheckButton>

	<Button name="BigFootBarTabTemplate" frameStrata="HIGH" hidden="false" alpha="0.4" virtual="true">
		<Size>
			<AbsDimension x="64" y="16"/>
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTexture" file="Interface\Addons\BigFootBar\BigFootBarTab">
					<Size>
						<AbsDimension x="64" y="16"/>
					</Size>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle" font="Fonts\FRIZQT__.TTF" outline="NORMAL" justifyH="CENTER" justifyV="CENTER">
					<FontHeight>
						<AbsValue val="10"/>
					</FontHeight>
					<Anchors>
						<Anchor point="CENTER">
							<Offset><AbsDimension x="0" y="0.5"/></Offset>
						</Anchor>
					</Anchors>
					<Color r="1.0" g="1.0" b="1.0"/>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="$parentDropDown" inherits="BDropDownMenuTemplate" id="1" hidden="true">
				<Anchors>
					<Anchor point="TOP">
						<Offset>
							<AbsDimension x="-80" y="-35"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						BigFootBarDropDown_OnLoad(self);
					</OnLoad>
					<OnShow>
						BigFootBarDropDown_OnLoad(self);
					</OnShow>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter>
				BigFootBarTab_OnEnter(self);
			</OnEnter>
			<OnLeave>
				BigFootBarTab_OnLeave(self);
			</OnLeave>
			<OnLoad>
				self:RegisterForClicks("LeftButtonDown", "LeftButtonUp", "RightButtonUp");
				self:RegisterForDrag("LeftButton");
				self:RegisterEvent("PLAYER_REGEN_DISABLED");
				self:RegisterEvent("PLAYER_REGEN_ENABLED");
			</OnLoad>
			<OnClick>
				BigFootBarTab_OnClick(self, button)
			</OnClick>
			<OnEvent>
				local frame = self:GetParent();
				if (event == "PLAYER_REGEN_DISABLED") then
					getglobal(self:GetName().."DropDown"):Hide();
					frame.inCombat = 1;
					if ( frame.moving) then
						frame:StopMovingOrSizing();
					end
				else
					frame.inCombat = nil;
				end
			</OnEvent>
			<OnMouseDown>
				BigFootBar_OnMouseDown(self, button);
			</OnMouseDown>
			<OnMouseUp>
				BigFootBar_OnMouseUp(self, button);
			</OnMouseUp>
		</Scripts>
		<HighlightTexture file="Interface\Addons\BigFootBar\BigFootBarTabHighlight" alphaMode="ADD"/>
	</Button>

	<Frame name="BigFootBarFrameTemplate" toplevel="true" frameStrata="LOW" enableMouse="true" parent="UIParent" movable="true" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="40" y="40"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="UIParent" relativePoint="CENTER">
				<Offset>
					<AbsDimension x="0" y="60"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Frames>
			<Button name="$parentTab" inherits="BigFootBarTabTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="12" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<CheckButton name="$parentActionButton1" inherits="BigFootBarButtonTemplate" id="-1">
				<Anchors>
					<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-2" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton2" inherits="BigFootBarButtonTemplate" id="-2">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton1" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton3" inherits="BigFootBarButtonTemplate" id="-3">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton2" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton4" inherits="BigFootBarButtonTemplate" id="-4">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton3" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton5" inherits="BigFootBarButtonTemplate" id="-5">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton4" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton6" inherits="BigFootBarButtonTemplate" id="-6">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton5" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton7" inherits="BigFootBarButtonTemplate" id="-7">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton6" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton8" inherits="BigFootBarButtonTemplate" id="-8">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton7" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton9" inherits="BigFootBarButtonTemplate" id="-9">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton8" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton10" inherits="BigFootBarButtonTemplate" id="-10">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton9" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton11" inherits="BigFootBarButtonTemplate" id="-11">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton10" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parentActionButton12" inherits="BigFootBarButtonTemplate" id="-12">
				<Anchors>
					<Anchor point="TOP" relativeTo="$parentActionButton11" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
		</Frames>
		<Scripts>
			<OnLoad>
				BigFootBarFrame_OnLoad(self);
			</OnLoad>
			<OnUpdate>
				BigFootBarFrame_OnUpdate(self, elapsed);
			</OnUpdate>
		</Scripts>
	</Frame>

	<Slider name="BigFootBarOpacitySlider" parent="UIParent" hidden="true" frameStrata="HIGH" orientation="VERTICAL">
		<Size>
			<AbsDimension x="24" y="128"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<EdgeSize>
				<AbsValue val="8"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="8"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6"/>
			</BackgroundInsets>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="CENTER">
							<Offset>
								<AbsDimension x="-20" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString inherits="GameFontHighlightSmall" text="50%">
					<Anchors>
						<Anchor point="BOTTOM" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString inherits="GameFontHighlightSmall" text="150%">
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Vertical">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
		</ThumbTexture>
		<Scripts>
			<OnValueChanged>
				BigFootBarOpacitySlider_OnValueChanged(self, value);
			</OnValueChanged>
			<OnEnter>
				BigFootBarOpacitySlider_OnEnter(self);
			</OnEnter>
			<OnLeave>
				BigFootBarOpacitySlider_OnLeave(self);
			</OnLeave>
		</Scripts>
	</Slider>

</Ui>