<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">
	<Script file="SavedOutfits.lua"/>

	<Button name="BetterWardrobeOutfitButtonButtonTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				self:GetParent():GetParent():StopHideCountDown();
				self.texture:SetAlpha(1.0);
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				GameTooltip:SetText(self.tooltipText);
			</OnEnter>
			<OnLeave>
				self:GetParent():GetParent():StartHideCountDown();
				self.texture:SetAlpha(0.5);
				GameTooltip_Hide();
			</OnLeave>
			<OnMouseDown>
				self.texture:SetPoint("TOPLEFT", 1, -1);
			</OnMouseDown>
			<OnMouseUp>
				self.texture:SetPoint("TOPLEFT", 0, 0);
			</OnMouseUp>
			<OnShow>
				self.texture:SetPoint("TOPLEFT", 0, 0);
			</OnShow>
		</Scripts>
	</Button>

	<DropdownButton name="BetterWardrobeOutfitDropDownTemplate" inherits="WowStyle1DropdownTemplate" virtual="true" mixin="BetterWardrobeOutfitDropdownMixin">
		<Frames>
			<Button parentKey="SaveButton" inherits="UIPanelButtonTemplate" text="SAVE">
				<Size x="88" y="22"/>
				<Anchors>
					<Anchor point="LEFT" relativePoint="RIGHT" x="5" y="0"/>
				</Anchors>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnEvent method="OnEvent"/>
			<OnShow method="OnShow"/>
			<OnHide method="OnHide"/>
		</Scripts>
	</DropdownButton>

	<Frame name="BetterWardrobeOutfitFrame" frameStrata="DIALOG" parent="UIParent" hidden="true" enableMouse="true" mixin="BetterWardrobeOutfitManager"   >
		<Size x="224" y="200"/>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Frames>
			<Frame parentKey="Border" inherits="DialogBorderDarkTemplate"/>
		</Frames>
		<Scripts>
		</Scripts>
	</Frame>

	<Frame name="BetterWardrobeOutfitEditFrame" parent="UIParent" hidden="true" frameStrata="DIALOG"  mixin="BetterWardrobeOutfitEditFrameMixin" >
		<Size x="320" y="174"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Title" inherits="GameFontHighlight" text="TRANSMOG_OUTFIT_NAME">
					<Anchors>
						<Anchor point="TOP" x="0" y="-20"/>
					</Anchors>
				</FontString>
				<Texture parentKey="Separator">
					<Size x="276" y="1"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="-127"/>
					</Anchors>
					<Color r="1" g="1" b="1" a="0.14"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Border" inherits="DialogBorderTemplate"/>
			<EditBox parentKey="EditBox" historyLines="1" letters="31">
				<Size x="260" y="32"/>
				<Anchors>
					<Anchor point="TOP" x="0" y="-40"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="LeftTexture" file="Interface\ChatFrame\UI-ChatInputBorder-Left2">
							<Size x="32" y="32"/>
							<Anchors>
								<Anchor point="LEFT" x="-10" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="RightTexture" file="Interface\ChatFrame\UI-ChatInputBorder-Right2">
							<Size x="32" y="32"/>
							<Anchors>
								<Anchor point="RIGHT" x="10" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="MiddleTexture" file="Interface\ChatFrame\UI-ChatInputBorder-Mid2" horizTile="true">
							<Size x="0" y="32"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.LeftTexture" relativePoint="TOPRIGHT"/>
								<Anchor point="TOPRIGHT" relativeKey="$parent.RightTexture" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnterPressed>
						self:GetParent():OnAccept();
					</OnEnterPressed>
					<OnEscapePressed>
						StaticPopupSpecial_Hide(self:GetParent());
					</OnEscapePressed>
					<OnTextChanged>
						if ( self:GetText() == "" ) then
							self:GetParent().AcceptButton:Disable();
						else
							self:GetParent().AcceptButton:Enable();
						end
					</OnTextChanged>
				</Scripts>
				<FontString inherits="ChatFontNormal"/>
			</EditBox>
			<Button parentKey="AcceptButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
				<Size x="120" y="22"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="33" y="-80"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
						self:GetParent():OnAccept();
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="CancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size x="120" y="22"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-33" y="-80"/>
				</Anchors>
				<Scripts>
					<OnClick>
						StaticPopupSpecial_Hide(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="DeleteButton" inherits="UIPanelButtonTemplate" text="TRANSMOG_OUTFIT_DELETE">
				<Size x="120" y="22"/>
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="17"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
						self:GetParent():OnDelete();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self.exclusive = true;
				self.hideOnEscape = true;
				self.DeleteButton:SetWidth(self.DeleteButton:GetTextWidth() + 50);
			</OnLoad>
			<OnHide>
				PlaySound(SOUNDKIT.IG_MAINMENU_CLOSE);
			</OnHide>
		</Scripts>
	</Frame>

	<Frame name="BetterWardrobeOutfitCheckAppearancesFrameTemplate" inherits="LoadingSpinnerTemplate" hidden="true" mixin="BetterWardrobeOutfitCheckAppearancesMixin" virtual="true">
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnShow method="OnShow"/>
			<OnHide method="OnHide"/>
			<OnEvent method="OnEvent"/>
		</Scripts>
	</Frame>



	
</Ui>