<Ui xmlns="http://www.blizzard.com/wow/ui/">

	<Frame name="GooeyFrame" virtual="true">
		<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<BorderColor r="0.6" g="0.6" b="0.6"/>
		</Backdrop>
		
		<Layers>
			<Layer level ="BACKGROUND">
				<Texture file="Interface\ChatFrame\ChatFrameBackground">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="4" y="-4"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-4" y="4"/>
						</Anchor>
					</Anchors>

					<Gradient orientation="VERTICAL">
						<MinColor r="0" g="0" b="0"/>
						<MaxColor r="0.2" g="0.2" b="0.2"/>
					</Gradient>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	
	<Frame name="GooeyComponent" virtual="true">
		<Backdrop edgeFile="Interface\Tooltips\UI-Tooltip-Border">
			<BackgroundInsets>
				<AbsInset left="2" right="2" top="2" bottom="2"/>
			</BackgroundInsets>
			<EdgeSize>
				<AbsValue val="16"/>
			</EdgeSize>
			<BorderColor r="0.6" g="0.6" b="0.6"/>
		</Backdrop>

		<Layers>
			<Layer level ="BACKGROUND">
				<Texture file="Interface\ChatFrame\ChatFrameBackground">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="4" y="-4"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-4" y="4"/>
						</Anchor>
					</Anchors>
					<Gradient orientation="VERTICAL">
						<MinColor r="0" g="0" b="0" a="0.9"/>
						<MaxColor r="0.2" g="0.2" b="0.2" a="0.9"/>
					</Gradient>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	
	<Frame name="GooeyPopup" inherits="GooeyComponent" clampedToScreen="true" toplevel="true" parent="UIParent" frameStrata="DIALOG" hidden="true" virtual="true"/>
	
	<EditBox name="GooeyEditBox" inherits="GooeyComponent" autoFocus="false" virtual="true">
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentText" font="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="LEFT">
							<Offset x="6" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>

			<Layer level ="BACKGROUND">
				<Texture file="Interface\ChatFrame\ChatFrameBackground">
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset x="4" y="-4"/>
						</Anchor>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-4" y="4"/>
						</Anchor>
					</Anchors>
					<Gradient orientation="VERTICAL">
						<MinColor r="0" g="0" b="0" a="0.9"/>
						<MaxColor r="0.2" g="0.2" b="0.2" a="0.9"/>
					</Gradient>
				</Texture>
			</Layer>
		</Layers>

		<Scripts>
			<OnLoad>
				this:SetTextInsets(6, 4, 0, 0)
			</OnLoad>
			<OnEscapePressed>
				this:ClearFocus()
			</OnEscapePressed>
			<OnEditFocusLost>
				this:HighlightText()
			</OnEditFocusLost>
		</Scripts>

		<FontString font="GameFontHighlightSmall"/>
	</EditBox>
	
	<Slider name="GooeySlider" inherits="OptionsSliderTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString name="$parentValText" inherits="GameFontNormalSmall">
					<Anchors>
						<Anchor point="BOTTOM">
							<Offset x="0" y="-6"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Slider>
	
	<Button name="GooeyButton" inherits="UIPanelButtonTemplate" virtual="true"/>
	
	<CheckButton name="GooeyCheckButton" virtual="true">
		<Size x="32" y="32"/>
		
		<ButtonText name="$parentText" inherits="GameFontNormalSmall">
			<Anchors>
				<Anchor point="LEFT" relativePoint="RIGHT">
					<Offset x="-2" y="0"/>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont font="GameFontNormalSmall"/>
	
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
	</CheckButton>

	<Button name="GooeyColorPicker" virtual="true">
		<Size x="32" y="32"/>

		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentSwatchBackground">
					<Size x="24" y="24"/>

					<Anchors>
						<Anchor point="LEFT"/>
					</Anchors>

					<Color r="0.5" g="0.5" b="0.5"/>
				</Texture>
			</Layer>
		</Layers>

		<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\ChatFrameColorSwatch">
			<Size x="30" y="30"/>

			<Anchors>
				<Anchor point="LEFT">
					<Offset x="-3" y="0"/>
				</Anchor>
			</Anchors>
		</NormalTexture>

		<ButtonText>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentNormalTexture" relativePoint="RIGHT">
					<Offset x="-2" y="0"/>
				</Anchor>
			</Anchors>
		</ButtonText>
		<NormalFont font="GameFontNormalSmall" justifyH="RIGHT"/>
		<HighlightFont font="GameFontHighlightSmall" justifyH="RIGHT"/>

		<Scripts>
			<OnLoad>
				this:RegisterForClicks("anyUp")
			</OnLoad>
			<OnHide>
				this:UnlockHighlight()
			</OnHide>
		</Scripts>
	</Button>
	
	<Frame name="GooeyDropDown" inherits="UIDropDownMenuTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<FontString name="$parentLabel" font="GameFontNormalSmall">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT">
							<Offset x="-12" y="0"/>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
</Ui>