<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="Wardrobe.lua"/>

	<Button name="BW_PanelTopTabButtonTemplate" inherits="PanelTabButtonTemplate" mixin="PanelTopTabButtonMixin" virtual="true"/>

	<DressUpModel name="BetterWardrobeItemsModelTemplate" mixin="BetterWardrobeItemsModelMixin" inherits="ContentTrackingElementTemplate" virtual="true">

		<Size x="78" y="104"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture setAllPoints="true">
					<Color r="0" g="0" b="0"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="-1">
				<Texture parentKey="Border" atlas="transmog-wardrobe-border-collected" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" x="0" y="-3"/>
					</Anchors>
				</Texture>
			</Layer>
				<Layer level="OVERLAY">
					<Texture parentKey="DisabledOverlay" atlas="transmog-wardrobe-border-selected" hidden="true" hWrapMode="CLAMPTOBLACKADDITIVE" vWrapMode="CLAMPTOBLACKADDITIVE">
					<Color a="0.8"/>
					<Size x="96" y="124"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="TransmogStateTexture" atlas="transmog-wardrobe-border-selected" useAtlasSize="true" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
				<Texture parentKey="SlotInvalidTexture" atlas="transmog-icon-unsupported" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="1">
				<FontString parentKey="NewString" inherits="GameFontHighlight" maxLines="1" justifyH="CENTER" text="NEW_CAPS" hidden="true">
					<Shadow>
						 <Color color="NEW_FEATURE_SHADOW_COLOR"/>
					</Shadow>
					<Anchors>
						<Anchor point="TOP" x="0" y="8"/>
					</Anchors>
				</FontString>
				<Texture parentKey="NewGlow" atlas="collections-newglow" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.NewString" x="-20" y="10"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.NewString" x="20" y="-10"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture atlas="transmog-wardrobe-border-highlighted" alphaMode="ADD" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>			
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Favorite" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="collections-icon-favorites" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="HideVisual" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="transmog-icon-hidden" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame inherits="BetterWardrobeSetInfoTemplate" hidden="false"/>
			<Frame inherits="BetterWardrobeIconsTemplate" hidden="false"/>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnModelLoaded method="OnModelLoaded"/>
			<OnMouseDown method="OnMouseDown"/>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
			<OnShow method="OnShow"/>
		</Scripts>
	</DressUpModel>

	<DressUpModel name="BetterWardrobeSetsTransmogModelTemplate" mixin="BetterWardrobeSetsTransmogModelMixin" virtual="true">
		<Size x="129" y="186"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture setAllPoints="true">
					<Color r="0" g="0" b="0"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="-1">
				<Texture parentKey="Border" atlas="transmog-set-border-collected" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" x="0" y="-6"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="TransmogStateTexture" atlas="transmog-set-border-selected" useAtlasSize="true" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture atlas="transmog-set-border-highlighted" alphaMode="ADD" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Favorite" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="collections-icon-favorites" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame inherits="BetterWardrobeSetInfoTemplate"/>
			<Frame inherits="BetterWardrobeIconsTemplate"/>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnEvent method="OnEvent"/>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
			<OnHide method="OnHide"/>
			<OnMouseDown method="OnMouseDown"/>
			<OnModelLoaded method="OnModelLoaded"/>
		</Scripts>
	</DressUpModel>

	<Button name="BetterWardrobeSlotButtonTemplate" parentArray="Buttons" mixin="BetterWardrobeItemsCollectionSlotButtonMixin" virtual="true">
		<KeyValues>
			<KeyValue key="transmogType" value="Enum.TransmogType.Appearance" type="global"/>
			<KeyValue key="modification" value="Enum.TransmogModification.Main" type="global"/>
		</KeyValues>
		<Size x="31" y="31"/>
		<NormalTexture parentKey="NormalTexture">
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</NormalTexture>
		<HighlightTexture parentKey="Highlight" atlas="bags-roundhighlight" alphaMode="ADD" hidden="true">
			<Size x="31" y="31"/>
			<Anchors>
				<Anchor point="CENTER" x="0" y="1"/>
			</Anchors>
		</HighlightTexture>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="SelectedTexture" atlas="transmog-nav-slot-selected" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick method="OnClick"/>
			<OnEnter method="OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
	<Button name="BetterWardrobeSmallSlotButtonTemplate" parentArray="Buttons" mixin="BetterWardrobeItemsCollectionSlotButtonMixin" frameLevel="75" virtual="true">
		<KeyValues>
			<KeyValue key="isSmallButton" value="true" type="boolean"/>
		</KeyValues>
		<Size x="25" y="25"/>
		<NormalTexture parentKey="NormalTexture" atlas="transmog-nav-slot-enchant" useAtlasSize="true">
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</NormalTexture>
		<HighlightTexture parentKey="Highlight" atlas="bags-roundhighlight" alphaMode="ADD" hidden="true">
			<Size x="21" y="21"/>
			<Anchors>
				<Anchor point="CENTER" x="0" y="2"/>
			</Anchors>
		</HighlightTexture>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="SelectedTexture" atlas="transmog-nav-slot-selected-small" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick method="OnClick"/>
			<OnEnter method="OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>

	<Button name="BetterWardrobeSetsScrollFrameButtonTemplate" mixin="BetterWardrobeSetsScrollFrameButtonMixin" registerForClicks="LeftButtonUp,RightButtonUp" virtual="true">
		<Size x="208" y="46"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture atlas="PetList-ButtonBackground" parentKey="Background"/>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon">
					<Size x="38" y="38"/>
					<Anchors>
						<Anchor point="LEFT" x="-42" y="0"/>
					</Anchors>
				</Texture>
				<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT" maxLines="2">
					<Size x="190" y="0"/>
					<Anchors>
						<Anchor point="LEFT" x="6" y="6"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Label" inherits="GameFontDisableSmallLeft" justifyH="LEFT" maxLines="1">
					<Size x="190" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Name" relativePoint="BOTTOMLEFT" x="0" y="-2"/>
					</Anchors>
					<Color r="0.329" g="0.329" b="0.329"/>
				</FontString>
				<Texture parentKey="ProgressBar">
					<Size x="204" y="2"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Background" relativePoint="BOTTOMLEFT" x="2" y="4"/>
					</Anchors>
					<Color r="0.0118" g="0.247" b="0.00392" a="1"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="-1">
				<Texture parentKey="IconCover">
					<Size x="38" y="38"/>
					<Anchors>
						<Anchor point="LEFT" x="-42" y="0"/>
					</Anchors>
					<Color r="0" g="0" b="0" a="0.7"/>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="SelectedTexture" atlas="PetList-ButtonSelect" hidden="true"/>
				<Texture parentKey="Favorite" atlas="PetJournal-FavoritesIcon" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Icon" x="-8" y="8"/>
					</Anchors>
				</Texture>
				<Texture parentKey="New" atlas="GarrMission-AbilityHighlight" alphaMode="ADD" hidden="true">
					<Size x="56" y="56"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Icon"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture parentKey="HighlightTexture" atlas="PetList-ButtonHighlight" setAllPoints="true"/>
			</Layer>
		</Layers>
		<Frames>
			<Frame inherits="BetterWardrobeIconsTemplate" />
			<Button parentKey="EditButton" inherits="BetterWardrobeOutfitButtonButtonTemplate">
				<KeyValues>
					<KeyValue key="tooltipText" value="Options" type="string"/>
				</KeyValues>
				<Size x="16" y="16"/>
				<Anchors>
					<Anchor point="RIGHT" x="-2"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture file="Interface\WorldMap\GEAR_64GREY" alpha="0.5" parentKey="texture"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						local name = self:GetParent().Name:GetText()
						--print(self:GetParent().setID)
						PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
						BetterWardrobeOutfitEditFrame:ShowForOutfit_CollectionJournal(self:GetParent().setID, name, self);
					</OnClick>

					<OnEnter>
						self.texture:SetAlpha(1.0);
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(self.tooltipText);
					</OnEnter>
					<OnLeave>
						self.texture:SetAlpha(0.5);
						GameTooltip_Hide();
					</OnLeave>

				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnClick method="OnClick"/>
			<OnLoad>
				self.CollectionListVisual.Hidden:ClearAllPoints()
				self.CollectionListVisual.Hidden:SetPoint("CENTER", self.Icon, "CENTER", 0, 0)
				self.CollectionListVisual.Collection:ClearAllPoints()
				self.CollectionListVisual.Collection:SetPoint("BOTTOMRIGHT", self.Icon, "BOTTOMRIGHT", 2, -3)
				self.CollectionListVisual.Unavailable:ClearAllPoints()
				self.CollectionListVisual.Unavailable:SetPoint("TOPRIGHT", self.Icon, "TOPRIGHT", 5, 3)
				self.CollectionListVisual.UnavailableItems:ClearAllPoints()
				self.CollectionListVisual.UnavailableItems:SetPoint("TOPRIGHT", self.Icon, "TOPRIGHT", 5, 3)
			</OnLoad>
		</Scripts>
	</Button>

	<Frame name="BetterWardrobeSetsDetailsItemFrameTemplate" mixin="BetterWardrobeSetsDetailsItemMixin" virtual="true">
		<Size x="32" y="32"/>
		<Layers>
			<Layer level="BORDER">
				<Texture parentKey="Icon">
					<Size x="28" y="28"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Replacement" atlas="transmog-icon-revert-small" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent" x="-10" y = "-15"/>
					</Anchors>
				</Texture>
				<Texture parentKey="IconBorder" atlas="loottab-set-itemborder-green" useAtlasSize="true">
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.Icon" relativePoint="CENTER" x="20" y="1"/>
					</Anchors>
				</Texture>
				<Texture parentKey="New" atlas="GarrMission-AbilityHighlight" alphaMode="ADD" hidden="true">
					<Size x="48" y="48"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<Animations>
						<AnimationGroup parentKey="Anim" looping="REPEAT">
							<Alpha duration="1" order="1" fromAlpha="0.8" toAlpha="1"/>
							<Alpha duration="1" order="2" fromAlpha="1" toAlpha="0.8"/>
						</AnimationGroup>
					</Animations>
				</Texture>

			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="CanUse" mixin = "BetterWardrobeSetsDetailsItemUseabiltiyMixin" >
				<Size x="25" y="25"/>

				<Anchors>
					<Anchor point="TOP" relativeKey="$parent" x="0" y = "15"/>
				</Anchors>
					<Layers>
						<Layer level="OVERLAY">
							<Texture parentKey="Icon" atlas="PlayerRaidBlip" useAtlasSize="false" hidden="false" setAllPoints = "true" />
						</Layer>
					</Layers>
				<Scripts>
					<OnEnter method="OnEnter"/>
					<OnLeave method="OnLeave"/>
				</Scripts>
			</Frame>
			<Frame parentKey="Favorite" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="collections-icon-favorites" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="HideVisual" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="transmog-icon-hidden" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-12" y="13" relativePoint="TOPLEFT"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
			<OnMouseDown method="OnMouseDown"/>
		</Scripts>
	</Frame>
		<Frame name="AlertTrackingFeatureTemplate" inherits="NewFeatureLabelTemplate" mixin="BW_AlertTrackingFeatureMixin" virtual="true">
		<Size x="1" y="1"/>
	</Frame>

	<Frame name="TrackingInterfaceShortcutsFrame" hidden="true">
		<Size x="226" y="40"/>
		<Layers>
			<Layer level="OVERLAY">
				<FontString parentKey="HeaderText" inherits="GameFontHighlightLeft" text="WARDROBE_SHORTCUTS_TUTORIAL_2" justifyH="LEFT" justifyV="TOP">
					<Size x="0" y="0"/>
				</FontString>
				<FontString parentKey="Text" inherits="GameFontHighlightLeft" text="WARDROBE_SHORTCUTS_TUTORIAL_3" justifyH="LEFT" justifyV="TOP">
					<Size x="0" y="0"/>
					<Anchors>
						<Anchor point="TOP" relativeKey="$parent.HeaderText" relativePoint="BOTTOM" y="-1"/>
						<Anchor point="LEFT" relativeKey="$parent.HeaderText" relativePoint="LEFT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="NewAlert" inherits="AlertTrackingFeatureTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.HeaderText" relativePoint="RIGHT" x="17"/>
				</Anchors>
			</Frame>
		</Frames>
	</Frame>

	<Frame name="BetterWardrobeCollectionFrameTemplate" parent="CollectionsJournal" mixin="BetterWardrobeCollectionFrameMixin" setAllPoints="true" hidden="true" virtual="true" frameLevel="50">
		<Frames>
			<Button parentKey="InfoButton" inherits="MainHelpPlateButton" mixin="WardrobeCollectionTutorialMixin" hidden="true" frameLevel="75">
				<Anchors>
					<Anchor point="TOPLEFT" x="43" y="19"/>
				</Anchors>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnEnter method="OnEnter"/>
					<OnLeave method="OnLeave"/>
					<OnShow>
	    				self:SetFrameLevel(self:GetParent().TitleContainer:GetFrameLevel()+200);
	     			</OnShow>
				</Scripts>
			</Button>
			<Button name="$parentTab1" parentKey="ItemsTab" inherits="BW_PanelTopTabButtonTemplate" text="WARDROBE_ITEMS" id="1" >
				<KeyValues>
					<KeyValue key="minWidth" value="2" type="number"/>
				</KeyValues>
				<Anchors>
					<Anchor point="TOPLEFT" x="58" y="-28"/>
				</Anchors>
				<Scripts>
					<OnClick>
						BetterWardrobeCollectionFrame:ClickTab(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab2" parentKey="SetsTab" inherits="BW_PanelTopTabButtonTemplate" text="WARDROBE_SETS" id="2" frameLevel="75" >
				<KeyValues>
					<KeyValue key="minWidth" value="2" type="number"/>
				</KeyValues>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentTab1"  relativePoint="RIGHT" x="0" y="0"/>
				</Anchors>
				<Frames>
					<Frame parentKey="FlashFrame" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.SetsTab" relativePoint="TOPLEFT" x="0" y="-10"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.SetsTab" relativePoint="BOTTOMRIGHT" x="0" y="-5"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight-yellow" setAllPoints="true" alphaMode="ADD"/>
							</Layer>
						</Layers>
						<Scripts>
							<OnUpdate>
								if self:IsMouseOver() then
									self:SetAlpha(0);
								else
									self:SetAlpha(abs(mod(GetTime(), 2) - 1));
								end
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnClick>
						BetterWardrobeCollectionFrame:ClickTab(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab3" parentKey="ExtraSetsTab" inherits="BW_PanelTopTabButtonTemplate" text="Extra" id="3" frameLevel="75" >
				<KeyValues>
					<KeyValue key="minWidth" value="2" type="number"/>
				</KeyValues>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.SetsTab" relativePoint="RIGHT" x="0" y="0"/>
				</Anchors>
				<Frames>
					<Frame parentKey="FlashFrame" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ExtraSetsTab" relativePoint="TOPLEFT" x="0" y="-10"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ExtraSetsTab" relativePoint="BOTTOMRIGHT" x="0" y="-5"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight-yellow" setAllPoints="true" alphaMode="ADD"/>
							</Layer>
						</Layers>
						<Scripts>
							<OnUpdate>
								if self:IsMouseOver() then
									self:SetAlpha(0);
								else
									self:SetAlpha(abs(mod(GetTime(), 2) - 1));
								end
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnClick>
						BetterWardrobeCollectionFrame:ClickTab(self);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parentTab4" parentKey="SavedSetsTab" inherits="BW_PanelTopTabButtonTemplate" text="Saved" id="4" frameLevel="75" >
				<KeyValues>
					<KeyValue key="minWidth" value="2" type="number"/>
				</KeyValues>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.ExtraSetsTab"  relativePoint="RIGHT" x="0" y="0"/>
				</Anchors>
				<Frames>
					<Frame parentKey="FlashFrame" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ExtraSetsTab" relativePoint="TOPLEFT" x="0" y="-10"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ExtraSetsTab" relativePoint="BOTTOMRIGHT" x="0" y="-5"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<Texture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight-yellow" setAllPoints="true" alphaMode="ADD"/>
							</Layer>
						</Layers>
						<Scripts>
							<OnUpdate>
								if self:IsMouseOver() then
									self:SetAlpha(0);
								else
									self:SetAlpha(abs(mod(GetTime(), 2) - 1));
								end
							</OnUpdate>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnClick>
						BetterWardrobeCollectionFrame:ClickTab(self);
					</OnClick>
				</Scripts>
			</Button>
			<EditBox name="$parentSearchBox" parentKey="SearchBox" mixin="BetterWardrobeCollectionFrameSearchBoxMixin" inherits="SearchBoxTemplate" letters="40">
				<Size x="115" y="20"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-107" y="-35"/>
				</Anchors>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnUpdate method="OnUpdate"/>
					<OnHide method="OnHide"/>
					<OnKeyDown method="OnKeyDown"/>
					<OnTextChanged method="OnTextChanged"/>
					<OnEnter method="OnEnter"/>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
				<Frames>
					<Frame parentKey="ProgressFrame" mixin="BetterWardrobeCollectionFrameSearchBoxProgressMixin" hidden="true">
						<Size x="0" y="24"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="-7"/>
							<Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="3"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="background" atlas="_search-rowbg">
									<Anchors>
										<Anchor point="TOPLEFT"/>
										<Anchor point="BOTTOMRIGHT"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<Texture parentKey="botLeftCorner" inherits="UI-Frame-BotCornerLeft">
									<Anchors>
										<Anchor point="LEFT" x="-7" y="0"/>
										<Anchor point="BOTTOM" x="0" y="-5"/>
									</Anchors>
								</Texture>
								<Texture parentKey="botRightCorner" inherits="UI-Frame-BotCornerRight">
									<Anchors>
										<Anchor point="BOTTOM" x="0" y="-5"/>
										<Anchor point="RIGHT" x="4" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="bottomBorder" inherits="_UI-Frame-Bot">
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativeKey="$parent.botLeftCorner" relativePoint="BOTTOMRIGHT" y="0"/>
										<Anchor point="BOTTOMRIGHT" relativeKey="$parent.botRightCorner" relativePoint="BOTTOMLEFT" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="leftBorder" inherits="!UI-Frame-LeftTile">
									<Anchors>
										<Anchor point="TOP" x="0" y="1" />
										<Anchor point="BOTTOMLEFT" relativeKey="$parent.botLeftCorner" relativePoint="TOPLEFT"/>
									</Anchors>
								</Texture>
								<Texture parentKey="rightBorder" inherits="!UI-Frame-RightTile">
									<Anchors>
										<Anchor point="TOP" x="0" y="1" />
										<Anchor point="BOTTOMRIGHT" relativeKey="$parent.botRightCorner" relativePoint="TOPRIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="topBorder" inherits="_UI-Frame-Bot">
									<Anchors>
										<Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="-2" y="3"/>
										<Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="2" y="-3"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Frame parentKey="LoadingFrame">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPLEFT"/>
									<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"/>
								</Anchors>
								<Layers>
									<Layer level="OVERLAY">
										<FontString name="$parentText" inherits="GameFontHighlight" justifyH="CENTER" parentKey="Text" text="SEARCH_LOADING_TEXT" hidden="false">
											<Size x="0" y="0"/>
											<Anchors>
												<Anchor point="CENTER" x="14" y="1"/>
											</Anchors>
										</FontString>
									</Layer>
								</Layers>
								<Frames>
									<Frame parentKey="Spinner" inherits="LoadingSpinnerTemplate" hidden="false">
										<Size x="38" y="38"/>
										<Anchors>
											<Anchor point="RIGHT" relativeKey="$parent.Text" relativePoint="LEFT" x="4"/>
										</Anchors>
									</Frame>
								</Frames>
							</Frame>
							<StatusBar parentKey="ProgressBar" hidden="false">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="4" y="-4"/>
									<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-4" y="6"/>
								</Anchors>
								<Layers>
									<Layer level="BACKGROUND">
										<Texture parentKey="barBackground">
											<Anchors>
												<Anchor point="TOPLEFT"/>
												<Anchor point="BOTTOMRIGHT"/>
											</Anchors>
											<Color r="0" g="0" b="0" a=".4"/>
										</Texture>
									</Layer>
									<Layer level="OVERLAY">
										<FontString parentKey="text" inherits="GameFontHighlightSmall" text="SEARCH_PROGRESS_BAR_TEXT" justifyV="TOP">
											<Size x="0" y="0"/>
											<Anchors>
												<Anchor point="CENTER" x="0" y="0"/>
											</Anchors>
										</FontString>
									</Layer>
									<Layer level="ARTWORK">
										<Texture parentKey="barBorderLeft" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
											<Size x="16" y="0"/>
											<Anchors>
												<Anchor point="TOPLEFT" x="-6" y="5"/>
												<Anchor point="BOTTOMLEFT" x="-6" y="-5"/>
											</Anchors>
											<TexCoords left="0" right="0.0625" top="0" bottom="0.75"/>
										</Texture>
										<Texture parentKey="barBorderRight" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
											<Size x="16" y="0"/>
											<Anchors>
												<Anchor point="TOPRIGHT" x="6" y="5"/>
												<Anchor point="BOTTOMRIGHT" x="6" y="-5"/>
											</Anchors>
											<TexCoords left="0.812" right="0.8745" top="0" bottom="0.75"/>
										</Texture>
										<Texture parentKey="barBorderCenter" file="Interface\AchievementFrame\UI-Achievement-ProgressBar-Border">
											<Size x="16"/>
											<Anchors>
												<Anchor point="TOPLEFT" relativeKey="$parent.barBorderLeft" relativePoint="TOPRIGHT"/>
												<Anchor point="BOTTOMRIGHT" relativeKey="$parent.barBorderRight" relativePoint="BOTTOMLEFT"/>
											</Anchors>
											<TexCoords left="0.0625" right="0.812" top="0" bottom="0.75"/>
										</Texture>
									</Layer>
								</Layers>
								<Scripts>

								</Scripts>
								<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
							</StatusBar>
						</Frames>
						<Scripts>
							<OnLoad method="OnLoad"/>
							<OnUpdate method="OnUpdate"/>
							<OnHide method="OnHide"/>
						</Scripts>
					</Frame>
				</Frames>
			</EditBox>
			<StatusBar parentKey="progressBar" inherits="CollectionsProgressBarTemplate">
				<Size x="110" y="13"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.SavedSetsTab" relativePoint="TOPRIGHT" x="5" y="-11"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.border:SetWidth(120)
					</OnLoad>
				</Scripts>
			</StatusBar>
			<Button name="BetterWardrobeVisualToggle" parentKey="VisualToggle" mixin="BetterWardrobeVisualToggleMixin" >
				<Size x="30" y="30"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.progressBar" relativePoint="RIGHT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parentTexture" setAllPoints="true" file="Interface\LFGFrame\LFG-Eye" parentKey="texture">
							<TexCoords left="0.125" right="0.25" top="0.25" bottom="0.5"/>
							<Size x="30" y="30"/>
							<Anchors>
								<Anchor point="CENTER" />
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick method="OnClick"/>
					<OnHide method="OnHide"/>
					<OnEnter method="OnEnter"/>
					<OnLeave method="OnLeave"/>
				</Scripts>
			</Button>
			<Button parentKey="AlteredFormSwapButton" mixin="BetterWardrobeAlteredFormSwapButtonMixin" inherits = "BW_AlteredFormSwapButtonTemplate" ignoreParentScale="true" frameLevel="600">
				<Size x="28" y="38"/>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOPRIGHT" x="-4" y="-25"/>
				</Anchors>

			</Button>
			<DropDownToggleButton parentKey="FilterButton" inherits="UIResettableDropdownButtonTemplate" text="FILTER">
				<Size x="93" y="22"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.SearchBox" relativePoint="RIGHT" x="2" y="-1"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" file="Interface\ChatFrame\ChatFrameExpandArrow">
							<Size x="10" y="12"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="RIGHT" x="-5"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>
						UIMenuButtonStretchMixin.OnMouseDown(self, button);
						if self:IsEnabled() then
							PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
							BW_ToggleDropDownMenu(1, nil, BetterWardrobeFilterDropDown, self, 74, 15);
						end
					</OnMouseDown>
					<OnEnable>
						self.Icon:SetDesaturated(false);
					</OnEnable>
					<OnDisable>
						self.Icon:SetDesaturated(true);
					</OnDisable>
				</Scripts>
			</DropDownToggleButton>
			<Frame name="BetterWardrobeFilterDropDown" parentKey="FilterDropDown" inherits="BW_UIDropDownMenuTemplate">
				<Scripts>
					<OnLoad function="BetterWardrobeFilterDropDown_OnLoad"/>
				</Scripts>
			</Frame>
			<DropDownToggleButton parentKey="TransmogOptionsButton" name="BW_TransmogOptionsButton" inherits="UIMenuButtonStretchTemplate" text="Options" hidden="false">
				<Size x="93" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-55" y="80"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" file="Interface\ChatFrame\ChatFrameExpandArrow">
							<Size x="10" y="12"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="RIGHT" x="-5"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnMouseDown>
						UIMenuButtonStretchMixin.OnMouseDown(self, button);
						if self:IsEnabled() then
							PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
							BW_ToggleDropDownMenu(1, nil, BW_TransmogOptionsDropDown, self, 74, 15);
						end
					</OnMouseDown>
					<OnEnable>
						self.Icon:SetDesaturated(false);
					</OnEnable>
					<OnDisable>
						self.Icon:SetDesaturated(true);
					</OnDisable>

				</Scripts>
			</DropDownToggleButton>
			<Button parentKey="BW_SetsHideSlotButton" inherits="SquareIconButtonTemplate" >
				<Size x="32" y="32"/>
				<Anchors>
					<Anchor point="BOTTOM" relativeKey="$parent" relativePoint="BOTTOM" x="-35" y="15"/>
				</Anchors>					
				<Layers>
					<Layer level="ARTWORK" textureSubLevel="5">
						<Texture parentKey="Icon" file="Interface\PvPRankBadges\PvPRank12">
							<Size x="16" y="16"/>
							<Anchors>
								<Anchor point="CENTER" />
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow> 
						self.buttonID = "HideSlot" 
						local level = self:GetParent().SetsCollectionFrame.Model:GetFrameLevel() + 5
						self:SetFrameLevel(level);
					</OnShow>
					<OnEnter>
						BW_DressingRoomButtonMixin.OnEnter(self)  
					</OnEnter>
					<OnClick>
						BW_JournalHideSlotMenu_OnClick(self)
					</OnClick>

				</Scripts>
			</Button>
			<Frame parentKey="ItemsCollectionFrame" parentArray="ContentFrames" mixin="BetterWardrobeItemsCollectionMixin" inherits="CollectionsBackgroundTemplate">
				<KeyValues>
					<KeyValue key="searchType" value="Enum.TransmogSearchType.Items" type="global"/>
				</KeyValues>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="NoValidItemsLabel" inherits="GameFontNormalMed2" text="TRANSMOG_NO_VALID_ITEMS_EQUIPPED">
							<Anchors>
								<Anchor point="CENTER" y="15"/>
							</Anchors>
							<Color r="0.804" g="0.725" b="0.616"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="PagingFrame" inherits="CollectionsPagingFrameTemplate">
						<Anchors>
							<Anchor point="BOTTOM" x="22" y="38"/>
						</Anchors>
					</Frame>
					<Frame name="BetterWardrobeModelRightClickDropDown" parentKey="RightClickDropDown" inherits="BW_UIDropDownMenuTemplate" hidden="true"/>
					<Frame parentKey="WeaponDropDown" name="$parentWeaponDropDown" inherits="BW_UIDropDownMenuTemplate" enableMouse="true" hidden="true">
						<Size x="87" y="22"/>
						<Anchors>
							<Anchor point="TOPRIGHT" x="-6" y="-22"/>
						</Anchors>
						<Scripts>
							<OnLoad function="BetterWardrobeCollectionFrameWeaponDropDown_OnLoad"/>
						</Scripts>
					</Frame>
					<Frame parentKey="SlotsFrame">
						<Size x="10" y="10"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="18" y="-20"/>
						</Anchors>
					</Frame>
					<DressUpModel parentArray="Models" parentKey="ModelR1C1" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOP" x="-238" y="-85"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C2" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C1" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C3" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C2" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C4" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C3" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C5" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C4" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C6" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C5" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C1" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C1" relativePoint="BOTTOMLEFT" x="0" y="-24"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C2" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C1" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C3" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C2" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C4" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C3" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C5" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C4" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C6" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C5" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C1" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C1" relativePoint="BOTTOMLEFT" x="0" y="-24"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C2" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR3C1" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C3" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR3C2" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C4" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR3C3" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C5" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR3C4" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR3C6" inherits="BetterWardrobeItemsModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR3C5" relativePoint="TOPRIGHT" x="16" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentKey="HiddenModel" inherits="BetterWardrobeItemsModelTemplate" hidden="true">
						<Anchors>
							<Anchor point="BOTTOMLEFT"/>
						</Anchors>
					</DressUpModel>
					<Frame parentKey="PendingTransmogFrame" hidden="true">
						<Size x="78" y="104"/>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="1">
								<Texture parentKey="Glowframe" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK" textureSubLevel="2">
								<Texture parentKey="Wisp1" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp2" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp3" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="7" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp4" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp5" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp6" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp7" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="7" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp8" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp9" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp10" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp11" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="7" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp12" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke1" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="LEFT" x="-1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke2" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<TexCoords left="0" right="1" top="1" bottom="0"/>
									<Anchors>
										<Anchor point="CENTER" relativePoint="RIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke3" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="LEFT" x="-1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke4" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<TexCoords left="0" right="1" top="1" bottom="0"/>
									<Anchors>
										<Anchor point="CENTER" relativePoint="RIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<Texture parentKey="UndoIcon" atlas="transmog-icon-revert" useAtlasSize="true" hidden="true">
									<Anchors>
										<Anchor point="BOTTOM" x="0" y="-13"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Animations>
							<AnimationGroup parentKey="TransmogSelectedAnim" setToFinalAlpha="true" looping="REPEAT">
								<Translation childKey="Wisp1" duration="2" order="1" offsetX="-70" offsetY="0"/>
								<Alpha childKey="Wisp1" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp1" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp2" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp2" duration="2" order="1" offsetX="70" offsetY="0"/>
								<Alpha childKey="Wisp2" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp2" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp3" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp3" duration="2" order="1" offsetX="0" offsetY="90"/>
								<Alpha childKey="Wisp3" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp3" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp4" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp4" duration="2" order="1" offsetX="0" offsetY="-90"/>
								<Alpha childKey="Wisp4" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp4" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Translation childKey="Wisp5" duration="2" order="1" offsetX="-70" offsetY="0"/>
								<Alpha childKey="Wisp5" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp5" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp6" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp6" duration="2" order="1" offsetX="70" offsetY="0"/>
								<Alpha childKey="Wisp6" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp6" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp7" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp7" duration="2" order="1" offsetX="0" offsetY="90"/>
								<Alpha childKey="Wisp7" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp7" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp8" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp8" duration="2" order="1" offsetX="0" offsetY="-90"/>
								<Alpha childKey="Wisp8" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp8" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0" endDelay="0.4"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim2" setToFinalAlpha="true" looping="REPEAT">
								<Alpha childKey="Glowframe" duration="1.2" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Glowframe" startDelay="1.2" duration="1.2" order="1" fromAlpha="1" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim3" setToFinalAlpha="true" looping="REPEAT">
								<Translation childKey="Wisp9" duration="4.4" order="1" offsetX="-70" offsetY="0"/>
								<Alpha childKey="Wisp9" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp9" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp10" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp10" duration="4.4" order="1" offsetX="70" offsetY="0"/>
								<Alpha childKey="Wisp10" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp10" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp11" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp11" duration="4.4" order="1" offsetX="0" offsetY="90"/>
								<Alpha childKey="Wisp11" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp11" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp12" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp12" duration="4.4" order="1" offsetX="0" offsetY="-90"/>
								<Alpha childKey="Wisp12" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp12" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim4" setToFinalAlpha="true" looping="REPEAT">
								<Scale childKey="Smoke1" duration="3.2" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke1" duration="1.4" order="1" fromAlpha="0" toAlpha="0.75"/>
								<Alpha childKey="Smoke1" startDelay="1.8" duration="1.4" order="1" fromAlpha="0.75" toAlpha="0"/>
								<Scale childKey="Smoke2" duration="3.2" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke2" duration="1.4" order="1" fromAlpha="0" toAlpha="0.75"/>
								<Alpha childKey="Smoke2" startDelay="1.8" duration="1.4" order="1" fromAlpha="0.75" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim5" setToFinalAlpha="true" looping="REPEAT">
								<Scale childKey="Smoke3" duration="5" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke3" duration="1.4" order="1" fromAlpha="0" toAlpha="0.5"/>
								<Alpha childKey="Smoke3" startDelay="3.6" duration="1.4" order="1" fromAlpha="0.5" toAlpha="0"/>
								<Scale childKey="Smoke4" duration="5" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke4" duration="1.4" order="1" fromAlpha="0" toAlpha="0.5"/>
								<Alpha childKey="Smoke4" startDelay="3.6" duration="1.4" order="1" fromAlpha="0.5" toAlpha="0"/>
							</AnimationGroup>
						</Animations>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnShow method="OnShow"/>
					<OnHide method="OnHide"/>
					<OnEvent method="OnEvent"/>
					<OnMouseWheel method="OnMouseWheel"/>
					<OnUpdate method="OnUpdate"/>

				</Scripts>
			</Frame>
			<Frame parentKey="SetsCollectionFrame" parentArray="ContentFrames" mixin="BetterWardrobeSetsCollectionMixin" hidden="true">
				<KeyValues>
					<KeyValue key="searchType" value="Enum.TransmogSearchType.BaseSets" type="global"/>
				</KeyValues>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT" y="-60" x="4"/>
					<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-6" y="5"/>
				</Anchors>
				<Frames>
					<Frame parentKey="LeftInset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Size x="260" y="496"/>
						<Anchors>
							<Anchor point="TOPLEFT"/>
							<Anchor point="BOTTOMLEFT"/>
						</Anchors>
					</Frame>
					<Frame parentKey="RightInset" useParentLevel="true" inherits="CollectionsBackgroundTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.LeftInset" relativePoint="TOPRIGHT" x="22" y="0"/>
							<Anchor point="BOTTOMRIGHT"/>
						</Anchors>
					</Frame>
					<Frame parentKey="ListContainer" mixin="BetterWardrobeSetsCollectionContainerMixin" frameStrata="HIGH">

						<Size x="255" y="499"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="3" y="-36"/>
						</Anchors>
						<Frames>

							<Frame parentKey="ScrollBox" setAllPoints="true" inherits="WowScrollBoxList"/>
							<EventFrame parentKey="ScrollBar" inherits="MinimalScrollBar" name="BetterWardrobeCollectionFrameScrollFrameScrollBar">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="4" y="20"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="4" y="8"/>
								</Anchors>
							</EventFrame>

							<Frame parentKey="FavoriteDropDown" inherits="BW_UIDropDownMenuTemplate" enableMouse="true"/>
						</Frames>
						<Scripts>
							<OnLoad method="OnLoad"/>
							<OnShow method="OnShow"/>
							<OnHide method="OnHide"/>
							<OnEvent method="OnEvent"/>
						</Scripts>
					</Frame>
					<DressUpModel parentKey="Model" mixin="BetterWardrobeSetsDetailsModelMixin">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.RightInset" x="3" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightInset" x="-4" y="3"/>
						</Anchors>
						<Scripts>
							<OnLoad method="OnLoad"/>
							<OnUpdate method="OnUpdate"/>
							<OnMouseDown method="OnMouseDown"/>
							<OnMouseUp method="OnMouseUp"/>
							<OnMouseWheel method="OnMouseWheel"/>
							<OnModelLoaded method="OnModelLoaded"/>
						</Scripts>
					</DressUpModel>
					<Frame parentKey="DetailsFrame" frameLevel="75">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.RightInset" x="0" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RightInset" x="-3" y="-20"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="ModelFadeTexture" atlas="transmog-set-model-cutoff-fade">
									<Size x="0" y="178"/>
									<Anchors>
										<Anchor point="TOPLEFT" x="2"/>
										<Anchor point="TOPRIGHT"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER">
								<Texture parentKey="IconRowBackground" atlas="transmog-set-iconrow-background" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOP" x="0" y="-78"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString parentKey="Name" inherits="Fancy24Font" maxLines="1" mixin="AutoScalingFontStringMixin">
									<KeyValues>
										<KeyValue key="minLineHeight" value="16" type="number"/>
									</KeyValues>
									<Size x="380" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-37"/>
									</Anchors>
									<Color r="1" g="0.82" b="0"/>
									<Shadow>
										<Offset x="1" y="-1" />
										<Color r="0" g="0" b="0"/>
									</Shadow>
								</FontString>
								<FontString parentKey="LongName" inherits="Fancy16Font" maxLines="2" hidden="true">
									<Size x="380" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-30"/>
									</Anchors>
									<Color r="1" g="0.82" b="0"/>
									<Shadow>
										<Offset x="1" y="-1" />
										<Color r="0" g="0" b="0"/>
									</Shadow>
								</FontString>
								<FontString parentKey="Label" inherits="GameFontHighlight" maxLines="1">
									<Size x="380" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-63"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame parentKey="LimitedSet" inherits="ResizeLayoutFrame" frameLevel="80">
								<Anchors>
									<Anchor point="TOPLEFT" x="6" y="-6"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture parentKey="Icon" atlas="worldquest-icon-clock" useAtlasSize="true" scale="0.8">
											<Anchors>
												<Anchor point="TOPLEFT"/>
											</Anchors>
										</Texture>
										<FontString parentKey="Text" font="GameFontHighlightSmall" text="TRANSMOG_SET_LIMITED_TIME_SET">
											<Anchors>
												<Anchor point="LEFT" relativeKey="$parent.Icon" relativePoint="RIGHT"/>
											</Anchors>
											<Color r="1.0" g="0.5" b="0.25"/>
										</FontString>
									</Layer>
								</Layers>
								<Scripts>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip_SetTitle(GameTooltip, TRANSMOG_SET_LIMITED_TIME_SET_TOOLTIP, NORMAL_FONT_COLOR, true);
										GameTooltip:Show();
									</OnEnter>
									<OnLeave function="GameTooltip_Hide"/>
								</Scripts>
							</Frame>
							<Button parentKey="BW_LinkSetButton" inherits="SquareIconButtonTemplate" >
								<Size x="32" y="32"/>
								<Anchors>
									<Anchor point="TOPRIGHT" x="-6" y="0"/>
								</Anchors>					
								<Layers>
									<Layer level="ARTWORK" textureSubLevel="5">
										<Texture parentKey="Icon" atlas="poi-transmogrifier" useAtlasSize="false">
											<Size x="16" y="20"/>
											<Anchors>
												<Anchor point="CENTER" />
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<Scripts>
									<OnShow> 
									</OnShow>
									<OnEnter>
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip_SetTitle(GameTooltip, TRANSMOG_OUTFIT_POST_IN_CHAT, NORMAL_FONT_COLOR, true);
										GameTooltip:Show();
									</OnEnter>
									<OnLeave function="GameTooltip_Hide"/>
									<OnClick>
										self:GetParent():GetParent():LinkSetInChat(self.setID)
									</OnClick>
								</Scripts>
							</Button>

							<DropDownToggleButton name="BetterWardrobeSetsCollectionVariantSetsButton" parentKey="VariantSetsButton" inherits="UIMenuButtonStretchTemplate" frameLevel="80" >
								<Size x="108" y="22"/>
								<Anchors>
									<Anchor point="TOPRIGHT" x="-38" y="-6"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture parentKey="Icon" atlas="friendslist-categorybutton-arrow-down" useAtlasSize="true">
											<Anchors>
												<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="RIGHT" x="-5" y="-2"/>
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<Scripts>
									<OnLoad inherit="prepend">
										self.Text:ClearAllPoints();
										self.Text:SetPoint("LEFT", 11, -1);
										self.Text:SetSize(75, 10);
										self.Text:SetJustifyH("LEFT");
									</OnLoad>
									<OnMouseDown>
										UIMenuButtonStretchMixin.OnMouseDown(self, button);
										PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
										BW_ToggleDropDownMenu(1, nil, self:GetParent().VariantSetsDropDown, self:GetName(), 0, 1);
									</OnMouseDown>
								</Scripts>
							</DropDownToggleButton>
							<Frame name="BetterWardrobeSetsCollectionVariantSetsDropDown" parentKey="VariantSetsDropDown" inherits="BW_UIDropDownMenuTemplate">
								<Scripts>
									<OnLoad function="BetterWardrobeSetsCollectionVariantSetsDropDown_OnLoad"/>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnShow method="OnShow"/>
					<OnHide method="OnHide"/>
					<OnEvent method="OnEvent"/>
				</Scripts>
			</Frame>
			<Frame parentKey="SetsTransmogFrame" parentArray="ContentFrames" inherits="CollectionsBackgroundTemplate" mixin="BetterWardrobeSetsTransmogMixin" hidden="true">
				<KeyValues>
					<KeyValue key="searchType" value="Enum.TransmogSearchType.UsableSets" type="global"/>
				</KeyValues>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="NoValidSetsLabel" inherits="GameFontNormalMed2" text="TRANSMOG_SETS_TAB_DISABLED">
							<Anchors>
								<Anchor point="CENTER" y="15"/>
							</Anchors>
							<Color r="0.804" g="0.725" b="0.616"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame name="BetterWardrobeSetsTransmogModelRightClickDropDown" parentKey="RightClickDropDown" inherits="BW_UIDropDownMenuTemplate" hidden="true">
						<Scripts>
							<OnLoad function="BetterWardrobeSetsTransmogModelRightClickDropDown_OnLoad"/>
						</Scripts>
					</Frame>
					<Frame parentKey="PagingFrame" inherits="CollectionsPagingFrameTemplate">
						<Anchors>
							<Anchor point="BOTTOM" x="22" y="38"/>
						</Anchors>
					</Frame>
					<DressUpModel parentArray="Models" parentKey="ModelR1C1" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="50" y="-50"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C2" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C1" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C3" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C2" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR1C4" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C3" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C1" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR1C1" relativePoint="BOTTOMLEFT" x="0" y="-14"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C2" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C1" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C3" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C2" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<DressUpModel parentArray="Models" parentKey="ModelR2C4" inherits="BetterWardrobeSetsTransmogModelTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ModelR2C3" relativePoint="TOPRIGHT" x="13" y="0"/>
						</Anchors>
					</DressUpModel>
					<Frame parentKey="PendingTransmogFrame" hidden="true">
						<Size x="129" y="186"/>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="1">
								<Texture parentKey="Glowframe" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-set-border-selected" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK" textureSubLevel="2">
								<Texture parentKey="Wisp1" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="8"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp2" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-9"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp3" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="8" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp4" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp5" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="8"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp6" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-9"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp7" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="8" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp8" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp9" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMRIGHT" x="-6" y="8"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp10" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPLEFT" x="6" y="-9"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp11" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="BOTTOMLEFT" x="8" y="6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Wisp12" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-wisp" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="TOPRIGHT" x="-7" y="-7"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke1" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="LEFT" x="-1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke2" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<TexCoords left="0" right="1" top="1" bottom="0"/>
									<Anchors>
										<Anchor point="CENTER" relativePoint="RIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke3" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativePoint="LEFT" x="-1" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Smoke4" hidden="false" alpha="0" alphaMode="ADD" atlas="transmog-wardrobe-border-selected-smoke" useAtlasSize="true">
									<TexCoords left="0" right="1" top="1" bottom="0"/>
									<Anchors>
										<Anchor point="CENTER" relativePoint="RIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Animations>
							<AnimationGroup parentKey="TransmogSelectedAnim" setToFinalAlpha="true" looping="REPEAT">
								<Translation childKey="Wisp1" duration="2" order="1" offsetX="-121" offsetY="0"/>
								<Alpha childKey="Wisp1" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp1" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp2" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp2" duration="2" order="1" offsetX="121" offsetY="0"/>
								<Alpha childKey="Wisp2" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp2" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp3" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp3" duration="2" order="1" offsetX="0" offsetY="172"/>
								<Alpha childKey="Wisp3" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp3" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp4" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp4" duration="2" order="1" offsetX="0" offsetY="-172"/>
								<Alpha childKey="Wisp4" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp4" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Translation childKey="Wisp5" duration="2" order="1" offsetX="-121" offsetY="0"/>
								<Alpha childKey="Wisp5" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp5" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp6" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp6" duration="2" order="1" offsetX="121" offsetY="0"/>
								<Alpha childKey="Wisp6" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp6" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp7" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp7" duration="2" order="1" offsetX="0" offsetY="172"/>
								<Alpha childKey="Wisp7" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp7" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp8" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp8" duration="2" order="1" offsetX="0" offsetY="-172"/>
								<Alpha childKey="Wisp8" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp8" startDelay="1.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0" endDelay="0.4"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim2" setToFinalAlpha="true" looping="REPEAT">
								<Alpha childKey="Glowframe" duration="1.2" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Glowframe" startDelay="1.2" duration="1.2" order="1" fromAlpha="1" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim3" setToFinalAlpha="true" looping="REPEAT">
								<Translation childKey="Wisp9" duration="4.4" order="1" offsetX="-121" offsetY="0"/>
								<Alpha childKey="Wisp9" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp9" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp10" duration="0" order="1" degrees="180"/>
								<Translation childKey="Wisp10" duration="4.4" order="1" offsetX="121" offsetY="0"/>
								<Alpha childKey="Wisp10" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp10" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp11" duration="0" order="1" degrees="-90"/>
								<Translation childKey="Wisp11" duration="4.4" order="1" offsetX="0" offsetY="172"/>
								<Alpha childKey="Wisp11" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp11" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
								<Rotation childKey="Wisp12" duration="0" order="1" degrees="90"/>
								<Translation childKey="Wisp12" duration="4.4" order="1" offsetX="0" offsetY="-172"/>
								<Alpha childKey="Wisp12" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Wisp12" startDelay="3.9" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim4" setToFinalAlpha="true" looping="REPEAT">
								<Scale childKey="Smoke1" duration="3.2" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke1" duration="1.4" order="1" fromAlpha="0" toAlpha="0.75"/>
								<Alpha childKey="Smoke1" startDelay="1.8" duration="1.4" order="1" fromAlpha="0.75" toAlpha="0"/>
								<Scale childKey="Smoke2" duration="3.2" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke2" duration="1.4" order="1" fromAlpha="0" toAlpha="0.75"/>
								<Alpha childKey="Smoke2" startDelay="1.8" duration="1.4" order="1" fromAlpha="0.75" toAlpha="0"/>
							</AnimationGroup>
							<AnimationGroup parentKey="TransmogSelectedAnim5" setToFinalAlpha="true" looping="REPEAT">
								<Scale childKey="Smoke3" duration="5" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke3" duration="1.4" order="1" fromAlpha="0" toAlpha="0.5"/>
								<Alpha childKey="Smoke3" startDelay="3.6" duration="1.4" order="1" fromAlpha="0.5" toAlpha="0"/>
								<Scale childKey="Smoke4" duration="5" order="1" fromScaleX="1" fromScaleY="1" toScaleX="1" toScaleY="2.6"/>
								<Alpha childKey="Smoke4" duration="1.4" order="1" fromAlpha="0" toAlpha="0.5"/>
								<Alpha childKey="Smoke4" startDelay="3.6" duration="1.4" order="1" fromAlpha="0.5" toAlpha="0"/>
							</AnimationGroup>
						</Animations>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnShow method="OnShow"/>
					<OnHide method="OnHide"/>
					<OnEvent method="OnEvent"/>
					<OnMouseWheel method="OnMouseWheel"/>
				</Scripts>
			</Frame>
			<Frame parentKey="BW_OutfitDropDown" name="BetterWardrobeOutfitDropDown" parent = "WardrobeTransmogFrame" inherits="BetterWardrobeOutfitDropDownTemplate" mixin="BetterWardrobeOutfitMixin"  hidden = "false">
				<KeyValues>
					<KeyValue key="width" value="188" type="number"/>
					<KeyValue key="minMenuStringWidth" value="152" type="number"/>
					<KeyValue key="maxMenuStringWidth" value="216" type="number"/>
					<KeyValue key="replaceInvalidSources" value="false" type="boolean"/>
				</KeyValues>
				<Anchors>
					<Anchor point="TOPLEFT" x="-14" y="28"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnEvent method="OnEvent"/>
			<OnShow method="OnShow"/>
			<OnHide method="OnHide"/>
			<OnKeyDown method="OnKeyDown"/>
			<OnUpdate method="OnUpdate"/>
		</Scripts>
	</Frame>
	
	<Button name="BetterWardrobeTransmogButtonTemplate" motionScriptsWhileDisabled="true" mixin="TransmogSlotButtonMixin" frameLevel="75" virtual="true">
		<KeyValues>
			<KeyValue key="transmogType" value="Enum.TransmogType.Appearance" type="global"/>
			<KeyValue key="modification" value="Enum.TransmogModification.Main" type="global"/>
		</KeyValues>
		<Size x="43" y="43"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Icon">
					<Size x="36" y="36"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="Border" atlas="transmog-frame" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
				<Texture parentKey="NoItemTexture" file="Interface\Transmogrify\Textures.png" alpha="0.75" hidden="true">
					<Size x="34" y="34"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.28906250" right="0.55468750" top="0.51171875" bottom="0.57812500"/>
				</Texture>				
			</Layer>
			<Layer level="BORDER" textureSubLevel="1">
				<Texture parentKey="StatusBorder" atlas="transmog-frame-pink" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="HiddenVisualCover" atlas="transmog-frame-blackcover" useAtlasSize="true" hidden="true" alpha="0.6">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture parentKey="HiddenVisualIcon" atlas="transmog-icon-hidden" useAtlasSize="true" hidden="true" alpha="0.7">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="SelectedTexture" atlas="transmog-frame-selected" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="TOP" x="0" y="9"/>
					</Anchors>
				</Texture>
			</Layer>			
		</Layers>
		<Frames>
			<Button parentKey="UndoButton" hidden="true">
				<Size x="24" y="22"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="13" y="12"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" file="Interface\Transmogrify\Textures.png">
							<Size x="24" y="22"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="0" y="0"/>
							</Anchors>
							<TexCoords left="0.17968750" right="0.36718750" top="0.58203125" bottom="0.62500000"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow>
						self.Icon:SetPoint("TOPLEFT", 0, 0);
					</OnShow>
					<OnMouseDown>
						self.Icon:SetPoint("TOPLEFT", 1, -1);
					</OnMouseDown>
					<OnMouseUp>
						self.Icon:SetPoint("TOPLEFT", 0, 0);
					</OnMouseUp>
					<OnLeave>
						if ( not self:GetParent():IsMouseOver() ) then
							self:Hide();
						end
					</OnLeave>
					<OnClick>
						-- same as a right-click on the parent
						--WardrobeTransmogButton_OnClick(self:GetParent(), "RightButton");
						self:GetParent():OnClick("RightButton");

					</OnClick>
				</Scripts>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
			<Frame parentKey="PendingFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Glow" file="Interface\Transmogrify\Textures.png">
							<Size x="58" y="57"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
						</Texture>
						<Texture parentKey="Undo" file="Interface\Transmogrify\Textures.png" hidden="true">
							<Size x="34" y="34"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.00781250" right="0.27343750" top="0.51171875" bottom="0.57812500"/>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture parentKey="Ants" file="Interface\Transmogrify\PurpleIconAlertAnts.png">
							<Size x="44" y="44"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>	
				<Scripts>
					<OnUpdate>
						AnimateTexCoords(self.Ants, 256, 256, 48, 48, 22, elapsed, 0.01);
					</OnUpdate>
				</Scripts>		
			</Frame>
			<Frame parentKey="AnimFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Glow" file="Interface\Transmogrify\Textures.png" alpha="0">
							<Size x="58" y="57"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
						</Texture>
						<Texture parentKey="Transition" file="Interface\Transmogrify\Textures.png" hidden="true">
							<Size x="42" y="41"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.25781250" bottom="0.36914063"/>
						</Texture>
						<Texture parentKey="OuterGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
							<Size x="58" y="57"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
						</Texture>
					</Layer>
				</Layers>
				<Animations>
					<AnimationGroup parentKey="Anim">
						<Alpha childKey="OuterGlow" duration="0.15" fromAlpha="0" toAlpha="1" order="1"/>
						<Alpha childKey="OuterGlow" duration="0.15" fromAlpha="1" toAlpha="0" order="2"/>
						<Scale childKey="Transition" duration="0.2" scaleX="1.381" scaleY="1.381" order="2"/>
						<Alpha childKey="Glow" fromAlpha="1" toAlpha="0" duration="0.2" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():GetParent():OnAnimFinished();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnClick method="OnClick"/>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
			<OnShow method="OnShow"/>
			<OnHide method="OnHide"/>
		</Scripts>
		<HighlightTexture atlas="transmog-frame-highlighted" alphaMode="ADD">
			<Size x="44" y="41"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</HighlightTexture>
	</Button>

	<Button name="BetterWardrobeTransmogEnchantButtonTemplate" motionScriptsWhileDisabled="true" mixin="TransmogSlotButtonMixin" frameLevel="75" virtual="true">
		<KeyValues>
			<KeyValue key="transmogType" value="Enum.TransmogType.Illusion" type="global"/>
			<KeyValue key="modification" value="Enum.TransmogModification.Main" type="global"/>
		</KeyValues>
		<Size x="27" y="27"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Icon">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="Border" atlas="transmog-frame-small" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
				<Texture parentKey="NoItemTexture" file="Interface\Transmogrify\Textures.png" alpha="0.75" hidden="true">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.28906250" right="0.55468750" top="0.51171875" bottom="0.57812500"/>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="1">
				<Texture parentKey="StatusBorder" atlas="transmog-frame-small-pink" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="HiddenVisualCover" atlas="transmog-frame-blackcover" hidden="true" alpha="0.6">
					<Size x="27" y="27"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture parentKey="HiddenVisualIcon" atlas="transmog-icon-hidden" hidden="true" alpha="0.7">
					<Size x="18" y="18"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="UndoIcon" atlas="transmog-icon-revert-small" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="TOPRIGHT" x="7" y="6"/>
					</Anchors>
				</Texture>
				<Texture parentKey="SelectedTexture" atlas="transmog-frame-small-selected" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="PendingFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Glow" file="Interface\Transmogrify\Textures.png">
							<Size x="29" y="28"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
						</Texture>
						<Texture parentKey="Undo" atlas="transmog-icon-revert-small" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<Texture parentKey="Ants" file="Interface\Transmogrify\PurpleIconAlertAnts.png">
							<Size x="22" y="22"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnUpdate>
						AnimateTexCoords(self.Ants, 256, 256, 48, 48, 22, elapsed, 0.01);
					</OnUpdate>
				</Scripts>
			</Frame>
			<Frame parentKey="AnimFrame" setAllPoints="true" hidden="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Glow" file="Interface\Transmogrify\Textures.png" alpha="0">
							<Size x="30" y="29"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.38476563" bottom="0.49609375"/>
						</Texture>
						<Texture parentKey="Transition" file="Interface\Transmogrify\Textures.png" hidden="true">
							<Size x="22" y="21"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.52343750" right="0.97656250" top="0.25781250" bottom="0.36914063"/>
						</Texture>
						<Texture parentKey="OuterGlow" file="Interface\SpellActivationOverlay\IconAlert" alpha="0">
							<Size x="30" y="29"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<TexCoords left="0.00781250" right="0.50781250" top="0.53515625" bottom="0.78515625"/>
						</Texture>
					</Layer>
				</Layers>
				<Animations>
					<AnimationGroup parentKey="Anim">
						<Scale childKey="Transition" duration="0.2" scaleX="1.381" scaleY="1.381" order="2"/>
						<Scripts>
							<OnFinished>
								self:GetParent():GetParent():OnAnimFinished();
							</OnFinished>
						</Scripts>
					</AnimationGroup>
				</Animations>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
			<OnClick method="OnClick"/>
			<OnEnter method="OnEnter"/>
			<OnLeave method="OnLeave"/>
		</Scripts>
		<HighlightTexture atlas="transmog-frame-highlighted-small" alphaMode="ADD">
			<Size x="24" y="24"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
		</HighlightTexture>
	</Button>

	<Frame name="BetterWardrobeFrameTemplate" inherits="PortraitFrameTemplate" toplevel="true" frameStrata="MEDIUM" enableMouse="true" parent="UIParent" hidden="true" mixin="BetterWardrobeFrameMixin" virtual="true">
		<Size x="965" y="606"/>
		<Anchors>
			<Anchor point="CENTER" x="0" y="0"/>
		</Anchors>
		<Frames>
			<Frame name="BetterWardrobeTransmogFrame" mixin="BW_TransmogFrameMixin">
				<Size x="300" y="495"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="4" y="-86"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="MoneyLeft" file="Interface\Common\MoneyFrame.png">
							<Size x="8" y="20"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="-3" y="-22"/>
							</Anchors>
							<TexCoords left="0.9375" right="1" top="0" bottom="0.3125"/>
						</Texture>
						<Texture parentKey="MoneyMiddle" file="Interface\Common\MoneyFrame.png">
							<Size x="154" y="20"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.MoneyLeft" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0" right="1" top="0.3125" bottom="0.6250"/>
						</Texture>						
						<Texture parentKey="MoneyRight" file="Interface\Common\MoneyFrame.png">
							<Size x="8" y="20"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.MoneyMiddle" relativePoint="RIGHT"/>
							</Anchors>
							<TexCoords left="0" right="0.0625" top="0" bottom="0.3125"/>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<CheckButton parentKey="ToggleSecondaryAppearanceCheckbox" mixin="BW_TransmogToggleSecondaryAppearanceCheckboxMixin" hidden="true">
						<Size x="30" y="30"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="348" y="15"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
               						<FontString parentKey="Label" inherits="GameFontHighlightSmall" justifyH="LEFT" text="TRANSMOGRIFY_RIGHT_SHOULDER">
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT" x="2" y="1"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnClick method="OnClick"/>
						</Scripts>
						<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>
					<Frame parentKey="Inset" inherits="InsetFrameTemplate" setAllPoints="true">
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="BG">
									<Size x="294" y="494"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-1"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
					<Frame parentKey="OutfitDropDown" name="BetterWardrobeOutfitDropDown" inherits="BetterWardrobeOutfitDropDownTemplate" mixin="BetterWardrobeOutfitMixin">
						<KeyValues>
							<KeyValue key="width" value="188" type="number"/>
							<KeyValue key="minMenuStringWidth" value="152" type="number"/>
							<KeyValue key="maxMenuStringWidth" value="216" type="number"/>
							<KeyValue key="replaceInvalidSources" value="false" type="boolean"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOPLEFT" x="-14" y="28"/>
						</Anchors>
					</Frame>
					<ModelScene parentKey="ModelScene" inherits="PanningModelSceneMixinTemplate">
						<Size x="294" y="488"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="2" y="-4"/>
						</Anchors>
							<Layers>
								<Layer level="ARTWORK">
									<Texture setAllPoints="true">
										<Color r="1" g="0" b="0" a="0"/>
									</Texture>
								</Layer>
							</Layers>
						<Frames>
							<Frame parentKey="ControlFrame" inherits="ModelSceneControlFrameTemplate" >
								<Anchors>
									<Anchor point="TOP" x="0" y="-10"/>
								</Anchors>
							</Frame>
							<Button parentKey="ClearAllPendingButton" inherits="UIMenuButtonStretchTemplate" hidden="true" mixin="WardrobeTransmogClearAllPendingButtonMixin">
								<Size x="26" y="26"/>
								<Anchors>
									<Anchor point="TOPRIGHT" x="-5" y="-10"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture parentKey="Icon" atlas="transmog-icon-revert-small" useAtlasSize="true">
											<Anchors>
												<Anchor point="LEFT" x="1"/>
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
								<Scripts>
									<OnClick method="OnClick" />
									<OnEnter method="OnEnter" />
									<OnLeave method="OnLeave"/>
								</Scripts>
							</Button>
						</Frames>
					</ModelScene>							
					<Button parentKey="HeadButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="HEADSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" x="-121" y="-41"/>
						</Anchors>
					</Button>
					<Button parentKey="ShoulderButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="SHOULDERSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.HeadButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="SecondaryShoulderButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate" hidden="true">
						<KeyValues>
							<KeyValue key="slot" value="SHOULDERSLOT" type="string"/>
							<KeyValue key="modification" value="Enum.TransmogModification.Secondary" type="global"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.ShoulderButton"/>
						</Anchors>
					</Button>
					<Button parentKey="BackButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="BACKSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.SecondaryShoulderButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="ChestButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="CHESTSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.BackButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="ShirtButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="SHIRTSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.ChestButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="TabardButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="TABARDSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.ShirtButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="WristButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="WRISTSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.TabardButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="HandsButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="HANDSSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" x="123" y="-118"/>
						</Anchors>
					</Button>
					<Button parentKey="WaistButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="WAISTSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.HandsButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="LegsButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="LEGSSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.WaistButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<Button parentKey="FeetButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="FEETSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.LegsButton" relativePoint="BOTTOM" x="0" y="-10"/>
						</Anchors>
					</Button>
					<!--
						Secondary hand before main hand so it gets processed first when dressing up the model
						when iterating over parentArray. Needed for Legion Artifacts.
					-->
					<Button parentKey="SecondaryHandButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="SECONDARYHANDSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="BOTTOM" x="27" y="45"/>
						</Anchors>
					</Button>
					<Button parentKey="MainHandButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="MAINHANDSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="BOTTOM" x="-26" y="45"/>
						</Anchors>
					</Button>
					<Button parentKey="MainHandEnchantButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogEnchantButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="MAINHANDSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="CENTER" x="-26" y="-203"/>
						</Anchors>
					</Button>
					<Button parentKey="SecondaryHandEnchantButton" parentArray="SlotButtons" inherits="BetterWardrobeTransmogEnchantButtonTemplate">
						<KeyValues>
							<KeyValue key="slot" value="SECONDARYHANDSLOT" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="CENTER" x="27" y="-203"/>
						</Anchors>
					</Button>
					<Frame parentKey="MoneyFrame" name="WardrobeTransmogMoneyFrame" inherits="SmallMoneyFrameTemplate">
						<Anchors>
							<Anchor point="RIGHT" relativeKey="$parent.MoneyRight" x="6" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								SmallMoneyFrame_OnLoad(self);
								MoneyFrame_SetType(self, "STATIC");
							</OnLoad>
						</Scripts>
					</Frame>
					<Button parentKey="ApplyButton" inherits="UIPanelButtonTemplate" text="APPLY">
						<Size x="112" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="0" y="-22"/>
						</Anchors>
						<Scripts>
							<OnClick>
								self:GetParent():ApplyPending(0);
							</OnClick>
						</Scripts>
					</Button>
					<Frame name="$parentSpecDropDown" parentKey="SpecDropDown" inherits="BW_UIDropDownMenuTemplate">
						<Scripts>
							<OnLoad function="BetterWardrobeTransmogFrameSpecDropDown_OnLoad"/>
						</Scripts>
					</Frame>
					<DropDownToggleButton parentKey="SpecButton" inherits="UIMenuButtonStretchTemplate">
						<Size x="22" y="22"/>
						<Anchors>
							<Anchor point="RIGHT" relativeKey="$parent.ApplyButton" relativePoint="LEFT" x="1" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="1">
								<Texture file="Interface\Buttons\SquareButtonTextures" parentKey="Icon">
									<Size x="12" y="12"/>
									<Anchors>
										<Anchor point="CENTER" x="0" y="0"/>
									</Anchors>
									<TexCoords left="0.45312500" right="0.64062500" top="0.20312500" bottom="0.01562500"/>
								</Texture>
							</Layer>
						</Layers>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
						<Scripts>
							<OnMouseDown>
								UIMenuButtonStretchMixin.OnMouseDown(self, button);
								PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
								BW_ToggleDropDownMenu(1, nil, self:GetParent().SpecDropDown, self, 0, 0);
								HelpTip:Hide(self:GetParent(), TRANSMOG_SPECS_BUTTON_TUTORIAL);
								SetCVarBitfield("closedInfoFrames", LE_FRAME_TUTORIAL_TRANSMOG_SPECS_BUTTON, true);
								self.Icon:SetPoint("CENTER", -1, -1);
							</OnMouseDown>
							<OnMouseUp>
								self.Icon:SetPoint("CENTER", 0, 0);
							</OnMouseUp>
						</Scripts>
					</DropDownToggleButton>
				</Frames>
				<Scripts>
					<OnLoad method="OnLoad"/>
					<OnEvent method="OnEvent"/>
					<OnShow method="OnShow"/>
					<OnHide method="OnHide"/>
					<OnUpdate method="OnUpdate"/>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad method="OnLoad"/>
		</Scripts>
	</Frame>
</Ui>