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

	<Frame name="GarrisonBaseInfoBoxTemplate" useParentLevel="true" virtual="true">
		<Layers>
			<Layer level="BORDER">
				<Texture atlas="Garr_InfoBox-BackgroundTile" horizTile="true" vertTile="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="1">
				<Texture atlas="_Garr_InfoBox-Top" horizTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" y="7"/>
						<Anchor point="TOPRIGHT" y="7"/>
					</Anchors>
				</Texture>
				<Texture atlas="!Garr_InfoBox-Left" vertTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" x="-7"/>
						<Anchor point="BOTTOMLEFT" x="-7"/>
					</Anchors>
				</Texture>
				<Texture atlas="!Garr_InfoBox-Left" vertTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT" x="7"/>
						<Anchor point="BOTTOMRIGHT" x="7"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture atlas="_Garr_InfoBox-Top" horizTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" y="-7"/>
						<Anchor point="BOTTOMRIGHT" y="-7"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="2">
				<Texture atlas="Garr_InfoBox-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="Garr_InfoBox-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBox-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBox-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="1.0" bottom="0.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBox-CornerShadow" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="Garr_InfoBox-CornerShadow" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativepoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBox-CornerShadow" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT" relativepoint="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBox-CornerShadow" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativepoint="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="1.0" bottom="0.0"/>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="3">
				<Texture atlas="_Garr_InfoBoxBorder-Top" horizTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture atlas="!Garr_InfoBoxBorder-Left" vertTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="!Garr_InfoBoxBorder-Left" vertTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="4">
				<Texture atlas="Garr_InfoBoxBorder-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	
	<Frame name="GarrisonInfoBoxBigBottomTemplate" inherits="GarrisonBaseInfoBoxTemplate" virtual="true">
		<Layers>
			<Layer level="BORDER" textureSubLevel="3">
				<Texture atlas="_Garr_InfoBoxBorder-BigBottom" horizTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="4">
				<Texture atlas="Garr_InfoBoxBorder-BigBottomCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-BigBottomCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
			</Layer>
		</Layers> 
	</Frame>
	
	<Frame name="GarrisonInfoBoxLittleBottomTemplate" inherits="GarrisonBaseInfoBoxTemplate" virtual="true">
		<Size x="300" y="575"/>
		<Layers>
			<Layer level="BORDER" textureSubLevel="3">
				<Texture atlas="_Garr_InfoBoxBorder-Top" horizTile="true" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="4">
				<Texture atlas="Garr_InfoBoxBorder-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-Corner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="1.0" bottom="0.0"/>
				</Texture>
			</Layer>
		</Layers> 
	</Frame>
	
	<Frame name="GarrisonInfoBoxFiligreeTemplate" inherits="GarrisonInfoBoxLittleBottomTemplate" virtual="true">
		<Size x="300" y="575"/>
		<Layers>
			<Layer level="BORDER" textureSubLevel="5">
				<Texture atlas="Garr_InfoBoxBorder-FiligreeCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-FiligreeCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-FiligreeCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
					<TexCoords left="0.0" right="1.0" top="1.0" bottom="0.0"/>
				</Texture>
				<Texture atlas="Garr_InfoBoxBorder-FiligreeCorner" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
					<TexCoords left="1.0" right="0.0" top="1.0" bottom="0.0"/>
				</Texture>
			</Layer>
		</Layers> 
	</Frame>
	
	<Button name="GarrisonBuildingTabTemplate" virtual="true">
		<Size x="91" y="50"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Text" inherits="GameFontHighlight" justifyH="CENTER">
					<Size x="91" y="50"/>
					<Anchors>
						<Anchor point="TOP"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<NormalTexture atlas="Garr_ListTab" useAtlasSize="true"/>
		<HighlightTexture atlas="Garr_ListTab-Highlight" useAtlasSize="true" alphaMode="ADD">
			<Size x="77" y="36"/>
			<Anchors>
				<Anchor point="TOP" y="-6"/>
			</Anchors>
		</HighlightTexture>
		<Scripts>
			<OnClick function="GarrisonBuildingTab_OnClick"/>
		</Scripts>
	</Button>
	
	<Button name="GarrisonBuildingListButtonTemplate" virtual="true">
		<Size x="260" y="50"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="BG" atlas="Garr_ListButton" useAtlasSize="true">
					<Anchors>
						<Anchor point="RIGHT" x="-2"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="1">
				<Texture parentKey="SelectedBG" atlas="Garr_ListButton-Selection" useAtlasSize="true" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="RIGHT" x="-2"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="Icon">
					<Size x="42" y="42"/>
					<Anchors>
						<Anchor point="LEFT" x="2" y="1"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.BG" x="8" y="-3"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BG" x="-8" y="6"/>
					</Anchors>
				</FontString>
				<Texture parentKey="Plans" atlas="Garr_PlanIcon-List" useAtlasSize="true">
					<Anchors>
						<Anchor point="RIGHT" x="-5"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<HighlightTexture atlas="Garr_ListButton-Highlight" useAtlasSize="true" alphaMode="ADD">
			<Anchors>
				<Anchor point="RIGHT" x="-2"/>
			</Anchors>
		</HighlightTexture>
		<Scripts>
			<OnLoad>
				self:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnClick function="GarrisonBuildingListButton_OnClick"/>
			<OnDragStart function="GarrisonBuildingListButton_OnDragStart"/>
			<OnDragStop function="GarrisonBuildingListButton_OnDragStop"/>
			<OnEnter function="GarrisonBuildingListButton_OnEnter"/>
			<OnLeave function="GarrisonBuildingListButton_OnLeave"/>
		</Scripts>
	</Button>
	
	<Button name="GarrisonBuildingSpecTemplate" motionScriptsWhileDisabled="true" virtual="true">
		<Size x="45" y="45"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon">
					<Size x="40" y="40"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<Texture atlas="Garr_Specialization_IconBorder" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Selected" atlas="Garr_Specialization_IconSelected" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick function="GarrisonBuildingSpec_OnClick"/>
			<OnEnter function="GarrisonBuildingSpec_OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
	
	<Button name="GarrisonPlotTemplate" virtual="true">
		<Size x="108" y="70"/>
		<Animations>
            <AnimationGroup parentKey="BuildingGlowPulseAnim" setToFinalAlpha="true" looping="REPEAT">
                <Scale childKey="BuildingPulse" duration="0.5" order="1" fromScaleX="0.8" fromScaleY="0.8" toScaleX="1.3" toScaleY="1.3">
                    <Origin point="CENTER">
                        <Offset x="0" y="0"/>
                    </Origin>
                </Scale>
                <Alpha childKey="BuildingPulse" smoothing="NONE" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
                <Alpha childKey="BuildingPulse" smoothing="NONE" duration="0.5" order="2" fromAlpha="1" toAlpha="0"/>
                <Alpha childKey="AlphaPulse" smoothing="NONE" duration="0.5" order="1" fromAlpha="0.5" toAlpha="1"/>
                <Alpha childKey="AlphaPulse" smoothing="NONE" duration="0.5" order="2" fromAlpha="1" toAlpha="0.5"/>
				<Scripts>
					<OnPlay>
						self:GetParent().BuildingPulse:Show();
						self:GetParent().AlphaPulse:Show();
					</OnPlay>
					<OnStop>
						self:GetParent().BuildingPulse:Hide();
						self:GetParent().AlphaPulse:Hide();
					</OnStop>
				</Scripts>
            </AnimationGroup>
			<AnimationGroup parentKey="BuildingCreateFlareAnim" setToFinalAlpha="true">
                <Scale childKey="BuildGlow" duration="0.5" order="1" fromScaleX="1.5" fromScaleY="0.8" toScaleX="1.5" toScaleY="1.2">
                    <Origin point="CENTER">
                        <Offset x="0" y="0"/>
                    </Origin>
                </Scale>
                <Alpha childKey="BuildGlow" duration="0.25" order="1" fromAlpha="0" toAlpha="1"/>
                <Alpha childKey="BuildGlow" startDelay="0.5" duration="0.5" order="1" fromAlpha="1" toAlpha="0"/>
                <Translation childKey="BuildGlow" duration="0.25" order="1" offsetX="0" offsetY="25"/>
                <Translation childKey="BuildLines" duration="0.25" order="1" offsetX="0" offsetY="25"/>
                <Alpha childKey="BuildLines" duration="0.25" order="1" fromAlpha="0" toAlpha="1"/>
                <Alpha childKey="BuildLines" startDelay="0.25" duration="0.25" order="1" fromAlpha="1" toAlpha="0"/>
                <Translation childKey="BuildLines2" startDelay="0.1" duration="0.5" order="1" offsetX="0" offsetY="25"/>
                <Alpha childKey="BuildLines2" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
                <Alpha childKey="BuildLines2" startDelay="0.5" duration="0.25" order="1" fromAlpha="1" toAlpha="0"/>
				<Scripts>
					<OnPlay>
						self:GetParent().BuildGlow:Show();
						self:GetParent().BuildLines:Show();
						self:GetParent().BuildLines2:Show();
					</OnPlay>
					<OnFinished>
						self:GetParent().BuildGlow:Hide();
						self:GetParent().BuildLines:Hide();
						self:GetParent().BuildLines2:Hide();
					</OnFinished>
				</Scripts>
            </AnimationGroup>
        </Animations>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Plot" atlas="Garr_Plot_Shadowmoon_A_1" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
				<Texture parentKey="PlotHover" alpha="0.5" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="PlotHighlight" atlas="Garr_Plot_Glow_1" useAtlasSize="true" hidden="true" alphaMode="ADD">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER" textureSubLevel="2">
				 <Texture parentKey="BuildingPulse" hidden="true" alpha="0" atlas="Garr_BuildingPlacementExplosion" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="CENTER" y="5"/>
                    </Anchors>
                </Texture>
				<Texture parentKey="AlphaPulse" hidden="true" alpha="0.5" alphaMode="ADD" atlas="Garr_BuildingPlacementExplosion" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="CENTER" relativeKey="$parent.BuildingPulse"/>
                    </Anchors>
                </Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Building" hidden="true">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BuildingHighlight" alpha="0.5" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="BOTTOM" relativeKey="$parent.Building"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="-1">
				<Texture parentKey="Icon" hidden="true">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="10" y="20"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="IconRing" atlas="Garr_BuildingIconRing_" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Icon"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="1">
				<Texture parentKey="Lock" atlas="Garr_LockedBuilding" hidden="true">
					<Size x="38" y="47"/>
					<Anchors>
						<Anchor point="CENTER" x="-12" y="-2"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BuildGlow" hidden="false" alpha="0" alphaMode="ADD" atlas="Garr_BuildFX-Glow" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="CENTER"/>
                    </Anchors>
                </Texture>
                <Texture parentKey="BuildLines" hidden="false" alpha="0" alphaMode="ADD" atlas="Garr_BuildFX-Lines" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="CENTER" relativeKey="$parent.BuildGlow" x="10" y="0"/>
                    </Anchors>
                </Texture>
                <Texture parentKey="BuildLines2" hidden="false" alpha="0" alphaMode="ADD" atlas="Garr_BuildFX-Lines" useAtlasSize="true">
                    <Anchors>
                        <Anchor point="CENTER" relativeKey="$parent.BuildGlow" x="-10" y="0"/>
                    </Anchors>
                </Texture>
				<Texture parentKey="UpgradeArrow" atlas="Garr_LevelUpgradeArrow" useAtlasSize="true" hidden="true">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Icon" relativePoint="BOTTOMRIGHT" x="-2" y="10"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="Timer" hidden="true">
				<Size x="34" y="34"/>
				<Anchors>
					<Anchor point="CENTER" relativeKey="$parent.Icon"/>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture parentKey="BG" atlas="Garr_BuildingIconTimerBG" setAllPoints="true"/>
					</Layer>
					<Layer level="ARTWORK">
						<Texture parentKey="CompleteRing" atlas="Garr_BuildingIconTimerFill" setAllPoints="true" hidden="true"/>
					</Layer>
				</Layers>
				<Frames>
					<Cooldown parentKey="Cooldown" reverse="true" hideCountdownNumbers="true">
						<Size x="44" y="44"/>
						<Anchors>
							<Anchor point="CENTER"/>
						</Anchors>
						<SwipeTexture file="Interface\Garrison\Garr_TimerFill"/>
					</Cooldown>
				</Frames>
			</Frame>
		</Frames>	
		<Scripts>
			<OnLoad>
				self:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnDragStart function="GarrisonPlot_OnDragStart"/>
			<OnDragStop function="GarrisonPlot_OnDragStop"/>
			<OnReceiveDrag function="GarrisonPlot_OnReceiveDrag"/>
			<OnMouseDown>
				GarrisonPlot_OnClick(self);
			</OnMouseDown>
			<OnEnter function="GarrisonPlot_OnEnter"/>
			<OnLeave function="GarrisonPlot_OnLeave"/>
		</Scripts>
	</Button>

	<Button name="GarrisonBuildingFollowerButtonTemplate" inherits="GarrisonFollowerButtonTemplate" virtual="true">
		<Scripts>
			<OnClick function="GarrisonBuildingFollowerButton_OnClick"/>
			<OnEnter function="GarrisonBuildingFollowerButton_OnEnter"/>
			<OnLeave function="GarrisonBuildingFollowerButton_OnLeave"/>
		</Scripts>
	</Button>
	
	<Frame name="GarrisonBuildingFrame" inherits="GarrisonUITemplate" parent="UIParent" enableMouse="true" toplevel="true" hidden="true">
		<Size x="1002" y="662"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Frames>
			<Button name="$parentTutorialButton" parentKey="MainHelpButton" inherits="MainHelpPlateButton">
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent" x="5" y="20" />
				</Anchors>
				<Scripts>
					<OnClick function="GarrisonBuilding_ToggleTutorial"/>
				</Scripts>
			</Button>
			<Frame parentKey="BuildingList" inherits="GarrisonInfoBoxBigBottomTemplate">
				<Size x="282" y="565"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="30" y="34"/>
				</Anchors>
				<Frames>
					<Button parentKey="Tab1" inherits="GarrisonBuildingTabTemplate" id="1">
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="8" y="-13"/>
						</Anchors>
					</Button>
					<Button parentKey="Tab2" inherits="GarrisonBuildingTabTemplate" id="2">
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.Tab1" relativePoint="RIGHT" x="-1" />
						</Anchors>
					</Button>
					<Button parentKey="Tab3" inherits="GarrisonBuildingTabTemplate" id="3">
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.Tab2" relativePoint="RIGHT" x="-1" />
						</Anchors>
					</Button>
					<Button parentArray="Buttons" inherits="GarrisonBuildingListButtonTemplate">
						<Anchors>
							<Anchor point="TOP" y="-10"/>
						</Anchors>
					</Button>
					<Frame parentKey="MoneyFrame" inherits="ThinGoldEdgeTemplate">
						<Size x="265" y="19"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-7" y="3"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Materials" inherits="GameFontHighlight" justifyH="RIGHT">
									<Size x="120" y="0"/>
									<Anchors>
										<Anchor point="RIGHT" x="-5"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<Frame parentKey="Tooltip" inherits="TooltipBorderedFrameTemplate" hidden="true" frameStrata="HIGH">
						<Size x="230" y="300"/>
						<Anchors>
							<Anchor point="LEFT" relativePoint="RIGHT" x="-3" y="-5"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Name" inherits="GameFontHighlightMedium" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" x="15" y="-15"/>
									</Anchors>
								</FontString>
								<FontString parentKey="Rank1" inherits="GameFontNormal" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Name" relativePoint="BOTTOMLEFT" x="0" y="-10"/>
									</Anchors>
								</FontString>
								<FontString parentKey="Rank1Tooltip" inherits="GameFontHighlight" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Rank1" relativePoint="BOTTOMLEFT" x="10" y="-5"/>
									</Anchors>
								</FontString>
								
								<FontString parentKey="Rank2" inherits="GameFontNormal" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Rank1Tooltip" relativePoint="BOTTOMLEFT" x="-10" y="-10"/>
									</Anchors>
								</FontString>
								<FontString parentKey="Rank2Tooltip" inherits="GameFontHighlight" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Rank2" relativePoint="BOTTOMLEFT" x="10" y="-5"/>
									</Anchors>
								</FontString>
								
								<FontString parentKey="Rank3" inherits="GameFontNormal" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Rank2Tooltip" relativePoint="BOTTOMLEFT" x="-10" y="-10"/>
									</Anchors>
								</FontString>
								<FontString parentKey="Rank3Tooltip" inherits="GameFontHighlight" justifyH="LEFT">
									<Size x="190" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.Rank3" relativePoint="BOTTOMLEFT" x="10" y="-5"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
			</Frame>
			<Frame parentKey="FollowerList" inherits="GarrisonListTemplateHeader" name="$parentFollowers" hidden="true" frameStrata="HIGH">
				<Size x="305" y="565"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="33" y="34"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture file="Interface\Common\ShadowOverlay-Left">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT"/>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString parentKey="Header" inherits="GameFontNormalLarge" justifyH="CENTER" text="GARRISON_BUILDING_SELECT_FOLLOWER_TITLE">
							<Anchors>
								<Anchor point="TOP" x="-7" y="20"/>
							</Anchors>
						</FontString>
						<FontString parentKey="NoFollowerText" inherits="GameFontNormalLarge" justifyH="CENTER" text="GARRISON_BUILDING_NO_FOLLOWERS">
							<Size x="228" y="0"/>
							<Anchors>
								<Anchor point="LEFT" x="22" y="0"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						self:SetFrameLevel(self:GetParent():GetFrameLevel() + 2);
					</OnLoad>
					<OnShow function="GarrisonBuildingFollowerList_OnShow"/>
					<OnHide function="GarrisonBuildingFollowerList_OnHide"/>
				</Scripts>
			</Frame>
			<Frame parentKey="InfoBox" inherits="GarrisonInfoBoxFiligreeTemplate">
				<Size x="634" y="160"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-40" y="-35"/>
				</Anchors>
				
				<Animations>
					<AnimationGroup parentKey="UpgradeAnim">
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="1"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="-1.0" duration="0.9" order="2"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="3"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="-1.0" duration="0.9" order="4"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="5"/>
					</AnimationGroup>
					<Scripts>
						<OnPlay>
							self:GetParent().UpgradeGlow:SetAlpha(0);
						</OnPlay>
						<OnFinished>
							self:GetParent().UpgradeGlow:SetAlpha(1);
						</OnFinished>
					</Scripts>
				</Animations>
		
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Building" useAtlasSize="true">
							<Anchors>
								<Anchor point="LEFT" />
							</Anchors>
						</Texture>
						<FontString parentKey="Title" inherits="GameFontNormalMed3" justifyH="LEFT">
							<Size x="315" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="221" y="-24"/>
							</Anchors>
						</FontString>
						<FontString parentKey="Description" inherits="GameFontHighlight" justifyH="LEFT">
							<Size x="315" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.Title" relativePoint="BOTTOMLEFT" y="-4"/>
							</Anchors>
							<Color r="0.804" g="0.725" b="0.616"/>
						</FontString>
						<Texture parentKey="RankBadge" atlas="Garr_LevelBadge_1" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPRIGHT" x="-30" y="-25" />
							</Anchors>
						</Texture>
						<FontString parentKey="RankLabel" inherits="GameFontHighlight" justifyH="CENTER" text="LEVEL">
							<Size x="64" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.RankBadge" relativePoint="BOTTOM" y="5"/>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="1">
						<Texture parentKey="Lock" atlas="Garr_LockedBuilding" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.Building"/>
							</Anchors>
						</Texture>
						<Texture parentKey="InfoBar" atlas="Garr_CostBar" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="BOTTOM" relativeKey="$parent.Building" y="17"/>
							</Anchors>
						</Texture>
						<Texture name="GarrisonBuildingUpgradeGlow" parentKey="UpgradeGlow" atlas="Garr_LevelBadgeGlow" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.RankBadge" />
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="2">
						<FontString parentKey="InfoText" inherits="GameFontNormal" justifyH="CENTER">
							<Size x="150" y="0"/>
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.InfoBar" y="1"/>
							</Anchors>
						</FontString>
						<FontString parentKey="TimeLeft" inherits="GameFontHighlight" justifyH="CENTER">
							<Size x="150" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.InfoText" relativePoint="BOTTOM" y="-7"/>
							</Anchors>
						</FontString>
						<Texture parentKey="UpgradeBadge" hidden="true">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RankBadge" x="4" y="-4"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="Timer" hidden="true">
						<Size x="50" y="50"/>
						<Anchors>
							<Anchor point="CENTER" relativeKey="$parent.Building"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="Glow" atlas="Garr_BuildingTimerGlow" useAtlasSize="true" hidden="true">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BACKGROUND" textureSubLevel="1">
								<Texture parentKey="Icon" atlas="Garr_BuildIcon" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER">
								<Texture parentKey="BG" atlas="Garr_BuildingTimerBG" setAllPoints="true"/>
							</Layer>
							<Layer level="ARTWORK">
								<Texture parentKey="CompleteRing" atlas="Garr_BuildingTimerFill" setAllPoints="true" hidden="true"/>
							</Layer>
						</Layers>
						<Frames>
							<Cooldown parentKey="Cooldown" reverse="true" hideCountdownNumbers="true">
								<Size x="64" y="64"/>
								<Anchors>
									<Anchor point="CENTER"/>
								</Anchors>
								<SwipeTexture file="Interface\Garrison\Garr_TimerFill"/>
							</Cooldown>
							<Button parentKey="Cancel" enableMouse="true" frameStrata="HIGH">
								<Size x="30" y="30"/>
								<Anchors>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture file="Interface\Buttons\UI-GroupLoot-Pass-Up" alpha="0.8" parentKey="texture"/>
									</Layer>
								</Layers>
								<Scripts>
									<OnEnter>
										self.texture:SetAlpha(1.0);
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(CANCEL);
									</OnEnter>
									<OnLeave>
										self.texture:SetAlpha(0.8);
										GameTooltip_Hide();
									</OnLeave>
									<OnMouseDown>
										self.texture:SetPoint("TOPLEFT", 1, -1);
									</OnMouseDown>
									<OnMouseUp>
										self.texture:SetPoint("TOPLEFT", 0, 0);
									</OnMouseUp>
									<OnClick function="GarrisonBuildingFrameTimerCancel_OnClick"/>
								</Scripts>
							</Button>
							<Frame parentKey="CompleteMouseOver" frameStrata="HIGH">
								<Size x="80" y="80"/>
								<Anchors>
									<Anchor point="CENTER"/>
								</Anchors>
								<Scripts>
									<OnEnter function="GarrisonBuildingFrameComplete_OnEnter"/>
									<OnLeave function="GameTooltip_Hide"/>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
					<Frame parentKey="PlansNeeded" hidden="true">
						<Size x="175" y="44"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="35" y="10"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture atlas="Garr_BuildingShadowOverlay" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" y="40"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BACKGROUND">
								<Texture atlas="Garr_CostBar" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString inherits="GameFontNormal" text="GARRISON_BUILDING_PLANS_REQUIRED">
									<Anchors>
										<Anchor point="CENTER"/>
									</Anchors>
								</FontString>
								<Texture atlas="Garr_PlansRequiredIcon" useAtlasSize="true">
									<Anchors>
										<Anchor point="BOTTOM" relativePoint="TOP" y="-30"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
					<Button parentKey="UpgradeButton" inherits="UIPanelButtonTemplate" text="UPGRADE" motionScriptsWhileDisabled="true">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.RankLabel" relativePoint="BOTTOM" y="-3"/>
						</Anchors>
						<Scripts>
							<OnClick function="GarrisonBuildingFrame_StartUpgrade"/>
							<OnEnter>
								if (self.tooltip) then
									GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT")
									GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, true);
									GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Button>
					<Frame parentKey="UpgradeCostBar" hidden="false">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.RankLabel" relativePoint="BOTTOM" y="-30"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="CostLabel" inherits="GameFontNormal" justifyH="LEFT" text="COSTS_LABEL">
									<Anchors>
										<Anchor point="TOPLEFT"/>`
									</Anchors>
								</FontString>
								<FontString parentKey="CostAmount" inherits="GameFontHighlight" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.CostLabel" relativePoint="TOPRIGHT" x="2" y="0"/>
									</Anchors>
								</FontString>
								<FontString parentKey="TimeLabel" inherits="GameFontNormal" text="TIME_LABEL">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.CostLabel" relativePoint="BOTTOMLEFT" y="-5"/>
									</Anchors>
								</FontString>
								<FontString parentKey="TimeAmount" inherits="GameFontHighlight">
									<Anchors>
										<Anchor point="LEFT" relativeKey="$parent.TimeLabel" relativePoint="RIGHT" x="2"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<Frame parentKey="SpecFrame" hidden="true">
						<Size x="150" y="57"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="221" y="20"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="BGLeft" atlas="Garr_Specialization_FrameLeft" useAtlasSize="true">
									<Anchors>
										<Anchor point="LEFT" />
									</Anchors>
								</Texture>
								<Texture parentKey="BGRight"  atlas="Garr_Specialization_FrameLeft" useAtlasSize="true">
									<Anchors>
										<Anchor point="RIGHT" />
									</Anchors>
									<TexCoords left="1.0" right="0.0" top="0.0" bottom="1.0"/>
								</Texture>
								<Texture atlas="Garr_Specialization_FrameMid" useAtlasSize="true">
									<Anchors>
										<Anchor point="LEFT" relativeKey="$parent.BGLeft" relativePoint="RIGHT"/>
										<Anchor point="RIGHT" relativeKey="$parent.BGRight" relativePoint="LEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Button parentArray="Specs" inherits="GarrisonBuildingSpecTemplate">
								<Anchors>
									<Anchor point="LEFT" x="7"/>
								</Anchors>
							</Button>
						</Frames>
					</Frame>
					<Button parentKey="FollowerPortrait" inherits="GarrisonFollowerPortraitTemplate">
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="221" y="20"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString parentKey="FollowerName" inherits="GameFontNormal" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOPLEFT" x="70" y="-17"/>
									</Anchors>
								</FontString>
								<FontString parentKey="FollowerStatus" inherits="GameFontHighlightSmall" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FollowerName" relativePoint="BOTTOMLEFT" x="1" y="-5"/>
									</Anchors>
									<Color r="0.698" g="0.941" b="1" a="1"/>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Button parentKey="RemoveFollowerButton">
								<Size x="14" y="14"/>
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-1" y="0"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture file="Interface\Buttons\UI-GroupLoot-Pass-Up" alpha="0.75" parentKey="texture"/>
									</Layer>
								</Layers>
								<Scripts>
									<OnEnter>
										self.texture:SetAlpha(1.0);
										GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
										GameTooltip:SetText(REMOVE);
									</OnEnter>
									<OnLeave>
										self.texture:SetAlpha(0.75);
										GameTooltip_Hide();
									</OnLeave>
									<OnMouseDown>
										self.texture:SetPoint("TOPLEFT", 1, -1);
									</OnMouseDown>
									<OnMouseUp>
										self.texture:SetPoint("TOPLEFT", 0, 0);
									</OnMouseUp>
									<OnClick>
										C_Garrison.RemoveFollowerFromBuilding(GarrisonBuildingFrame.InfoBox.ID);
									</OnClick>
								</Scripts>
							</Button>
						</Frames>
						<Scripts>
							<OnEnter function="GarrisonFollowerPortrait_OnEnter" />
							<OnLeave function="GarrisonFollowerPortrait_OnLeave" />
						</Scripts>
					</Button>
					<Button parentKey="AddFollowerButton" hidden="true">
						<Size x="52" y="60"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="221" y="20"/>
						</Anchors>
						<Layers>
							<Layer level="BORDER" textureSubLevel="0">
								<Texture parentKey="EmptyPortrait" atlas="GarrMission_PortraitRing_Empty" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOP" relativeKey="$parent.PortraitRing"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="OVERLAY">
								<Texture parentKey="Plus" atlas="Garr_Building-AddFollowerPlus" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.PortraitRing" y="5"/>
									</Anchors>
								</Texture>
								<Texture parentKey="PortraitHighlight" atlas="GarrMission_PortraitRing_Highlight" useAtlasSize="true" alphaMode="ADD" hidden="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.PortraitRing" />
									</Anchors>
								</Texture>
								<FontString parentKey="AddFollowerText" inherits="GameFontHighlight" justifyH="LEFT">
									<Size x="200" y="0"/>
									<Anchors>
										<Anchor point="LEFT" relativePoint="RIGHT" x="10" y="0"/>
									</Anchors>
									<Color r="0.804" g="0.725" b="0.616"/>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnClick function="GarrisonBuildingAddFollowerButton_OnClick"/>
							<OnEnter function="GarrisonBuildingAddFollowerButton_OnEnter"/>
							<OnLeave function="GarrisonBuildingAddFollowerButton_OnLeave"/>
						</Scripts>
					</Button>
					<Frame parentKey="MouseOver" frameStrata="HIGH">
						<Size x="80" y="60"/>
						<Anchors>
							<Anchor point="TOPRIGHT" x="-15" y="-20"/>
						</Anchors>
						<Scripts>
							<OnEnter function="GarrisonBuildingFrameLevelIcon_OnEnter"/>
							<OnLeave function="GarrisonBuildingFrameLevelIcon_OnLeave"/>
						</Scripts>
					</Frame>
					<Frame parentKey="DragArea" frameStrata="HIGH">
						<Size x="210" y="140"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="10" y="-12"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self:RegisterForDrag("LeftButton");
							</OnLoad>
							<OnDragStart function="GarrisonBuildingInfoBox_OnDragStart"/>
							<OnDragStop function="GarrisonBuildingInfoBox_OnDragStop"/>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
			<Frame parentKey="TownHallBox" inherits="GarrisonInfoBoxFiligreeTemplate" hidden="true">
				<Size x="634" y="160"/>
				<Anchors>
					<Anchor point="TOPRIGHT" x="-40" y="-35"/>
				</Anchors>
				
				<Animations>
					<AnimationGroup parentKey="UpgradeAnim">
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="1"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="-1.0" duration="0.9" order="2"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="3"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="-1.0" duration="0.9" order="4"/>
						<Alpha target="GarrisonBuildingUpgradeGlow" change="1.0" duration="0.9" order="5"/>
					</AnimationGroup>
					<Scripts>
						<OnPlay>
							self:GetParent().UpgradeGlow:SetAlpha(0);
						</OnPlay>
						<OnFinished>
							self:GetParent().UpgradeGlow:SetAlpha(1);
						</OnFinished>
					</Scripts>
				</Animations>
		
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Building" useAtlasSize="true">
							<Anchors>
								<Anchor point="LEFT" />
							</Anchors>
						</Texture>
						<FontString parentKey="Title" inherits="GameFontNormalMed3" justifyH="LEFT">
							<Size x="315" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="221" y="-24"/>
							</Anchors>
						</FontString>
						<FontString parentKey="Description" inherits="GameFontHighlight" justifyH="LEFT" text="GARRISON_TOWN_HALL_EXPLANATION">
							<Size x="315" y="0"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.Title" relativePoint="BOTTOMLEFT" y="-4"/>
							</Anchors>
						</FontString>
						<Texture parentKey="RankBadge" atlas="Garr_LevelBadge_1" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPRIGHT" x="-30" y="-25" />
							</Anchors>
						</Texture>
						<FontString parentKey="RankLabel" inherits="GameFontHighlight" justifyH="CENTER" text="LEVEL">
							<Size x="64" y="0"/>
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.RankBadge" relativePoint="BOTTOM" y="5"/>
							</Anchors>
						</FontString>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="1">
						<Texture name="GarrisonBuildingUpgradeGlow" parentKey="UpgradeGlow" atlas="Garr_LevelBadgeGlow" useAtlasSize="true" hidden="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.RankBadge" />
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK" textureSubLevel="2">
						<Texture parentKey="UpgradeBadge" hidden="true">
							<Anchors>
								<Anchor point="BOTTOMRIGHT" relativeKey="$parent.RankBadge" x="4" y="-4"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Frames>
					<Button parentKey="UpgradeButton" inherits="UIPanelButtonTemplate" text="UPGRADE" motionScriptsWhileDisabled="true">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.RankLabel" relativePoint="BOTTOM" y="-3"/>
						</Anchors>
						<Scripts>
							<OnClick function="GarrisonTownHall_StartUpgrade"/>
							<OnEnter function="GarrisonTownHallUpgradeButton_OnEnter"/>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Button>
					<Frame parentKey="UpgradeCostBar" hidden="false">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="TOP" relativeKey="$parent.RankLabel" relativePoint="BOTTOM" y="-30"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="CostLabel" inherits="GameFontNormal" justifyH="LEFT" text="COSTS_LABEL">
									<Anchors>
										<Anchor point="TOPLEFT"/>`
									</Anchors>
								</FontString>
								<FontString parentKey="CostAmount" inherits="GameFontHighlight" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.CostLabel" relativePoint="TOPRIGHT" x="2" y="0"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
					<Frame parentKey="MouseOver" frameStrata="HIGH">
						<Size x="80" y="65"/>
						<Anchors>
							<Anchor point="TOPRIGHT" x="-15" y="-20"/>
						</Anchors>
						<Scripts>
							<OnEnter function="GarrisonTownHallBoxMouseOver_OnEnter"/>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Frame>
				</Frames>
			</Frame>
			<Frame parentKey="MapFrame">
				<Size x="672" y="468"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent.InfoBox" relativePoint="BOTTOMLEFT" x="-15" y="5"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Map" setAllPoints="true"/>
					</Layer>
				</Layers>
				<Frames>
					<Button parentKey="TownHall">
						<Size x="108" y="144"/>
						<Anchors>
							<Anchor point="CENTER" relativePoint="TOPLEFT" x="290" y="-130"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND" textureSubLevel="-1">
								<Texture atlas="Garr_Plot_Shadowmoon_A_4" useAtlasSize="true">
									<Anchors>
										<Anchor point="BOTTOM"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER" textureSubLevel="-1">>
								<Texture parentKey="Building" useAtlasSize="true">
									<Anchors>
										<Anchor point="BOTTOM"/>
									</Anchors>
								</Texture>
								<Texture parentKey="BuildingHighlight" alpha="0.5" alphaMode="ADD" hidden="true">
									<Anchors>
										<Anchor point="BOTTOM"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER" textureSubLevel="0">
								 <Texture parentKey="BuildingPulse" hidden="true" alpha="0" atlas="Garr_BuildingUpgradeExplosion" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" y="-35"/>
									</Anchors>
								</Texture>
								<Texture parentKey="AlphaPulse" hidden="true" alpha="0.5" alphaMode="ADD" atlas="Garr_BuildingUpgradeExplosion" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.BuildingPulse"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER" textureSubLevel="2">
								<Texture parentKey="BannerMid" atlas="Garr_TownHallBanner_Mid" useAtlasSize="true">
									<Anchors>
										<Anchor point="BOTTOM"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="BORDER" textureSubLevel="1">
								<Texture atlas="Garr_TownHallBanner_Left" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOPRIGHT" relativeKey="$parent.BannerMid" relativePoint="TOPLEFT" x="16" y="-6"/>
									</Anchors>
								</Texture>
								<Texture atlas="Garr_TownHallBanner_Right" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.BannerMid" relativePoint="TOPRIGHT" x="-16" y="-6"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Filigree" atlas="Garr_TownHallBanner_LevelFiligree" useAtlasSize="true">
									<Anchors>
										<Anchor point="BOTTOM" relativeKey="$parent.BannerMid" relativePoint="TOP" x="0" y="-18"/>
									</Anchors>
								</Texture>
							</Layer>
							<Layer level="ARTWORK" >
								<FontString parentKey="TownHallName" inherits="GameFontBlackSmall">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.BannerMid" y="2"/>
									</Anchors>
								</FontString>
								<FontString parentKey="Level" inherits="GameFontNormalMed3" justifyH="CENTER">
									<Anchors>
										<Anchor point="BOTTOM" relativeKey="$parent.Filigree" relativePoint="BOTTOM" x="0" y="13"/>
									</Anchors>
								</FontString>
								<Texture parentKey="UpgradeArrow" atlas="Garr_LevelUpgradeArrow" useAtlasSize="true" hidden="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.Level" relativePoint="TOPLEFT" x="19" y="-9"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Scripts>
							<OnEnter>
								self.BuildingHighlight:Show();
							</OnEnter>
							<OnLeave>
								self.BuildingHighlight:Hide();
							</OnLeave>
							<OnClick function="GarrisonTownHall_OnClick"/>
						</Scripts>
						<Animations>
							<AnimationGroup parentKey="BuildingGlowPulseAnim" setToFinalAlpha="true" looping="REPEAT">
								<Scale childKey="BuildingPulse" duration="0.5" order="1" fromScaleX="0.8" fromScaleY="0.8" toScaleX="1.3" toScaleY="1.3">
									<Origin point="CENTER">
										<Offset x="0" y="0"/>
									</Origin>
								</Scale>
								<Alpha childKey="BuildingPulse" smoothing="NONE" duration="0.5" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="BuildingPulse" smoothing="NONE" duration="0.5" order="2" fromAlpha="1" toAlpha="0"/>
								<Alpha childKey="AlphaPulse" smoothing="NONE" duration="0.5" order="1" fromAlpha="0.5" toAlpha="1"/>
								<Alpha childKey="AlphaPulse" smoothing="NONE" duration="0.5" order="2" fromAlpha="1" toAlpha="0.5"/>

								<Scripts>
									<OnPlay>
										self:GetParent().BuildingPulse:Show();
										self:GetParent().AlphaPulse:Show();
									</OnPlay>
									<OnStop>
										self:GetParent().BuildingPulse:Hide();
										self:GetParent().AlphaPulse:Hide();
									</OnStop>
								</Scripts>
							</AnimationGroup>
						</Animations>
					</Button>
					<Button parentArray="Plots" inherits="GarrisonPlotTemplate"/>
				</Frames>
			</Frame>
			
			<Frame parentKey="Confirmation" frameStrata="HIGH" hidden="true">
				<Size x="271" y="123"/>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture atlas="Garr_BuildingConfirmation" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="Garr_BuildIcon" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="25" y="-27"/>
							</Anchors>
						</Texture>
						<FontString parentKey="CostLabel" inherits="GameFontNormal" text="COSTS_LABEL">
							<Shadow>
								<Offset x="1" y="-1"/>
							</Shadow>
							<Anchors>
								<Anchor point="TOPLEFT" x="81" y="-34"/>
							</Anchors>
						</FontString>
						<FontString parentKey="Cost" inherits="GameFontHighlight">
							<Shadow>
								<Offset x="1" y="-1"/>
							</Shadow>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.CostLabel" relativePoint="RIGHT" x="5"/>
							</Anchors>
						</FontString>
						<FontString parentKey="TimeLabel" inherits="GameFontNormal" text="TIME_LABEL">
							<Shadow>
								<Offset x="1" y="-1"/>
							</Shadow>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.CostLabel" relativePoint="BOTTOMLEFT" y="-8"/>
							</Anchors>
						</FontString>
						<FontString parentKey="Time" inherits="GameFontHighlight">
							<Shadow>
								<Offset x="1" y="-1"/>
							</Shadow>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.TimeLabel" relativePoint="RIGHT" x="5"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Button parentKey="CancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function="GarrisonBuildingFrame_ClearConfirmation"/>
						</Scripts>
					</Button>
					<Button parentKey="BuildButton" inherits="UIPanelButtonTemplate" text="GARRISON_BUILD">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function ="GarrisonBuildingFrame_ConfirmBuild"/>
						</Scripts>
					</Button>
					<Button parentKey="UpgradeButton" inherits="UIPanelButtonTemplate" text="UPGRADE">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function ="GarrisonBuildingFrame_ConfirmUpgrade"/>
						</Scripts>
					</Button>
					<Button parentKey="UpgradeGarrisonButton" inherits="UIPanelButtonTemplate" text="UPGRADE">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function ="GarrisonBuildingFrame_ConfirmUpgradeGarrison"/>
						</Scripts>
					</Button>
					<Button parentKey="ReplaceButton" inherits="UIPanelButtonTemplate" text="REPLACE">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function ="GarrisonBuildingFrame_ConfirmBuild"/>
						</Scripts>
					</Button>
					<Button parentKey="SwitchButton" inherits="UIPanelButtonTemplate" text="SWITCH">
						<Size x="80" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="45" y="23"/>
						</Anchors>
						<Scripts>
							<OnClick function ="GarrisonBuildingSpec_ConfirmSwitch"/>
						</Scripts>
					</Button>
				</Frames>
			</Frame>
		</Frames>
		<Scripts>
			<OnShow function="GarrisonBuildingFrame_OnShow"/>
			<OnLoad function="GarrisonBuildingFrame_OnLoad"/>
			<OnEvent function="GarrisonBuildingFrame_OnEvent"/>
			<OnHide>
				C_Garrison.CloseArchitect();
				HelpPlate_Hide();
			</OnHide>
		</Scripts>
	</Frame>
	
	
	<Frame name="GarrisonBuildingPlacer" parent="UIParent" frameStrata="HIGH" hidden="true">
		<Size x="108" y="70"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Building" atlas="GarrBuilding_LumberMill_1_A_Map" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY" textureSubLevel="-1">
				<Texture parentKey="Icon" >
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="10" y="20"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="IconRing" atlas="Garr_BuildingIconRing_" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.Icon"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
	</Frame>
	
	<Button name="GarrisonBuildingPlacerFrame" parent="UIParent" frameStrata="HIGH" setAllPoints="true" hidden="true">
		<Scripts>
			<OnClick function="GarrisonBuildingPlacerFrame_OnClick"/>
		</Scripts>
	</Button>
</Ui>