<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="EzDismount.lua" />
   <Frame name="EzDismount_core">

   <Scripts>

      <OnLoad>
         this:RegisterEvent("VARIABLES_LOADED");
         this:RegisterEvent("AUCTION_HOUSE_SHOW");
         this:RegisterEvent("UI_ERROR_MESSAGE");
         this:RegisterEvent("TAXIMAP_OPENED");
      </OnLoad>

      <OnEvent>
         if (event == "VARIABLES_LOADED") then EzDismount_onload(); end
         if (event == "AUCTION_HOUSE_SHOW") then EzDismount_chkerror("**AUCTION**"); end
         if (event == "UI_ERROR_MESSAGE") then EzDismount_chkerror(arg1); end
         if (event == "TAXIMAP_OPENED") then EzDismount_chkerror("**TAXI**"); end
      </OnEvent>

    </Scripts>
    </Frame>

    <CheckButton name="EzDCheckButtonTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
		<HitRectInsets>
			<AbsInset left="0" right="0" top="0" bottom="0"/>
		</HitRectInsets>
    </CheckButton>

   <Frame name="EzDismount_Menu" toplevel="true" frameStrata="MEDIUM" movable="true" enableMouse="true" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="435" y="455"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<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"/>
				<Size>
					<AbsDimension x="128" y="17"/>
				</Size>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>

		<Layers>
			<Layer level="ARTWORK">
				<Texture name="EzDismountFrameTitle" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="375" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString inherits="GameFontNormal" text="EzDismount_fullver">
					<Anchors>
						<Anchor point="TOP" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="0" y="-3"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>


				<!-- Sit or stand Lines -->

				<FontString name="EzDismount_Text_Status" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-49"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Status_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-49"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Status_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-49"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Stand" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-99"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Stand_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-99"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Stand_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-99"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

                                <FontString name="EzDismount_Text_Auction" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-129"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Auction_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-129"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Auction_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-129"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<!-- Shaman -->

                                <FontString name="EZDismount_ShamanTitle" inherits="GameFontNormal" text=" - Shaman Only -">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="145" y="-170"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="EzDismount_Text_Shaman" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-189"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Shaman_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-189"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Shaman_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-189"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

            <!-- Druids -->

				<FontString name="EZDismount_DruidTitle" inherits="GameFontNormal" text=" - Druid Only -">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="156" y="-230"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Druid" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-249"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Druid_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-249"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Druid_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-249"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

            <!-- Priest -->

                                <FontString name="EZDismount_PriestTitle" inherits="GameFontNormal" text=" - Priest Only -">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="156" y="-305"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

                                <FontString name="EzDismount_Text_Shadowform" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="115" y="-325"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="EzDismount_Text_Shadowform_VOFF" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="340" y="-325"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="EzDismount_Text_Shadowform_VON" inherits="GameFontNormal" text="">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="375" y="-325"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>


            <!-- Close button -->


				<FontString name="EZDismount_DetPlayer" inherits="GameFontNormalSmall" text="">
					<Anchors>
					<Anchor point="BOTTOM" relitiveTo="EzDismount_Menu">
						<Offset>
							<AbsDimension x="0" y="13" />
						</Offset>
					</Anchor>
					</Anchors>
				</FontString>
				
				<FontString name="EzDismount_Text_US" inherits="GameFontNormalSmall" text="Link unshifting to dismounting">
					<Anchors>
						<Anchor point="BOTTOM" relitiveTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="19" y="370"/>
							</Offset>
						</Anchor>
					</Anchors>
			        </FontString>
				
				<FontString name="EzDismount_Text_MoonCB" inherits="GameFontNormalSmall" text="Exclude Moonkin">
					<Anchors>
						<Anchor point="BOTTOM" relitiveTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="-18" y="172"/>
							</Offset>
						</Anchor>
					</Anchors>
			        </FontString>
			        
			        <FontString name="EzDismount_Text_TreeCB" inherits="GameFontNormalSmall" text="Exclude Tree Form">
					<Anchors>
						<Anchor point="BOTTOM" relitiveTo="EzDismount_Menu">
							<Offset>
								<AbsDimension x="114" y="172"/>
							</Offset>
						</Anchor>
					</Anchors>
			        </FontString>

			</Layer>
		</Layers>


		<Frames>



			<Button name="EzDismount_Close" inherits="GameMenuButtonTemplate" text="CLOSE">
				<Anchors>
					<Anchor point="CENTER" relativePoint="BOTTOM" relitiveTo="EzDismount_Menu">
						<Offset>
							<AbsDimension x="0" y="40" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_Menu:Hide();
					</OnClick>
				</Scripts>
			</Button>

			<!-- Add Buttons Here -->

			<Button name="EzDismount_Button1" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-46"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("on/off");
					</OnClick>
				</Scripts>
			</Button>


			<Button name="EzDismount_Button1b" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-96"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("stand");
					</OnClick>
				</Scripts>
			</Button>
                        
                        <Button name="EzDismount_Button1c" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-126"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("auction");
					</OnClick>
				</Scripts>
			</Button>

			<Button name="EzDismount_Button2" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-186"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("wolf");
					</OnClick>
				</Scripts>
			</Button>

			<Button name="EzDismount_Button3" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-246"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("druid");
					</OnClick>
				</Scripts>
			</Button>
                        
                        <Button name="EzDismount_Button5" inherits="OptionsButtonTemplate" text="Toggle">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="-322"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_ChgValue("shadowform");
					</OnClick>
				</Scripts>
			</Button>
			
			<Button name="EzDismount_Button6" inherits="OptionsButtonTemplate" text="Print Help">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="75" y="-370"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_help();
					</OnClick>
				</Scripts>
			</Button>
			
			<Button name="EzDismount_Button7" inherits="OptionsButtonTemplate" text="Print Debug">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="270" y="-370"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EzDismount_debug();
					</OnClick>
				</Scripts>
			</Button>
			
			<CheckButton name="EzDismount_US" inherits="EzDCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EzDismount_Text_Status" >
						<Offset>
							<AbsDimension x="10" y="-15" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
					         PlaySound("igMainMenuOptionCheckBoxOn");
					         EzD_checkshift();
					</OnClick>
					<OnLoad>
					</OnLoad>
					<OnShow>
					</OnShow>
				</Scripts>
			</CheckButton>
			
			<CheckButton name="EzDismount_CB1" inherits="EzDCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EzDismount_Text_Druid" >
						<Offset>
							<AbsDimension x="10" y="-15" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
					         PlaySound("igMainMenuOptionCheckBoxOn");
					         EzD_checkmoon();
					</OnClick>
					<OnLoad>
					</OnLoad>
					<OnShow>
					</OnShow>
				</Scripts>
			</CheckButton>

                        <CheckButton name="EzDismount_CB2" inherits="EzDCheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EzDismount_Text_Druid" >
						<Offset>
							<AbsDimension x="140" y="-15" />
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
					         PlaySound("igMainMenuOptionCheckBoxOn");
					         EzD_checktree();
					</OnClick>
					<OnLoad>
					</OnLoad>
					<OnShow>
					</OnShow>
				</Scripts>
			</CheckButton>


			</Frames>

		<Scripts>
			<OnShow>
				EzDismount_Refresh();
			</OnShow>
         <OnMouseDown>
            this:StartMoving();
         </OnMouseDown>
         <OnMouseUp>
            this:StopMovingOrSizing();
         </OnMouseUp>
		</Scripts>
	</Frame>

</Ui>
