<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_GarrisonLandingPage.lua"/>
	
	<Frame name="GarrisonLandingPageMissionRewardTemplate" enableMouse="true" virtual="true">
		<Size x="32" y="32"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture atlas="GarrLanding_RewardsShadow" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon">
					<Size x="30" y="30"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<FontString parentKey="Quantity" inherits="NumberFontNormalSmall">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				if (self.itemID) then
					GameTooltip:SetItemByID(self.itemID);
					return;
				end
				if (self.title) then
					GameTooltip:SetText(self.title);
				end
				if (self.tooltip) then
					GameTooltip:AddLine(self.tooltip, 1, 1, 1, true);
				end
				GameTooltip:Show();
			</OnEnter>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Frame>

	<Button name="GarrisonLandingPageMissionTemplate" virtual="true">
		<Size x="400" y="47"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="BG" atlas="GarrLanding-Mission-InProgress" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="CostBG" atlas="GarrLandingList-CostBG" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOM" x="-15" y="4"/>
					</Anchors>
				</Texture>
				<Texture parentKey="RewardBG" atlas="GarrLanding_RewardsListBG" useAtlasSize="true">
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="MissionTypeIcon" atlas="GarrMission_MissionIcon-Combat">
					<Size x="50" y="50"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="2"/>
					</Anchors>
				</Texture>
				<FontString parentKey="Title" inherits="GameFontHighlightLarge" justifyH="LEFT">
					<Size x="290" y="15"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="63" y="-8"/>
					</Anchors>
					<Color r=".75" g=".75" b=".73"/>
				</FontString>
				<FontString parentKey="MissionType" inherits="GameFontNormal" justifyH="LEFT">
					<Size x="390" y="0"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Title" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
					</Anchors>
					<Color r="0.792" g="0.690" b="0.529" a="1"/>
				</FontString>
				<FontString parentKey="TimeLeft" inherits="GameFontNormalLarge2" justifyH="RIGHT">
					<Anchors>
						<Anchor point="TOPRIGHT" x="-10" y="-7"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Status" inherits="GameFontNormal" justifyH="RIGHT">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" x="-10" y="5"/>
					</Anchors>
					<Color r="0.792" g="0.690" b="0.529" a="1"/>
				</FontString>
				<FontString parentKey="CostLabel" inherits="GameFontNormal" justifyH="LEFT" text="COSTS_LABEL" hidden="true">
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.CostBG" relativePoint="LEFT" x="4" y="0"/>
					</Anchors>
				</FontString>
				<Texture parentKey="MaterialIcon" atlas="GarrMission_CurrencyIcon-Material" hidden="true">
					<Size x="24" y="24"/>
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.CostBG" relativePoint="RIGHT" x="0" y="0"/>
					</Anchors>
				</Texture>
				<FontString parentKey="Cost" inherits="GameFontHighlight" justifyH="RIGHT" hidden="true">
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.MaterialIcon" relativePoint="LEFT" x="0" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentArray="Rewards" parentKey="Reward1" inherits="GarrisonLandingPageMissionRewardTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" x="-6" y="-2"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Rewards" parentKey="Reward2" inherits="GarrisonLandingPageMissionRewardTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.Reward1" relativePoint="LEFT" x="-10" y="0"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Rewards" parentKey="Reward3" inherits="GarrisonLandingPageMissionRewardTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.Reward2" relativePoint="LEFT" x="-10" y="0"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnEnter function="GarrisonLandingPageMission_OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
			<OnClick function="GarrisonLandingPageMission_OnClick"/>
		</Scripts>
	</Button>
	
	<Frame name="GarrisonLandingPageShipmentStatusTemplate" virtual="true">
		<Size x="64" y="64"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture atlas="GarrLanding-TradeskillTimer-ParchmentBG" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" texturesublevel="1">
				<Texture parentKey="Icon" alpha="0.5">
					<Size x="62" y="62"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="BG" atlas="GarrLanding-TradeskillTimer-BG" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
				<Texture parentKey="Done" atlas="GarrLanding-ShipmentCompleteGlow" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString parentKey="Name" inherits="GameFontHighlightMedium" justifyV="TOP" justifyH="CENTER">
					<Size x="120" y="0"/>
					<Anchors>
						<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="-5"/>
					</Anchors>
					<Color r=".75" g=".75" b=".73"/>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<FontString parentKey="Count" inherits="GameFontHighlightLarge" justifyH="CENTER">
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="12"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Cooldown parentKey="Swipe" reverse="true">
				<Size x="64" y="64"/>
				<Anchors>
					<Anchor point="CENTER"/>
				</Anchors>
				<SwipeTexture file="Interface\Garrison\GarrLanding-TradeskillTimerFill"/>
			</Cooldown>
		</Frames>
		<Scripts>
			<OnEnter function="GarrisonLandingPageShipment_OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Frame>
	
	<Frame name="GarrisonLandingPage" parent="UIParent" enableMouse="true" toplevel="true" hidden="true">
		<Size x="830" y="538"/>
		<Anchors>
			<Anchor point="CENTER"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND" textureSubLevel="-1">
				<Texture atlas="GarrLanding-MiddleTile" horizTile="true" vertTile="true">
					<Anchors>
						<Anchor point="TOPLEFT" x="25" y="-25"/>
						<Anchor point="BOTTOMRIGHT" x="-25" y="25"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BACKGROUND" textureSubLevel="2">
				<Texture parentKey="TL" atlas="GarrLanding-upperleft" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" x="-2" y="1"/>
					</Anchors>
				</Texture>
				<Texture parentKey="TR" atlas="GarrLanding-upperright" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT" y="1"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BL" atlas="GarrLanding-lowerleft" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-2" y="-2"/>
					</Anchors>
				</Texture>
				<Texture parentKey="BR" atlas="GarrLanding-lowerright" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" y="-2"/>
					</Anchors>
				</Texture>
				<Texture atlas="GarrLanding-Top" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TL" relativePoint="TOPRIGHT" y="-1"/> 
						<Anchor point="TOPRIGHT" relativeKey="$parent.TR" relativePoint="TOPLEFT" y="-1"/>
					</Anchors>
				</Texture>
				<Texture atlas="GarLanding-Bottom" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BL" relativePoint="BOTTOMRIGHT" y="2"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BR" relativePoint="BOTTOMLEFT" y="2"/>
					</Anchors>
				</Texture>
				<Texture atlas="GarLanding-Left" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.TL" relativePoint="BOTTOMLEFT" x="2"/>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent.BL" relativePoint="TOPLEFT" x="2"/>
					</Anchors>
				</Texture>
				<Texture atlas="GarLanding-Right" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.TR" relativePoint="BOTTOMRIGHT" y="0"/>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BR" relativePoint="TOPRIGHT" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="BORDER">
				<Texture parentKey="HeaderBar" atlas="GarrLanding-HeaderBar" useAtlasSize="true">
					<Anchors>
						<Anchor point="TOP" x="0" y="-36"/>
					</Anchors>
				</Texture>
				<FontString inherits="QuestFont_Enormous" text="GARRISON_LANDING_PAGE_TITLE">
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.HeaderBar" x="26"/>
					</Anchors>
				</FontString>
				<Texture atlas="GarrLanding_Watermark-Tradeskill" useAtlasSize="true">
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="60" y="40"/>
					</Anchors>
					<Color r="1" g="1" b="1" a=".6"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="CloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="TOPRIGHT" x="-10" y="-10"/>
				</Anchors>
			</Button>
			<Frame parentKey="InvasionBadge" hidden="true">
				<Size x="86" y="44"/>
				<Anchors>
					<Anchor point="TOP" y="22"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<Texture parentKey="InvasionIcon" atlas="GarrLanding-InvasionBadge" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOP"/>
							</Anchors>
						</Texture>
						<Texture parentKey="InvasionGlow" alpha="0" alphaMode="ADD" atlas="GarrLanding-InvasionBadge-Glow" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOP"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Animations>
					<AnimationGroup parentKey="InvasionBadgeAnim" setToFinalAlpha="true" looping="REPEAT">
						<Alpha childKey="InvasionGlow" duration="1.5" order="1" fromAlpha="0" toAlpha="1"/>
						<Alpha childKey="InvasionGlow" startDelay="1.5" duration="1.5" order="1" fromAlpha="1" toAlpha="0"/>
					</AnimationGroup>
				</Animations>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(self, "ANCHOR_CURSOR_RIGHT");
						GameTooltip:SetText(GARRISON_LANDING_INVASION);
						GameTooltip:AddLine(GARRISON_LANDING_INVASION_TOOLTIP, 1, 1, 1, true);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave>
						GameTooltip_Hide();
					</OnLeave>
				</Scripts>
			</Frame>
			<Frame parentKey="List" name="$parentList">
				<Size x="433" y="420"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-38" y="28"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture atlas="GarrLanding-MissionListBG">
							<Anchors>
								<Anchor point="TOPLEFT" x="-25"/>
								<Anchor point="BOTTOMRIGHT"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="OVERLAY">
						<FontString parentKey="EmptyMissionText" inherits="GameFontNormalLarge2" justifyH="CENTER">
							<Size x="324" y="0"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
							<Color r=".75" g=".75" b=".73"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<ScrollFrame name="$parentListScrollFrame" parentKey="listScroll" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="5" y="-6"/>
							<Anchor point="BOTTOMRIGHT" x="-3" y="8"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="MinimalHybridScrollBarTemplate" parentKey="scrollBar">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-20" y="-15"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-20" y="12"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self.trackBG:Show();
										self.trackBG:SetVertexColor(0, 0, 0, 0.75);
										self.doNotHide = true;
									</OnLoad>
								</Scripts>
							</Slider>
						</Frames>
					</ScrollFrame>
				</Frames>
				<Scripts>
					<OnShow function="GarrisonLandingPageList_OnShow"/>
					<OnHide function="GarrisonLandingPageList_OnHide"/>
				</Scripts>
			</Frame>
			<Button parentKey="InProgress">
				<Size x="205" y="36"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeKey="$parent.List" relativePoint="TOPLEFT" x="0" y="2"/>
				</Anchors>
				<Scripts>
					<OnClick function="GarrisonLandingPage_SetTab"/>
				</Scripts>
				<NormalTexture atlas="GarrLanding-TopTabSelected" useAtlasSize="true">
					<Size x="205" y="36"/>
					<Anchors>
						<Anchor point="TOP"/>
					</Anchors>
				</NormalTexture>
				<HighlightTexture atlas="GarrLanding-TopTabHighlight" useAtlasSize="true">
					<Size x="191" y="24"/>
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</HighlightTexture>
				<ButtonText parentKey="Text" text="GARRISON_LANDING_IN_PROGRESS">
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="5"/>
					</Anchors>
				</ButtonText>
				<NormalFont style="GameFontHighlightMed2"/>
				<HighlightFont style="GameFontHighlightMed2"/>
			</Button>
			<Button parentKey="Available">
				<Size x="191" y="24"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeKey="$parent.List" relativePoint="TOPRIGHT" x="-20" y="2"/>
				</Anchors>
				<Scripts>
					<OnClick function="GarrisonLandingPage_SetTab"/>
				</Scripts>
				<NormalTexture atlas="GarrLanding-TopTabSelected" useAtlasSize="true">
					<Size x="205" y="36"/>
					<Anchors>
						<Anchor point="TOP"/>
					</Anchors>
				</NormalTexture>
				<HighlightTexture atlas="GarrLanding-TopTabHighlight" useAtlasSize="true">
					<Size x="191" y="24"/>
					<Anchors>
						<Anchor point="BOTTOM"/>
					</Anchors>
				</HighlightTexture>
				<ButtonText parentKey="Text" text="GARRISON_LANDING_AVAILABLE">
					<Anchors>
						<Anchor point="BOTTOM" x="0" y="5"/>
					</Anchors>
				</ButtonText>
				<NormalFont style="GameFontHighlightMed2"/>
				<HighlightFont style="GameFontHighlightMed2"/>
			</Button>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="70" y="-100"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="230" y="-100"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="70" y="-205"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="230" y="-205"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="70" y="-310"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="230" y="-310"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="70" y="-415"/>
				</Anchors>
			</Frame>
			<Frame parentArray="Shipments" inherits="GarrisonLandingPageShipmentStatusTemplate" hidden="true">
				<Anchors>
					<Anchor point="TOPLEFT" x="230" y="-415"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="GarrisonLandingPage_OnLoad"/>
			<OnShow function="GarrisonLandingPage_OnShow"/>
			<OnHide function="GarrisonLandingPage_OnHide"/>
			<OnEvent function="GarrisonLandingPage_OnEvent"/>
		</Scripts>
	</Frame>
</Ui>