<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="DiscordLib_TooltipBackdropTemplate" hidden="false" frameStrata="BACKGROUND" virtual="true">
	<Backdrop bgFile="Interface\AddOns\DiscordLibrary\PlainBackdrop" 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>

<Frame name="DiscordLib_GlueTooltipBackdropTemplate" hidden="false" frameStrata="BACKGROUND" virtual="true">
	<Backdrop bgFile="Interface\Glues\Common\Glue-Tooltip-Background" edgeFile="Interface\Glues\Common\Glue-Tooltip-Border" tile="true">
		<BackgroundInsets>
			<AbsInset left="10" right="5" top="4" bottom="9"/>
		</BackgroundInsets>
		<TileSize>
			<AbsValue val="16"/>
		</TileSize>
		<EdgeSize>
			<AbsValue val="16"/>
		</EdgeSize>
	</Backdrop>
</Frame>

<Frame name="DiscordLib_DialogueBackdropTemplate" hidden="false" frameStrata="BACKGROUND" virtual="true">
	<Backdrop bgFile="Interface\AddOns\DiscordLibrary\PlainBackdrop" 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>
</Frame>

<Frame name="DiscordLib_SliderBackdropTemplate" hidden="false" frameStrata="BACKGROUND" virtual="true">
	<Backdrop bgFile="Interface\AddOns\DiscordLibrary\PlainBackdrop" 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>
</Frame>

<Frame name="DiscordLib_PlainBackgroundTemplate" hidden="false" frameStrata="BACKGROUND" virtual="true">
	<Backdrop bgFile="Interface\AddOns\DiscordLibrary\PlainBackdrop" edgeFile="Interface\AddOns\DiscordLibrary\PlainBackdrop" tile="false">
			<EdgeSize>
				<AbsValue val="1"/>
			</EdgeSize>
			<BackgroundInsets>
				<AbsInset left="1" right="1" top="1" bottom="1"/>
			</BackgroundInsets>
		</Backdrop>
</Frame>

<Frame name="DiscordLib_OptionsTemplate" frameStrata="MEDIUM"  parent="UIParent" movable="true" virtual="true">
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
	<Backdrop bgFile="Interface\AddOns\DiscordLibrary\meatbg" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
		<BackgroundInsets>
			<AbsInset left="11" right="12" top="12" bottom="11"/>
		</BackgroundInsets>
		<TileSize>
			<AbsValue val="128"/>
		</TileSize>
		<EdgeSize>
			<AbsValue val="32"/>
		</EdgeSize>
	</Backdrop>
	<Frames>
		<Button name="$parent_TitleFrame" inherits="DiscordLib_DialogueBackdropTemplate" hidden="false" frameStrata="MEDIUM">
			<Size><AbsDimension x="194" y="65"/></Size>
			<Anchors>
				<Anchor point="BOTTOM" relativeTo="$parent" relativePoint="TOP">
					<Offset><AbsDimension x="0" y="-16"/></Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">
					<Texture name="$parent_Title" hidden="false">
						<Size><AbsDimension x="220" y="220"/></Size>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
					</Texture>
				</Layer>
				<Layer level="OVERLAY">
					<FontString name="$parent_Version" inherits="GameFontNormal">
						<Color r="1.0" g="1.0" b="0.0"/>
						<Anchors>
							<Anchor point="BOTTOM">
								<Offset><AbsDimension x="0" y="11"/></Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Scripts>
				<OnLoad>
					this:SetBackdropBorderColor(1, 0, 0);
					this:SetBackdropColor(0, 0, 0, 0);
					this:RegisterForDrag("LeftButton", "RightButton");
				</OnLoad>
				<OnDragStart>
					this:GetParent():StartMoving();
				</OnDragStart>
				<OnDragStop>
					this:GetParent():StopMovingOrSizing();
				</OnDragStop>
			</Scripts>
		</Button>
		<Button name="$parent_Texture1" hidden="false" frameStrata="LOW">
			<Size><AbsDimension x="100" y="100"/></Size>
			<Anchors>
				<Anchor point="CENTER" relativeTo="$parent_TitleFrame" relativePoint="TOPLEFT">
					<Offset><AbsDimension x="15" y="-25"/></Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="OVERLAY">
					<Texture name="$parent_Texture" file="Interface\AddOns\DiscordLibrary\Elite">
						<Anchors>
							<Anchor point="TOPLEFT"/>
							<Anchor point="BOTTOMRIGHT"/>
						</Anchors>
					</Texture>
				</Layer>
			</Layers>
		</Button>
		<Button name="$parent_Texture2" hidden="false" frameStrata="LOW">
			<Size><AbsDimension x="100" y="100"/></Size>
			<Anchors>
				<Anchor point="CENTER" relativeTo="$parent_TitleFrame" relativePoint="TOPRIGHT">
					<Offset><AbsDimension x="-15" y="-25"/></Offset>
				</Anchor>
			</Anchors>
			<Layers>
				<Layer level="OVERLAY">
					<Texture name="$parent_Texture" file="Interface\AddOns\DiscordLibrary\EliteLeft">
						<Anchors>
							<Anchor point="TOPLEFT"/>
							<Anchor point="BOTTOMRIGHT"/>
						</Anchors>
					</Texture>
				</Layer>
			</Layers>
		</Button>
	</Frames>
	<Scripts>
		<OnLoad>
			this:SetBackdropBorderColor(1, 0, 0);
			this:SetBackdropColor(.3, .3, .3);
			this:RegisterForDrag("LeftButton", "RightButton");
		</OnLoad>
		<OnDragStart>
			this:StartMoving();
		</OnDragStart>
		<OnDragStop>
			this:StopMovingOrSizing();
		</OnDragStop>
	</Scripts>
</Frame>

<Button name="DiscordLib_CloseButtonTemplate" hidden="false" virtual="true">
	<Size><AbsDimension x="42" y="42"/></Size>
	<Anchors>
		<Anchor point="TOPRIGHT">
			<Offset><AbsDimension x="-2" y="-2"/></Offset>
		</Anchor>
	</Anchors>
	<NormalTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Up"/>
	<PushedTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Down"/>
	<HighlightTexture file="Interface\Buttons\UI-Panel-MinimizeButton-Highlight" alphaMode="ADD"/>
</Button>

</Ui>