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

	<!-- Scripts -->
	<Script file="EFM_GUI.lua"></Script>

	<!-- Templates -->
	<CheckButton name="efmCheckButton" virtual="true" inherits="OptionsCheckButtonTemplate">
		<Scripts>
			<OnClick>
				EFM_GUI_Button_OnEvent(this);
			</OnClick>
		</Scripts>
	</CheckButton>

	<Button name="efmButton" virtual="true" inherits="OptionsButtonTemplate">
		<Size>
			<AbsDimension x="150" y="25"/>
		</Size>
		<Scripts>
			<OnClick>
				EFM_GUI_Button_OnEvent(this);
			</OnClick>
		</Scripts>
	</Button>

	<Slider name="efmSlider" virtual="true" inherits="OptionsSliderTemplate">
		<Size>
			<AbsDimension x="250" y="12"/>
		</Size>
		<Scripts>
			<OnValueChanged>
				EFM_GUI_SliderChanged(this);
			</OnValueChanged> 
		</Scripts>
	</Slider>

	<Frame name="efmDivider" virtual="true">
		<Size>
			<AbsDimension x="330" y="40"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension y="40"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
				<FontString name="$parentHeaderText" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parentHeader">
							<Offset>
								<AbsDimension x="0" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="BACKGROUND">
				<Texture name="$parentLine" file="Interface\HelpFrame\HelpFrameDivider">
					<Size>
						<AbsDimension x="330" y="20" />
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension y="7"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0.3125" bottom="0.625" />
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				EFM_GUI_DividerOnShow(this);
			</OnShow>
		</Scripts>
	</Frame>

	<!-- Actual Frame -->
	<Frame name="EFM_GUI_Options_Frame" frameStrata="DIALOG" toplevel="true" enableMouse="true" movable="true" hidden="true" parent="UIParent" enableKeyboard="true" >

		<!-- Program scripts -->
		<Scripts>
			<OnShow>
				EFM_GUI_OnShow();
			</OnShow>
		</Scripts>

		<!-- Specify Window Size -->
		<Size>
			<AbsDimension x="350" y="370"/>
		</Size>
		
		<!-- Specify the Window location -->
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>

		<!-- Define the background and border images -->
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>

		<!-- The various layers... includes the header name -->
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="$parent_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="512" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="EFM_GUITEXT_Header">
					<Anchors>
						<Anchor point="TOP" relativeTo="$parent_Header">
							<Offset>
								<AbsDimension x="0" y="-14"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>

		<!-- This is where the actual buttons and other items for the GUI frame start -->
		<Frames>
			<!-- Timer Option -->
			<CheckButton name="$parent_Toggle_Timer" inherits="efmCheckButton">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="40" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>

			<!-- Show Timers as Text Option -->
			<CheckButton name="$parent_Toggle_ShowTimerBar" inherits="efmCheckButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Toggle_Timer" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="30"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>

			<!-- Show Large timer bar Option -->
			<CheckButton name="$parent_Toggle_ShowLargeBar" inherits="efmCheckButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Toggle_ShowTimerBar" relativePoint="BOTTOMLEFT">
					</Anchor>
				</Anchors>
			</CheckButton>

			<!-- Zone Marker Option -->
			<CheckButton name="$parent_Toggle_ZoneMarker" inherits="efmCheckButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Toggle_ShowLargeBar" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>

			<!-- Druid Flight Paths Option -->
			<CheckButton name="$parent_Toggle_DruidPaths" inherits="efmCheckButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Toggle_ZoneMarker" relativePoint="BOTTOMLEFT">
					</Anchor>
				</Anchors>
			</CheckButton>

			<!-- In-Flight Display Position Slider -->
			<Slider name="$parent_Slider_Display" inherits="efmSlider">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Toggle_DruidPaths" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Slider>


			<!-- Divider line to display load information -->
			<Frame name="$parent_LoadDivider" inherits="efmDivider">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_Slider_Display" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="-30" y="-20"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>

			<!-- Button to load Alliance flight paths -->
			<Button name="$parent_LoadAlliance" inherits="efmButton" text="EFM_GUITEXT_LoadAlliance">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_LoadDivider" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="15" y="10"/>
						</Offset>
					</Anchor>
				</Anchors>			
			</Button>

			<!-- Button to load Druid flight paths -->
			<Button name="$parent_LoadDruid" inherits="efmButton" text="EFM_GUITEXT_LoadDruid">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_LoadAlliance" relativePoint="TOPRIGHT">
					</Anchor>
				</Anchors>			
			</Button>

			<!-- Button to load Horde flight paths -->
			<Button name="$parent_LoadHorde" inherits="efmButton" text="EFM_GUITEXT_LoadHorde">
				<Size>
					<AbsDimension x="100" y="25"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_LoadDruid" relativePoint="TOPRIGHT">
					</Anchor>
				</Anchors>			
			</Button>


			<!-- Close Options Screen Button -->
			<Button name="$parent_Done" inherits="efmButton" text="EFM_GUITEXT_Done">
				<Anchors>
					<Anchor point="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="20" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>			
			</Button>

			<!-- Set options to Defaults -->
			<Button name="$parent_Defaults" inherits="efmButton" text="EFM_GUITEXT_Defaults">
				<Anchors>
					<Anchor point="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-20" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>			
			</Button>
		</Frames>
	</Frame>
</Ui>
