Quantcast
<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="GarrisonCommander.lua"/>
<!-- <Button name="GarrisonCommanderWhatsNew" inherits="UIPanelInfoButton" hidden="true" virtual="true"> -->
	<Button name="GarrisonCommanderWhatsNew" inherits="UIPanelInfoButton" hidden="true" virtual="true">
		<Size x="32" y="32"/>
		<Scripts>
			<OnLeave function="GameTooltip_Hide"/>
			<OnEnter>
				if self.tooltip then
					GameTooltip:SetOwner(self,"ANCHOR_TOPLEFT")
					GameTooltip:AddLine(self.tooltip)
					GameTooltip:Show()
				end
			</OnEnter>
		</Scripts>
	</Button>
	<Frame name="GarrisonCommanderTitle" inherits="GarrisonUITemplate" enableMouse="true" topevel="true" hidden="true" virtual="true">
		<Size x="150" y="85"/>
		<Frames>
			<CheckButton parentKey="Pin">
					<Size x="32" y="32" />
				<Anchors>
					<Anchor point="TOPRIGHT" x="4" y="5"/>
				</Anchors>
				<NormalTexture file="Interface\CHATFRAME\UI-ChatIcon-ScrollUp-Up">
					<Size x="32" y="32" />
				</NormalTexture>
				<!--
				<HighlightTexture file="Interface\CHATFRAME/UI-ChatIcon-BlinkHilight" alphaMode="ADD">
					<Size x="32" y="32" />
				</HighlightTexture>
				-->
				<CheckedTexture file="Interface\CHATFRAME\UI-ChatIcon-ScrollDown-Up">
					<Size x="32" y="32" />
				</CheckedTexture>
				<Scripts>
					<OnLeave>
						GameTooltip:FadeOut()
					</OnLeave>
				</Scripts>
			</CheckButton>
		</Frames>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="Shield" file="Interface\ACHIEVEMENTFRAME\UI-ACHIEVEMENT-SHIELDS-NOPOINTS">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-2" y="0"/>
					</Anchors>
					<TexCoords left="0" right="0.5" top="0.5" bottom="1"/>
				</Texture>
				<FontString parentKey="Signature" inherits="QuestTitleFontBlackShadow" justifyH="RIGHT" justifyV="TOP" text="Garrison Commander" >
					<Size x="400" y="80"/>
					<Anchors>
						<Anchor point="TOPRIGHT"  x="-30" y="-2"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Warning" inherits="QuestTitleFontBlackShadow" justifyH="LEFT" justifyV="TOP" text="" >
					<Size x="300" y="80"/>
					<Anchors>
						<Anchor point="TOPLEFT"  x="30" y="-2"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLeave>GameTooltip:FadeOut()</OnLeave>
			<OnEnter>
				if self.tooltip then
					GameTooltip:SetOwner(self,"ANCHOR_TOPLEFT")
					GameTooltip:AddLine(self.tooltip)
					GameTooltip:Show()
				end
			</OnEnter>
		</Scripts>
	</Frame>
	<Button name="GarrisonCommanderMissionPageFollowerTemplateSmall" virtual="true">
		<Size x="70" y="58"/>
		<Frames>
			<Frame parentKey="PortraitFrame" inherits="GarrisonFollowerMissionPortraitTemplate">
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
			</Frame>
		</Frames>
	</Button>
	<Button name="GarrisonCommanderMissionPageFollowerTemplate" inherits="GarrisonMissionPageFollowerTemplate" virtual="true">
		<Size x="170" y="58"/>
		<Layers>
			<Layer level="OVERLAY">
				<FontString parentKey="Status" inherits="GameFontHighlightSmall" justifyH="CENTER" justifyV="TOP" text="Available">
					<Size x="100" y="30" />
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="10" y="-5"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOPRIGHT" x="0" y="+5"/>
					</Anchors>
					<Color r="0.698" g="0.941" b="1" a="1"/>
				</FontString>
				<FontString parentKey="NotFull" inherits="GameFontHighlightSmall" justifyH="CENTER" justifyV="CENTER" text="GARRISON_PARTY_NOT_FULL_TOOLTIP" hidden="true">
					<Size x="100" y="58"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.PortraitFrame" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOPRIGHT" x="-10" y="0"/>
					</Anchors>
					<Color r="1.0" g="0.0" b="0.0" a="0.5" />
				</FontString>
			</Layer>

		</Layers>
		<Frames>
			<Frame parentArray="Threats" inherits="GarrisonAbilityCounterTemplate">
				<Anchors>
					<Anchor point="LEFT"  x="55" y="-3"/>
				</Anchors>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad/>
			<OnDragStart/>
			<OnDragStop />
			<OnReceiveDrag/>
			<OnEnter>
				GarrisonCommander:GarrisonMissionPageFollowerFrame_OnEnter(self)
			</OnEnter>
			<OnLeave function="GarrisonMissionPageFollowerFrame_OnLeave"/>
			<OnMouseUp />
		</Scripts>
	</Button>
	<Frame name="GarrisonCommanderMissionInfo" virtual="true">
		<Size x="150" y="140" />
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Age" inherits="GameFontHighlightSmall" justifyH="RIGHT" justifyV="TOP" >
					<Size x="150" y="40"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="0" y="-5"/>
					</Anchors>
					<Color r="0.698" g="0.941" b="1" a="1"/>
				</FontString>
				<FontString parentKey="Followers" inherits="GameFontHighlightSmall" justifyH="RIGHT" justifyV="CENTER" >
					<Size x="150" y="40"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent" relativePoint="CENTER" x="0" y="5"  />
					</Anchors>
					<Color r="0.698" g="0.941" b="1" a="1"/>
				</FontString>
				<FontString parentKey="Percent" inherits="NumberFontNormal" justifyH="RIGHT" justifyV="BOTTOM" >
					<Size x="150" y="50"/>
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOMRIGHT" x="0" y="5"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Frame name="GarrisonCommanderIndicators" toplevel="true" virtual="true">
		<Size x="90" y="80"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Age" inherits="GameFontHighlightSmall" justifyH="CENTER" justifyV="TOP" >
					<Size x="90" y="70"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="0" y="-5"/>
					</Anchors>
					<Color r="0.698" g="0.941" b="1" a="1"/>
				</FontString>
				<FontString parentKey="Percent" inherits="NumberFontNormalHuge" justifyH="RIGHT" justifyV="BOTTOM" >
					<Size x="90" y="70"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeKey="$parent" relativePoint="BOTTOMLEFT" x="0" y="10"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
	</Frame>
	<Button name="GarrisonCommanderMissionButton"  virtual="true">
		<Size x="1" y="80"/>
		<Layers>
			<Layer level="OVERLAY" >
				<FontString parentKey="NotFull" inherits="GameFontHighlightSmall" justifyH="CENTER" justifyV="CENTER" text="GARRISON_PARTY_NOT_FULL_TOOLTIP" >
					<Size x="100" y="58"/>
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.PortraitFrame" relativePoint="TOPRIGHT" x="0" y="0"/>
						<Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOPRIGHT" x="-10" y="0"/>
					</Anchors>
					<Color r="1.0" g="0.0" b="0.0" a="0.5" />
				</FontString>
			</Layer>
		</Layers>
	</Button>
	<Button name="GarrisonCommanderMissionListButtonTemplate" inherits="GarrisonMissionListButtonTemplate" virtual="true">
		<Size x="450" y="80" />
		<Layers>
			<Layer level="OVERLAY" >
				<FontString parentKey="NumMembers" inherits="GameFontHighlightSmall" justifyH="CENTER" justifyV="CENTER" maxLines="3" >
					<Size x="90" y="40" />
					<Anchors>
						<Anchor point="TOPLEFT" x="68" y="-2"/>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
				<FontString parentKey="Percent" inherits="NumberFontNormalHuge" justifyH="CENTER" justifyV="CENTER" maxLines="3" >
					<Size x="90" y="40" />
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="68" y="+2"/>
					</Anchors>
					<Color r="1" g="1" b="1"/>
				</FontString>
			</Layer>
		</Layers>
	</Button>
	<Frame name="GarrisonCommanderFollowerMissionList" virtual="true">
		<Size x="250" y="400" />
		<Frames>
			<Frame parentKey="Header" name="$parentHeader" inherits="GarrisonCommanderMissionPageFollowerTemplate">
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
			</Frame>
		</Frames>
	</Frame>
	<Frame name="GarrisonCommanderMenu" virtual="true">
		<Size>
			<AbsDimension x="40" y="32"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Left" name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="25" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="0" y="17"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="0.1953125" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="Middle" name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="200" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1"/>
				</Texture>
				<Texture parentKey="Right" name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
					<Size>
						<AbsDimension x="25" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0.8046875" right="1" top="0" bottom="1"/>
				</Texture>
				<FontString parentKey="Text" name="$parentText" inherits="GameFontHighlightSmall" wordwrap="false" justifyH="RIGHT">
					<Size>
						<AbsDimension x="0" y="10"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parentRight">
							<Offset>
								<AbsDimension x="-43" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture name="$parentIcon" hidden="true">
					<Size>
						<AbsDimension x="16" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT">
							<Offset x="30" y="2"/>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="Button"  name="$parentButton" motionScriptsWhileDisabled="true" >
				<Size>
					<AbsDimension x="24" y="24"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parentRight">
						<Offset>
							<AbsDimension x="-16" y="-18"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						local parent = self:GetParent();
						local myscript = parent:GetScript("OnEnter");
						if(myscript ~= nil) then
							myscript(parent);
						end
					</OnEnter>
					<OnLeave>
						local parent = self:GetParent();
						local myscript = parent:GetScript("OnLeave");
						if(myscript ~= nil) then
							myscript(parent);
						end
					</OnLeave>
					<OnClick>
						EasyMenu(self:GetParent().menu, self:GetParent(), "cursor", 0, 0, "MENU", 4)
					</OnClick>
				</Scripts>
				<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
				</NormalTexture>
				<PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
				</PushedTexture>
				<DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
				</DisabledTexture>
				<HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
					<Size>
						<AbsDimension x="24" y="24"/>
					</Size>
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
				</HighlightTexture>
			</Button>
		</Frames>
		<Scripts>
			<OnHide>
				CloseDropDownMenus();
			</OnHide>
		</Scripts>
	</Frame>
	<Frame name="GarrisonCommanderLoadingFrame" inherits="LoadingSpinnerTemplate" hidden="true" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Label" inherits="GameFontHighlight" text="LFG_LIST_LOADING">
					<Anchors>
						<Anchor point="LEFT" relativePoint="RIGHT"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnLoad>
				self.Anim:Play();
			</OnLoad>
		</Scripts>
	</Frame>
	<Frame name="GarrisonCommanderUpgradeButton" enableMouse="true" virtual="true">
		<Size x="32" y="32"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon">
					<Size x="32" y="32"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK" textureSubLevel="1">
				<FontString parentKey="Quantity" inherits="NumberFontNormal">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.Icon"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Level" inherits="NumberFontNormal">
					<Anchors>
						<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Icon"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Shortcut" inherits="SystemFont_Outline_Small">
					<Anchors>
						<Anchor point="TOPLEFT" relativeKey="$parent.Icon"/>
					</Anchors>
					<color r="1.0" g="1.0" b="1.0" />
				</FontString>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				if (self.itemID) then
					GameTooltip:SetItemByID(self.itemID);
					return;
				end
				if (self.currencyID and self.currencyID ~= 0) then
					GameTooltip:SetCurrencyByID(self.currencyID);
					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="GarrisonTraitCounterTemplate" inherits="GarrisonThreatCounterTemplate" virtual="true" enableMouse="true">
		<Scripts>
			<OnLeave function="GameTooltip_Hide"/>
			<OnClick>
				PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
				local searchBox = GarrisonMissionFrameFollowers.SearchBox
				local searchString = searchBox:GetText();
				if (searchString == self.name) then
					searchBox:SetText("");
				else
					searchBox:SetText(self.name);
				end

			</OnClick>
		</Scripts>
	</Button>
	<Frame name="GarrisonTraitCountersFrame" hidden="true">
		<Size x="10" y="10"/>
		<Frames>
			<Button parentArray="TraitsList" inherits="GarrisonTraitCounterTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="0"/>
				</Anchors>
			</Button>
		</Frames>
	</Frame>
<!-- In 6.2.0 we can inherits
	<Frame name="GarrisonThreatCountersFrame" inherits="GarrisonThreatCountersFrameTemplate" hidden="true"/>
-->
</Ui>