<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/"> 

<Frame name="eCastingBarTooltipBGTemplate" hidden="false" virtual="true">
	<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>
</Frame>

<Button name="eCastingBarMenuControlTemplate" inherits="eCastingBarTooltipBGTemplate" virtual="true">
	<Frames>
		<Button name="$parent_Button">
			<Size>
				<AbsDimension x="32" y="32"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parent" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="-28" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
			<HitRectInsets>
				<AbsInset left="6" right="6" top="7" bottom="7"/>
			</HitRectInsets>
			<Scripts>
				<OnClick>
					eCastingBar_Menu_Show(this:GetParent().menu, this:GetParent().index, this:GetParent():GetName());
				</OnClick>
			</Scripts>
			<NormalTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Up"/>
			<PushedTexture file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Down"/>
			<DisabledTexture file="Interface\Buttons\UI-ScrollBar-ScrollDownButton-Disabled"/>
			<HighlightTexture alphaMode="ADD" file="Interface\MainMenuBar\UI-MainMenu-ScrollDownButton-Highlight"/>
		</Button>		
	</Frames>
	<Layers>
		<Layer level="ARTWORK">
			<FontString name="$parent_Label" inherits="eCastingBarFont" justifyH="LEFT">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10"/>
				</FontHeight>
				<Color r="1.0" g="0.82" b="0"/>
			</FontString>
			<FontString name="$parent_Setting" inherits="eCastingBarFont">
				<Anchors>
					<Anchor point="LEFT">
						<Offset>
							<AbsDimension x="3" y="0"/>
						</Offset>
					</Anchor>
					<Anchor point="RIGHT">
						<Offset>
							<AbsDimension x="-20" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<FontHeight>
					<AbsValue val="10"/>
				</FontHeight>
				<Color r="1.0" g="0.82" b="0"/>
			</FontString>
		</Layer>
	</Layers>
	<Scripts>
		<OnClick>
			eCastingBar_Menu_Show(this.menu, this.index, this:GetName());
		</OnClick>
	</Scripts>
</Button>

<Frame name="eCastingBar_TooltipBGTemplate" hidden="false" virtual="true">
	<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>
</Frame>

<Button name="eCastingBar_MenuOptionTemplate" virtual="true">
	<Size><AbsDimension x="170" y="15"/></Size>
	<HighlightTexture name = "$parentHighlight" alphaMode="ADD" file="Interface\QuestFrame\UI-QuestTitleHighlight"/>
	<Layers>
		<Layer level="ARTWORK">
			<FontString inherits="eCastingBarFont" name="$parent_Text">
				<Anchors><Anchor point="LEFT"/></Anchors>
			</FontString>
		</Layer>
	</Layers>
	<Scripts>
		<OnClick>
			eCastingBar_Menu_OnClick();
		</OnClick>
		<OnEnter>
			this:GetParent().timer = nil;
		</OnEnter>
	</Scripts>
</Button>

<Button name="eCastingBar_DropMenu" inherits="eCastingBar_TooltipBGTemplate" hidden="true" frameStrata="DIALOG" parent="eCastingBarMenuControlTemplate">
	<Size><AbsDimension x="10" y="10"/></Size>
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
	<Frames>
		<Button name="$parent_Option1" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT">
					<Offset><AbsDimension x="10" y="-10"/></Offset>
				</Anchor>
			</Anchors>
		</Button>
		<Button name="$parent_Option2" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option1" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option3" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option2" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option4" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option3" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option5" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option4" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option6" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option5" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option7" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option6" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option8" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option7" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option9" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option8" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option10" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option9" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option11" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option10" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option12" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option11" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option13" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option12" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option14" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option13" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option15" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option14" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option16" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option15" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option17" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option16" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option18" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option17" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option19" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option18" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option20" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option19" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option21" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option20" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option22" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option21" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option23" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option22" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option24" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option23" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option25" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option24" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option26" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option25" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option27" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option26" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option28" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option27" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option29" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option28" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option30" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option29" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option31" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option30" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option32" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option31" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option33" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option32" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option34" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option33" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option35" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option34" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option36" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option35" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option37" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option36" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option38" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option37" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option39" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option38" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
		<Button name="$parent_Option40" inherits="eCastingBar_MenuOptionTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="$parent_Option39" relativePoint="BOTTOMLEFT"/>
			</Anchors>
		</Button>
	</Frames>
	<Scripts>
		<OnLoad>
			this:SetBackdropColor(.2,.2,.2);
		</OnLoad>
		<OnEnter>
			this.timer = nil;
		</OnEnter>
		<OnLeave>
			this.timer = .5;
		</OnLeave>
		<OnHide>
			if (this.timer) then
				this.timer = .01;
			end
		</OnHide>
		<OnUpdate>
			eCastingBar_Menu_TimeOut(arg1);
		</OnUpdate>
	</Scripts>
</Button>

</Ui>