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

	<Frame name="LVBossModDropDownFrame" inherits="UIDropDownMenuTemplate" id="1" hidden="true">
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
	</Frame>

	<Button name="LVBMBossModFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PanelTemplates_Tab_OnClick(LVBMBossModFrame);
				LVBMBossModFrame.selectedBossMod = 0;
				LVBMBossModFrame.showPage = 1;
				LVBMBossModFrame_OnShow();
			</OnClick>
			<OnEnter>
				if(    getglobal("LVBMGUI_FRAMETAB_"..this:GetID().."_TT") ~= nil 
				   and getglobal("LVBMGUI_FRAMETAB_"..this:GetID().."_TD") ~= nil ) then

					GameTooltip_AddNewbieTip(getglobal("LVBMGUI_FRAMETAB_"..this:GetID().."_TT"), 1.0, 1.0, 1.0, getglobal("LVBMGUI_FRAMETAB_"..this:GetID().."_TD"), 1);
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
	</Button>

	<Button name="LVBMOptionsFrameTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				PanelTemplates_Tab_OnClick(LVBMOptionsFrame);
				LVBMOptionsFrame_OnShow();
			</OnClick>
		</Scripts>
	</Button>

	<Button name="LVBMBossModFrameButtonTemplate" virtual="true">
		<Size>
			<AbsDimension x="298" y="30"/>
		</Size>
		<Frames>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentBossMod" inherits="GameFontNormal">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentAuthor" inherits="GameFontDisableSmall">
							<Anchors>
								<Anchor point="TOPRIGHT">
									<Offset>
										<AbsDimension x="-10" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentDescription" inherits="GameFontHighlightSmall" justifyH="LEFT">
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentBossMod" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				LVBMBossModButton_OnClick(arg1);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
			<OnEnter>
				GameTooltip_AddNewbieTip( getglobal(this:GetName().."TTText"), 1.0, 1.0, 1.0, getglobal(this:GetName().."TTDesc"), 1);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>

	<EditBox name="LVBMBossModFrameEditBoxTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
					<Size>
						<AbsDimension x="75" y="32"></AbsDimension>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-14" y="0"></AbsDimension>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.2" top="0" bottom="1.0"></TexCoords>
				</Texture>
				<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
					<Size>
						<AbsDimension x="75" y="32"></AbsDimension>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="6" y="0"></AbsDimension>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.7" right="1.0" top="0" bottom="1.0"></TexCoords>
				</Texture>
			</Layer>
		</Layers>
		<FontString inherits="ChatFontNormal"></FontString>
	</EditBox>

	<EditBox name="LVBMBossModFrameEditBoxTemplateSmall" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left">
					<Size>
						<AbsDimension x="40" y="32"></AbsDimension>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-14" y="0"></AbsDimension>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.2" top="0" bottom="1.0"></TexCoords>
				</Texture>
				<Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right">
					<Size>
						<AbsDimension x="40" y="32"></AbsDimension>
					</Size>
					<Anchors>
						<Anchor point="RIGHT">
							<Offset>
								<AbsDimension x="6" y="0"></AbsDimension>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0.7" right="1.0" top="0" bottom="1.0"></TexCoords>
				</Texture>
			</Layer>
		</Layers>
		<FontString inherits="ChatFontNormal"></FontString>
	</EditBox>

	<Slider name="LVBMSliderTemplate" virtual="true" enableMouse="true" orientation="HORIZONTAL">
		<Size>
			<AbsDimension x="190" y="20"/>
		</Size>
		<Backdrop bgFile="Interface\Buttons\UI-SliderBar-Background" edgeFile="Interface\Buttons\UI-SliderBar-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="3" right="3" top="6" bottom="6" />
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="8" />
			</TileSize>
			<EdgeSize>
				<AbsValue val="8" />
			</EdgeSize>
		</Backdrop>
		<ThumbTexture name="$parentThumb" file="Interface\Buttons\UI-SliderBar-Button-Horizontal">
			<Size>
				<AbsDimension x="32" y="32" />
			</Size>
		</ThumbTexture>
		<Layers>
			<Layer>
				<FontString name="$parentTitle" inherits="GameFontNormalSmall" text="Title Text">
					<Anchors>
						<Anchor point="RIGHT" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="-10" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="10" />
					</FontHeight>
				</FontString>
				<FontString name="$parentValue" inherits="GameFontNormalSmall" text="Value Text">
							<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="10" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
					<FontHeight>
						<AbsValue val="10" />
					</FontHeight>
				</FontString>
			</Layer>
		</Layers>
	</Slider>

	<!-- 
		The next few Frames are needed for the INFO FRAME 
	-->
	<Frame name="LVBMInfoFrameTrash" hidden="true" frameStrata="BACKGROUND" parent="UIParent">
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Size>
			<AbsDimension x="1" y="1"/>
		</Size>
	</Frame>
	

	<Frame name="LVBMInfoFrameTemplate" hidden="true" movable="true" parent="UIParent" virtual="true">
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Size>
			<AbsDimension x="100" y="50"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentTitle" inherits="GameFontNormal" text="NO TITLE">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-5"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				<FontString name="$parentText" inherits="ChatFontNormal" text="NO TEXT">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="-20"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" setAllPoints="true" 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>
				this.elapsed = 0;
				this.myWidth = this:GetWidth();
				this.myHeight = this:GetHeight();
			</OnLoad>
			<OnMouseDown>
				if ( arg1 == "RightButton" and IsShiftKeyDown() ) then
					this:Hide();
				elseif ( arg1 == "RightButton" ) then
					this:StartMoving();
				end
			</OnMouseDown>
			<OnMouseUp>
				if ( arg1 == "RightButton" ) then
					this:StopMovingOrSizing();
					if( LVBMDistanceFrame ~= nil and this == LVBMDistanceFrame:GetObject()) then
						local _, _, _, xOfs, yOfs = this:GetPoint()
						LVBM.Options.Gui.DistanceFramePointX = xOfs;
						LVBM.Options.Gui.DistanceFramePointY = yOfs;
					else
						local _, _, _, xOfs, yOfs = this:GetPoint()
						LVBM.Options.Gui.InfoFramePointX = xOfs;
						LVBM.Options.Gui.InfoFramePointY = yOfs;
					end
				end
			</OnMouseUp>
			<OnEnter>
				GameTooltip_AddNewbieTip(LVBMGUI_INFOFRAME_TOOLTIP_TITLE, 1.0, 1.0, 1.0, LVBMGUI_INFOFRAME_TOOLTIP_TEXT, 1);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnHide>
				this:StopMovingOrSizing();
			</OnHide>
			<OnUpdate>
				LVBM_InfoFrameTemplate_OnUpdate(this, arg1);
			</OnUpdate>
			<OnShow>
				LVBM_InfoFrameTemplate_OnUpdate(this, 0, true);
			</OnShow>
		</Scripts>
	</Frame>

	<Frame name="LVBMInfoFrameTemplateTextField" virtual="true">
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Size>
			<AbsDimension x="100" y="16"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="ChatFontNormal" text="NO TEXT">
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				LVBM_InfoFrameTemplate_OnUpdate(this:GetParent(), 0, true);
			</OnShow>
		</Scripts>
	</Frame>

	<StatusBar name="LVBMInfoFrameTemplateBar" virtual="true">
		<Size>
			<AbsDimension x="100" y="16"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentText" inherits="GameFontNormalSmall" text="Bar">
					<Size>
						<AbsDimension x="100" y="11"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnShow>
				LVBM_InfoFrameTemplate_OnUpdate(this:GetParent(), 0, true);
			</OnShow>
		</Scripts>
	</StatusBar>

</Ui>


