<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="LFGList.lua"/>
	<!--Button name="TestButton" parent="UIParent" inherits="UIPanelButtonTemplate" text="TEST">
		<Size x="100" y="50"/>
		<Anchors>
			<Anchor point="RIGHT"/>
		</Anchors>
		<Scripts>
			<OnClick>
				if ( LFGListFrame.activePanel == LFGListFrame.CategorySelection ) then
					LFGListFrame_SetActivePanel(LFGListFrame, LFGListFrame_GetBestPanel(LFGListFrame));
				else
					LFGListFrame_SetActivePanel(LFGListFrame, LFGListFrame.CategorySelection);
				end
			</OnClick>
		</Scripts>
	</Button-->
	<Button name="LFGListEntryCreationActivityListTemplate" virtual="true">
		<Size x="250" y="14"/>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="Selected" file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD" setAllPoints="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick>
				LFGListEntryCreationActivityFinder_Select(self:GetParent():GetParent():GetParent():GetParent(), self.activityID);
			</OnClick>
		</Scripts>
		<ButtonText parentKey="Label" setAllPoints="true" justifyH="LEFT"/>
		<NormalFont style="GameFontNormal"/>
		<HighlightFont style="GameFontHighlight"/>
	</Button>
	<Button name="LFGListApplicantMemberTemplate" virtual="true">
		<Size x="190" y="20"/>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Name" inherits="GameFontNormalSmall" justifyH="LEFT" text="NAME">
					<Size x="100" y="10"/>
					<Anchors>
						<Anchor point="LEFT" x="7" y="-1"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ItemLevel" inherits="GameFontNormalSmall" justifyH="CENTER" text="529">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent" relativePoint="LEFT" x="177" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="RoleIcon1">
				<Size x="19" y="19"/>
				<Anchors>
					<Anchor point="LEFT" x="116" y="-2"/>
				</Anchors>
				<NormalTexture file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES"/>
				<HighlightTexture file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" alphaMode="ADD"/>
				<Scripts>
					<OnClick>
						C_LFGList.SetApplicantMemberRole(self:GetParent():GetParent().applicantID, self:GetParent().memberIdx, self.role);
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="RoleIcon2">
				<Size x="19" y="19"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.RoleIcon1" relativePoint="RIGHT" x="3" y="0"/>
				</Anchors>
				<NormalTexture file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES"/>
				<HighlightTexture file="Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES" alphaMode="ADD"/>
				<Scripts>
					<OnClick>
						C_LFGList.SetApplicantMemberRole(self:GetParent():GetParent().applicantID, self:GetParent().memberIdx, self.role);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("RightButtonUp");
			</OnLoad>
			<OnClick>
				EasyMenu(LFGListUtil_GetApplicantMemberMenu(self:GetParent().applicantID, self.memberIdx), LFGListFrameDropDown, self, 60, -5, "MENU");
			</OnClick>
			<OnEnter function="LFGListApplicantMember_OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
	<Button name="LFGListApplicantTemplate" virtual="true">
		<Size x="302" y="20"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Background" setAllPoints="true">
					<Color r="1" g="1" b="1"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString parentKey="Status" inherits="GameFontNormalSmall" justifyH="CENTER" justifyV="MIDDLE" hidden="true">
					<Size x="75" y="24"/>
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-30" y="-1"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="Member1" parentArray="Members" inherits="LFGListApplicantMemberTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" x="0" y="-3"/>
				</Anchors>
			</Button>
			<Button parentKey="DeclineButton" inherits="UIMenuButtonStretchTemplate">
				<Size x="24" y="22"/>
				<Anchors>
					<Anchor point="RIGHT" x="-2" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="groupfinder-icon-redx" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" x="0" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						if ( self.isAck ) then
							C_LFGList.RemoveApplicant(self:GetParent().applicantID);
						else
							C_LFGList.DeclineApplicant(self:GetParent().applicantID);
						end
					</OnClick>
				</Scripts>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
			<Button parentKey="InviteButton" inherits="UIMenuButtonStretchTemplate" text="INVITE">
				<Size x="80" y="22"/>
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.DeclineButton" relativePoint="LEFT" x="-2" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						C_LFGList.InviteApplicant(self:GetParent().applicantID);
					</OnClick>
				</Scripts>
			</Button>
			<Frame parentKey="Spinner" inherits="LoadingSpinnerTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" x="3" y="0"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.Anim:Play();
					</OnLoad>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterEvent("LFG_LIST_APPLICANT_UPDATED");
				self:RegisterEvent("PARTY_LEADER_CHANGED");
			</OnLoad>
			<OnEvent>
				if ( event == "LFG_LIST_APPLICANT_UPDATED" ) then
					local id = ...;
					if ( id == self.applicantID ) then
						LFGListApplicationViewer_UpdateApplicant(self, id);
					end
				elseif ( event == "PARTY_LEADER_CHANGED" ) then
					if ( self.applicantID ) then
						LFGListApplicationViewer_UpdateApplicant(self, self.applicantID);
					end
				end
			</OnEvent>
		</Scripts>
	</Button>
	<Button name="LFGListRoleButtonTemplate" virtual="true" motionScriptsWhileDisabled="true">
		<Size x="48" y="48"/>
		<!--KeyValues>
			 Required
			 <KeyValue key="role" value="TANK" type="string"/>
			 <KeyValue key="roleID" value="1" type="number"/>
		</KeyValues-->
		<Layers>
			<Layer level="OVERLAY">
				<Texture file="Interface\LFGFrame\UI-LFG-ICON-ROLES" setAllPoints="true" parentKey="cover" alpha="0.5" hidden="true">
					<TexCoords left="0" right="0.2617" top="0.5234" bottom="0.7851"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton parentKey="CheckButton">
				<Size x="24" y="24"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" x="-5" y="-5"/>
				</Anchors>
				<Scripts>
					<OnClick function="LFGListRoleButtonCheckButton_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>
		</Frames>
		<Scripts>
			<OnLoad>
				self:GetNormalTexture():SetTexCoord(GetTexCoordsForRole(self.role));
			</OnLoad>
			<OnEnter>
				GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
				GameTooltip:SetText(_G["ROLE_DESCRIPTION"..self.roleID], nil, nil, nil, nil, true);
				GameTooltip:Show();
				if ( self.CheckButton:IsEnabled() ) then
					self.CheckButton:LockHighlight();
				end
			</OnEnter>
			<OnClick>
				if ( self.CheckButton:IsEnabled() ) then
					self.CheckButton:Click();
				end
			</OnClick>
			<OnLeave>
				GameTooltip:Hide();
				self.CheckButton:UnlockHighlight();
			</OnLeave>
		</Scripts>
		<NormalTexture file="Interface\LFGFrame\UI-LFG-ICON-ROLES"/>
	</Button>
	<Button name="LFGListCategoryTemplate" virtual="true">
		<Size x="300" y="46"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Icon" atlas="groupfinder-button-battlegrounds" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture parentKey="Cover" atlas="groupfinder-button-cover" useAtlasSize="true">
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="SelectedTexture" file="Interface\PVPFrame\PvPMegaQueue" alphaMode="ADD" hidden="true">
					<Size x="290" y="36"/>
					<Anchors>
						<Anchor point="CENTER"/>
					</Anchors>
					<TexCoords left="0.00195313" right="0.63867188" top="0.76953125" bottom="0.83007813"/>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnClick function="LFGListCategorySelectionButton_OnClick"/>
		</Scripts>
		<HighlightTexture parentKey="HighlightTexture" file="Interface\PVPFrame\PvPMegaQueue" alphaMode="ADD">
			<Size x="290" y="36"/>
			<Anchors>
				<Anchor point="CENTER"/>
			</Anchors>
			<TexCoords left="0.00195313" right="0.63867188" top="0.70703125" bottom="0.76757813"/>
		</HighlightTexture>
		<ButtonText parentKey="Label" inherits="GameFontNormal" justifyH="LEFT">
			<Anchors>
				<Anchor point="LEFT" relativeKey="$parent" relativePoint="LEFT" x="20" y="0"/>
			</Anchors>
		</ButtonText>
	</Button>
	<Frame name="LFGListVoiceChatIcon" virtual="true">
		<Size x="16" y="14"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon" atlas="groupfinder-icon-voice" setAllPoints="true"/>
			</Layer>
		</Layers>
		<Scripts>
			<OnEnter>
				if ( self.tooltip ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(string.format(VOICE_CHAT_COLON, self.tooltip), 1, 1, 1, 1, true);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Frame>
	<Button name="LFGListMagicButtonTemplate" motionScriptsWhileDisabled="true" inherits="MagicButtonTemplate" virtual="true">
		<Scripts>
			<OnEnter>
				if ( self.tooltip ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(self.tooltip, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, true);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
	<EditBox name="LFGListEditBoxTemplate" autoFocus="false" inherits="InputBoxInstructionsTemplate" virtual="true">
		<Scripts>
			<OnEnterPressed function="EditBox_ClearFocus"/>
		</Scripts>
	</EditBox>
	<Frame name="LFGListRequirementTemplate" virtual="true">
		<Size x="286" y="22"/>
		<!--KeyValues>
			 Required
			 <KeyValue key="label" value="LABEL_TEXT" type="global"/>
			 <KeyValue key="instructions" value="GLOBAL_STRING" type="global"/>
			 Optional
			 <KeyValue key="validateFunc" value="func(text) -> warningText" type="global"/>
			 <KeyValue key="numeric" value="false" type="boolean"/>
			 <KeyValue key="maxLetters" value="255" type="number"/>
		</KeyValues-->
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Label" inherits="GameFontHighlightSmall" justifyH="LEFT">
					<Size x="150" y="14"/>
					<Anchors>
						<Anchor point="LEFT" x="24"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<CheckButton parentKey="CheckButton">
				<Size x="22" y="22"/>
				<Anchors>
					<Anchor point="LEFT" x="0" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						if ( self:GetChecked() ) then
							PlaySound("igMainMenuOptionCheckBoxOn");
							self:GetParent().EditBox:SetFocus();
						else
							PlaySound("igMainMenuOptionCheckBoxOff");
							self:GetParent().EditBox:ClearFocus();
							self:GetParent().EditBox:SetText("");
						end
					</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>
			<EditBox parentKey="EditBox" inherits="LFGListEditBoxTemplate">
				<Size x="125" y="22"/>
				<Anchors>
					<Anchor point="RIGHT" x="-5" y="0"/>
				</Anchors>
				<Scripts>
					<OnTextChanged>
						local parent = self:GetParent();
						if ( self:GetText() ~= "" ) then
							parent.CheckButton:SetChecked(true);
						end
						if ( parent.validateFunc ) then
							parent.warningText = parent.validateFunc(self:GetText());
							parent.WarningFrame:SetShown(parent.warningText);
							parent.CheckButton:SetShown(not parent.warningText);
						end
						LFGListEntryCreation_UpdateValidState(self:GetParent():GetParent());
						InputBoxInstructions_OnTextChanged(self);
					</OnTextChanged>
					<OnEditFocusLost>
						if ( self:GetText() == "" ) then
							self:GetParent().CheckButton:SetChecked(false);
						end
					</OnEditFocusLost>
				</Scripts>
			</EditBox>
			<Frame parentKey="WarningFrame" hidden="true">
				<Size x="22" y="22"/>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Texture" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew" setAllPoints="true"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						local warningText = self:GetParent().warningText;
						if ( warningText ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(warningText, nil, nil, nil, nil, true);
							GameTooltip:Show();
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				self.Label:SetText(self.label);
				self.EditBox:SetNumeric(self.numeric);
				self.EditBox.Instructions:SetText(self.instructions);
				if ( self.maxLetters ) then
					self.EditBox:SetMaxLetters(self.maxLetters);
				end
			</OnLoad>
		</Scripts>
	</Frame>
	<Button name="LFGListColumnHeaderTemplate" virtual="true">
		<Size x="10" y="24"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Left" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size x="5" y="24"/>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
				</Texture>
				<Texture parentKey="Right" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size x="4" y="24"/>
					<Anchors>
						<Anchor point="RIGHT"/>
					</Anchors>
					<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
				</Texture>
				<Texture parentKey="Middle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size x="0" y="24"/>
					<Anchors>
						<Anchor point="LEFT" relativeKey="$parent.Left" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeKey="$parent.Right" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
				</Texture>
			</Layer>
		</Layers>
		<ButtonText>
			<Anchors>
				<Anchor point="LEFT" x="8" y="0"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontHighlightSmall"/>
		<HighlightTexture parentKey="HighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Anchors>
				<Anchor point="TOPLEFT" relativeKey="$parent.Left" x="-2" y="5"/>
				<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Right" x="2" y="-7"/>
			</Anchors>
		</HighlightTexture>
	</Button>
	<Button name="LFGListColumnHeaderRoleTemplate" inherits="LFGListColumnHeaderTemplate" virtual="true">
		<Layers>
			<Layer level="ARTWORK">
				<Texture parentKey="Icon" file="Interface\LFGFrame\LFGRole">
					<Size x="16" y="16"/>
					<Anchors>
						<Anchor point="CENTER" x="0" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Scripts>
			<OnMouseDown>
				self.Icon:SetPoint("CENTER", 1, -2);
			</OnMouseDown>
			<OnMouseUp>
				self.Icon:SetPoint("CENTER", 0, 0);
			</OnMouseUp>
		</Scripts>
	</Button>
	<Button name="LFGListSearchEntryTemplate" virtual="true">
		<Size x="303" y="35"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="ResultBG">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-1"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="1"/>
					</Anchors>
					<Color r="1" g="1" b="1" a="0.04"/>
				</Texture>
				<Texture parentKey="ApplicationBG" atlas="groupfinder-highlightbar-green" alphaMode="ADD">
					<Anchors>
						<Anchor point="TOPLEFT" x="5" y="-1"/>
						<Anchor point="BOTTOMRIGHT" x="-5" y="1"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="5" y="-4"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ActivityName" inherits="GameFontDisableSmallLeft">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="5" y="3"/>
					</Anchors>
				</FontString>
				<FontString parentKey="DamageCount" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent" relativePoint="RIGHT" x="-18" y="0"/>
					</Anchors>
				</FontString>
				<FontString parentKey="HealerCount" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.DamageCount" relativePoint="CENTER" x="-33" y="0"/>
					</Anchors>
				</FontString>
				<FontString parentKey="TankCount" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent.HealerCount" relativePoint="CENTER" x="-33" y="0"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ExpirationTime" inherits="GameFontGreenSmall" text="(1:77)" justifyH="LEFT">
					<Size x="35" y="12"/>
					<Anchors>
						<Anchor point="RIGHT" x="-35" y="0"/>
					</Anchors>
					<Color r="0.25" g="0.75" b="0.25"/>
				</FontString>
				<FontString parentKey="PendingLabel" inherits="GameFontGreenSmall" text="LFG_LIST_PENDING">
					<Size x="70" y="28"/>
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.ExpirationTime" relativePoint="LEFT" x="-3" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Selected" atlas="groupfinder-highlightbar-yellow" alphaMode="ADD" setAllPoints="true" hidden="true"/>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture parentKey="Highlight" atlas="groupfinder-highlightbar-blue" alphaMode="ADD" setAllPoints="true"/>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="VoiceChat" inherits="LFGListVoiceChatIcon">
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.TankCount" relativePoint="CENTER" x="-25" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Click(button);
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="Friends">
				<Size x="20" y="19"/>
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.VoiceChat" relativePoint="LEFT" x="-5" y="1"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="groupfinder-icon-friend" setAllPoints="true"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						local list = LFGListSearchEntryUtil_GetFriendList(self:GetParent().resultID);
						GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
						GameTooltip:SetText(LFG_LIST_TOOLTIP_FRIENDS_IN_GROUP);
						GameTooltip:AddLine(list, 1, 1, 1, true);
						GameTooltip:Show();
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
					<OnClick>
						self:GetParent():Click(button);
					</OnClick>
				</Scripts>
			</Button>
			<Frame parentKey="Spinner" inherits="LoadingSpinnerTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" x="3" y="0"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.Anim:Play();
					</OnLoad>
				</Scripts>
			</Frame>
			<Button parentKey="CancelButton" inherits="UIMenuButtonStretchTemplate" motionScriptsWhileDisabled="true">
				<Size x="24" y="24"/>
				<Anchors>
					<Anchor point="RIGHT" x="-9" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="groupfinder-icon-redx" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" x="0" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						C_LFGList.CancelApplication(self:GetParent().resultID);
					</OnClick>
					<OnEnter>
						if ( self.tooltip ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(self.tooltip);
							GameTooltip:Show();
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
				<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="LFGListSearchEntry_OnLoad"/>
			<OnEvent function="LFGListSearchEntry_OnEvent"/>
			<OnClick function="LFGListSearchEntry_OnClick"/>
			<OnEnter function="LFGListSearchEntry_OnEnter"/>
			<OnLeave function="GameTooltip_Hide"/>
		</Scripts>
	</Button>
	<Frame name="LFGListPanelTemplate" useParentLevel="true" hidden="true" setAllPoints="true" virtual="true"/>
	<Frame name="LFGListFrame" useParentLevel="true" parent="LFGListPVEStub">
		<Size x="338" y="428"/>
		<Anchors>
			<Anchor point="TOPLEFT" x="224" y="0"/>
		</Anchors>
		<Frames>
			<Frame name="LFGListFrameDropDown" inherits="UIDropDownMenuTemplate"/>
			<Frame parentKey="CategorySelection" inherits="LFGListPanelTemplate">
				<KeyValues>
					<KeyValue key="updateAll" value="LFGListCategorySelection_UpdateCategoryButtons" type="global"/>
				</KeyValues>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="Label" inherits="QuestFont_Huge" text="LFGLIST_NAME">
							<Anchors>
								<Anchor point="TOP" x="0" y="-35"/>
							</Anchors>
							<Color r="1.0" g="0.82" b="0"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate" >
						<Size x="215" y="496"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-64" />
							<Anchor point="BOTTOMRIGHT" x="-5" y="26" />
						</Anchors>
					</Frame>
					<Button parentArray="CategoryButtons" inherits="LFGListCategoryTemplate">
						<Anchors>
							<Anchor point="TOP" x="0" y="-70"/>
						</Anchors>
					</Button>
					<Button parentKey="FindGroupButton" inherits="LFGListMagicButtonTemplate" text="LFG_LIST_FIND_A_GROUP">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-5" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListCategorySelectionFindGroupButton_OnClick"/>
						</Scripts>
					</Button>
					<Button parentKey="StartGroupButton" inherits="LFGListMagicButtonTemplate" text="START_A_GROUP">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="-1" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListCategorySelectionStartGroupButton_OnClick"/>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListCategorySelection_OnLoad"/>
					<OnEvent function="LFGListCategorySelection_OnEvent"/>
					<OnShow function="LFGListCategorySelection_OnShow"/>
				</Scripts>
			</Frame>
			<Frame parentKey="NothingAvailable" inherits="LFGListPanelTemplate">
				<KeyValues>
					<KeyValue key="updateAll" value="LFGListNothingAvailable_Update" type="global"/>
				</KeyValues>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="Label" inherits="GameFontNormalLarge" text="NO_LFG_LIST_AVAILABLE">
							<Size x="305" y="0"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnEvent function="LFGListNothingAvailable_OnEvent"/>
					<OnShow>
						LFGListNothingAvailable_Update(self);
					</OnShow>
				</Scripts>
			</Frame>
			<Frame parentKey="SearchPanel" inherits="LFGListPanelTemplate">
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="CategoryName" inherits="QuestFont_Huge" justifyH="LEFT">
							<Size x="280" y="18"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="10" y="-35"/>
							</Anchors>
							<Color r="1" g="0.82" b="0"/>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<EditBox parentKey="SearchBox" inherits="BagSearchBoxTemplate" letters="64">
						<Size x="310" y="18"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.CategoryName" relativePoint="BOTTOMLEFT" x="0" y="-10"/>
						</Anchors>
						<Scripts>
							<OnEnterPressed>
								LFGListSearchPanel_DoSearch(self:GetParent());
								self:ClearFocus();
							</OnEnterPressed>
						</Scripts>
					</EditBox>
					<Button parentKey="RefreshButton">
						<Size x="32" y="32"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.CategoryName" relativePoint="RIGHT" x="5" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="5">
								<Texture parentKey="Icon" file="Interface\Buttons\UI-RefreshButton">
									<Size x="16" y="16"/>
									<Anchors>
										<Anchor point="CENTER" />
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<NormalTexture file="Interface\Buttons\UI-SquareButton-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SquareButton-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SquareButton-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
						<Scripts>
							<OnMouseDown>
								self.Icon:SetPoint("CENTER", self, "CENTER", -1, -1);
							</OnMouseDown>
							<OnMouseUp>
								self.Icon:SetPoint("CENTER", self, "CENTER", 0, 0);
							</OnMouseUp>
							<OnEnter>
								GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
								GameTooltip:SetText(LFG_LIST_SEARCH_AGAIN, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
							<OnClick>
								LFGListSearchPanel_DoSearch(self:GetParent());
							</OnClick>
						</Scripts>
					</Button>
					<Button parentKey="NameColumnHeader" inherits="LFGListColumnHeaderTemplate" text="NAME">
						<Size x="202" y="24"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-100"/>
						</Anchors>
					</Button>
					<Button parentKey="TankColumnHeader" inherits="LFGListColumnHeaderRoleTemplate">
						<Size x="34" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.NameColumnHeader" relativePoint="RIGHT" x="0" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.Icon:SetTexCoord(GetTexCoordsForRoleSmall("TANK"));
							</OnLoad>
						</Scripts>
					</Button>
					<Button parentKey="HealerColumnHeader" inherits="LFGListColumnHeaderRoleTemplate">
						<Size x="34" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.TankColumnHeader" relativePoint="RIGHT" x="0" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.Icon:SetTexCoord(GetTexCoordsForRoleSmall("HEALER"));
							</OnLoad>
						</Scripts>
					</Button>
					<Button parentKey="DamagerColumnHeader" inherits="LFGListColumnHeaderRoleTemplate">
						<Size x="34" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.HealerColumnHeader" relativePoint="RIGHT" x="0" y="0"/>
						</Anchors>
						<Scripts>
							<OnLoad>
								self.Icon:SetTexCoord(GetTexCoordsForRoleSmall("DAMAGER"));
							</OnLoad>
						</Scripts>
					</Button>
					<Frame parentKey="ResultsInset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-125"/>
							<Anchor point="BOTTOMRIGHT" x="-30" y="26"/>
						</Anchors>
					</Frame>
					<!--Name needed for HybridScrollFrameTemplate-->
					<ScrollFrame parentKey="ScrollFrame" name="LFGListSearchPanelScrollFrame" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ResultsInset" x="3" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ResultsInset" x="-3" y="3"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="NoResultsFound" inherits="GameFontHighlightLarge" text="LFG_LIST_NO_RESULTS_FOUND">
									<Size x="280" y="0"/>
									<Anchors>
										<Anchor point="CENTER" x="0" y="20"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTrimTemplate" parentKey="scrollBar">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="4" y="-13"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="4" y="12"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self.trackBG:Show();
										self.trackBG:SetVertexColor(0, 0, 0, 0.75);
									</OnLoad>
								</Scripts>
							</Slider>
						</Frames>
					</ScrollFrame>
					<Frame parentKey="SearchingSpinner" inherits="LoadingSpinnerTemplate">
						<Anchors>
							<Anchor point="CENTER" relativeKey="$parent.ResultsInset"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Label" inherits="GameFontNormalLarge" text="SEARCHING">
									<Anchors>
										<Anchor point="BOTTOM" relativeKey="$parent" relativePoint="TOP" x="0" y="0"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnLoad>
								self.Anim:Play();
							</OnLoad>
						</Scripts>
					</Frame>
					<Button parentKey="BackButton" inherits="LFGListMagicButtonTemplate" text="BACK">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="-1" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								local frame = self:GetParent():GetParent();
								LFGListFrame_SetActivePanel(frame, frame.CategorySelection);
							</OnClick>
						</Scripts>
					</Button>
					<Button parentKey="SignUpButton" inherits="LFGListMagicButtonTemplate" text="SIGN_UP">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-5" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								LFGListSearchPanel_SignUp(self:GetParent());
							</OnClick>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListSearchPanel_OnLoad"/>
					<OnEvent function="LFGListSearchPanel_OnEvent"/>
					<OnShow function="LFGListSearchPanel_OnShow"/>
				</Scripts>
			</Frame>
			<Frame parentKey="ApplicationViewer" inherits="LFGListPanelTemplate">
				<Layers>
					<Layer level="BACKGROUND">
						<Texture parentKey="InfoBackground" atlas="groupfinder-background-blue" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="0" y="-23"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString parentKey="EntryName" inherits="GameFontNormalLarge" justifyH="LEFT">
							<Size x="240" y="18"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.InfoBackground" relativePoint="TOPLEFT" x="10" y="-10"/>
							</Anchors>
							<Color r="1" g="0.82" b="0"/>
						</FontString>
						<FontString parentKey="ActivityName" inherits="GameFontHighlightSmall2" justifyH="LEFT">
							<Size x="240" y="12"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.EntryName" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
							</Anchors>
						</FontString>
						<FontString parentKey="ItemLevel" inherits="GameFontNormalSmall2">
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.ActivityName" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
							</Anchors>
						</FontString>
						<FontString parentKey="Duration" inherits="GameFontDisableSmallLeft">
							<Anchors>
								<Anchor point="BOTTOM" x="-3" y="8"/>
							</Anchors>
						</FontString>
						<Texture parentKey="TankIcon" file="Interface\LFGFrame\LFGRole">
							<Size x="14" y="14"/>
							<Anchors>
								<Anchor point="TOPRIGHT" x="-60" y="-35"/>
							</Anchors>
							<TexCoords left="0.5" right="0.75" top="0" bottom="1"/>
						</Texture>
						<FontString parentKey="TankCount" inherits="GameFontHighlightSmall2" text="2" justifyH="CENTER">
							<Size x="20" y="12"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.TankIcon" relativePoint="RIGHT" x="2" y="0"/>
							</Anchors>
						</FontString>
						<Texture parentKey="HealerIcon" file="Interface\LFGFrame\LFGRole">
							<Size x="14" y="14"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.TankIcon" relativePoint="BOTTOMLEFT" x="0" y="-3"/>
							</Anchors>
							<TexCoords left="0.75" right="1" top="0" bottom="1"/>
						</Texture>
						<FontString parentKey="HealerCount" inherits="GameFontHighlightSmall2" text="3" justifyH="CENTER">
							<Size x="20" y="12"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.HealerIcon" relativePoint="RIGHT" x="2" y="0"/>
							</Anchors>
						</FontString>
						<Texture parentKey="DamagerIcon" file="Interface\LFGFrame\LFGRole">
							<Size x="14" y="14"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.HealerIcon" relativePoint="BOTTOMLEFT" x="0" y="-3"/>
							</Anchors>
							<TexCoords left="0.25" right="0.5" top="0" bottom="1"/>
						</Texture>
						<FontString parentKey="DamagerCount" inherits="GameFontHighlightSmall2" text="25" justifyH="CENTER">
							<Size x="20" y="12"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent.DamagerIcon" relativePoint="RIGHT" x="2" y="0"/>
							</Anchors>
						</FontString>
						<Texture parentKey="TotalMembersLine" atlas="groupfinder-totalmembersline" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.DamagerIcon" relativePoint="BOTTOMLEFT" x="-10" y="-5"/>
							</Anchors>

						</Texture>
						<FontString parentKey="TotalCount" inherits="GameFontNormalMed3" text="30" justifyH="CENTER">
							<Anchors>
								<Anchor point="TOP" relativeKey="$parent.TotalMembersLine" relativePoint="BOTTOM" x="0" y="-5"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="DescriptionFrame">
						<Size x="240" y="14"/> <!--Height changed in Lua-->
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeKey="$parent.InfoBackground" relativePoint="TOPLEFT" x="10" y="-79"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Text" inherits="GameFontNormalSmall2" setAllPoints="true" justifyH="LEFT">
									<Color r="0.5" g="0.5" b="0.5"/>
								</FontString>
							</Layer>
						</Layers>
						<Scripts>
							<OnEnter>
								if ( self.Text:IsTruncated() ) then
									GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
									GameTooltip:SetText(string.format(LFG_LIST_IN_QUOTES, self.Text:GetText()), nil, nil, nil, nil, true);
									GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Frame>
					<Frame parentKey="VoiceChatFrame" inherits="LFGListVoiceChatIcon">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ItemLevel" relativePoint="TOPRIGHT" x="20" y="0"/> <!--Anchor changed in Lua-->
						</Anchors>
					</Frame>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Size x="215" y="496"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-150" />
							<Anchor point="BOTTOMRIGHT" x="-30" y="26" />
						</Anchors>
					</Frame>
					<Button parentKey="NameColumnHeader" inherits="LFGListColumnHeaderTemplate" text="NAME">
						<Size x="110" y="24"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" relativeKey="$parent.Inset" relativePoint="TOPLEFT" x="0" y="0"/>
						</Anchors>
					</Button>
					<Button parentKey="RoleColumnHeader" inherits="LFGListColumnHeaderTemplate" text="ROLE">
						<Size x="52" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.NameColumnHeader" relativePoint="RIGHT" x="0" y="0"/>
						</Anchors>
					</Button>
					<Button parentKey="ItemLevelColumnHeader" inherits="LFGListColumnHeaderTemplate" text="ITEM_LEVEL_ABBR">
						<Size x="35" y="24"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.RoleColumnHeader" relativePoint="RIGHT" x="0" y="0"/>
						</Anchors>
					</Button>
					<Button parentKey="RefreshButton">
						<Size x="32" y="32"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" relativePoint="TOPRIGHT" x="25" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="5">
								<Texture parentKey="Icon" file="Interface\Buttons\UI-RefreshButton">
									<Size x="16" y="16"/>
									<Anchors>
										<Anchor point="CENTER" />
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<NormalTexture file="Interface\Buttons\UI-SquareButton-Up"/>
						<PushedTexture file="Interface\Buttons\UI-SquareButton-Down"/>
						<DisabledTexture file="Interface\Buttons\UI-SquareButton-Disabled"/>
						<HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
						<Scripts>
							<OnMouseDown>
								self.Icon:SetPoint("CENTER", self, "CENTER", -1, -1);
							</OnMouseDown>
							<OnMouseUp>
								self.Icon:SetPoint("CENTER", self, "CENTER", 0, 0);
							</OnMouseUp>
							<OnEnter>
								GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
								GameTooltip:SetText(LFG_LIST_REFRESH, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
							<OnClick>
								C_LFGList.RefreshApplicants();
							</OnClick>
						</Scripts>
					</Button>
					<!--Name needed for HybridScrollFrameTemplate-->
					<ScrollFrame parentKey="ScrollFrame" name="LFGListApplicationViewerScrollFrame" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.Inset" x="3" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" x="-3" y="3"/>
						</Anchors>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTrimTemplate" parentKey="scrollBar">
								<Anchors>
									<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="4" y="-13"/>
									<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="4" y="12"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self.trackBG:Show();
										self.trackBG:SetVertexColor(0, 0, 0, 0.75);
									</OnLoad>
								</Scripts>
							</Slider>
						</Frames>
					</ScrollFrame>
					<Button parentKey="RemoveEntryButton" inherits="LFGListMagicButtonTemplate" text="UNLIST_MY_GROUP">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="-1" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								C_LFGList.RemoveListing();
							</OnClick>
						</Scripts>
					</Button>
					<Button parentKey="EditButton" inherits="LFGListMagicButtonTemplate" text="EDIT">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-5" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListApplicationViewerEditButton_OnClick"/>
						</Scripts>
					</Button>
					<Frame parentKey="UnempoweredCover" enableMouse="true" frameLevel="15">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ScrollFrame" relativePoint="TOPLEFT" x="0" y="0"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollFrame" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="Background" atlas="groupfinder-background-waitingcover" setAllPoints="true">
									<Color r="1" g="1" b="1" a="0.7"/>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString parentKey="Label" inherits="GameFontNormalLarge" text="LFG_LIST_GROUP_FORMING" justifyH="CENTER">
									<Anchors>
										<Anchor point="CENTER" x="0" y="60"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListApplicationViewer_OnLoad"/>
					<OnEvent function="LFGListApplicationViewer_OnEvent"/>
					<OnShow function="LFGListApplicationViewer_OnShow"/>
					<OnUpdate function="LFGListApplicationViewer_OnUpdate"/>
				</Scripts>
			</Frame>
			<Frame parentKey="EntryCreation" inherits="LFGListPanelTemplate">
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="NameLabel" inherits="GameFontNormalLeft" text="NAME">
							<Size x="60" y="14"/>
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="30" y="-100"/>
							</Anchors>
						</FontString>
						<FontString parentKey="TypeLabel" inherits="GameFontNormalLeft" text="TYPE">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="30" y="-135"/>
							</Anchors>
						</FontString>
						<FontString parentKey="RequirementLabel" inherits="GameFontNormalLeft" text="REQUIREMENTS">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="30" y="-240"/>
							</Anchors>
						</FontString>
						<FontString parentKey="DescriptionLabel" inherits="GameFontNormalLeft" text="DESCRIPTION">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="30" y="-317"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Size x="215" y="496"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="0" y="-64" />
							<Anchor point="BOTTOMRIGHT" x="-5" y="26" />
						</Anchors>
					</Frame>
					<Frame parentKey="WorkingCover" hidden="true" frameLevel="14" enableMouse="true">
						<Anchors>
							<Anchor point="TOPLEFT" x="-5" y="-24"/>
							<Anchor point="BOTTOMRIGHT" x="-5" y="2"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="Background" setAllPoints="true">
									<Color r="0" g="0" b="0" a="0.7"/>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString parentKey="Label" inherits="GameFontNormalLarge" text="LFG_LIST_CREATING_ENTRY">
									<Size x="300" y="0"/>
									<Anchors>
										<Anchor point="BOTTOM" relativeKey="$parent" relativePoint="CENTER" x="0" y="25"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame parentKey="Spinner" inherits="LoadingSpinnerTemplate">
								<Anchors>
									<Anchor point="CENTER"/>
								</Anchors>
								<Scripts>
									<OnLoad>
										self.Anim:Play();
									</OnLoad>
								</Scripts>
							</Frame>
						</Frames>
					</Frame>
					<Frame parentKey="ActivityFinder" frameLevel="13" enableMouse="true" hidden="true">
						<Anchors>
							<Anchor point="TOPLEFT" x="-5" y="-24"/>
							<Anchor point="BOTTOMRIGHT" x="-5" y="2"/>
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="Background" setAllPoints="true">
									<Color r="0" g="0" b="0" a="0.7"/>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Frame parentKey="Dialog">
								<Size x="320" y="250"/>
								<Anchors>
									<Anchor point="CENTER"/>
								</Anchors>
								<Backdrop edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
									<TileSize>
										<AbsValue val="32"/>
									</TileSize>
									<EdgeSize>
										<AbsValue val="32"/>
									</EdgeSize>
								</Backdrop>
								<Layers>
									<Layer level="BACKGROUND" textureSubLevel="-1">
										<Texture parentKey="Bg" file="Interface\FrameGeneral\UI-Background-Rock" horizTile="true" vertTile="true">
											<Anchors>
												<Anchor point="TOPLEFT" x="4" y="-4"/>
												<Anchor point="BOTTOMRIGHT" x="-4" y="4"/>
											</Anchors>
										</Texture>
									</Layer>
								</Layers>
								<Frames>
									<EditBox parentKey="EntryBox" inherits="LFGListEditBoxTemplate" autoFocus="true">
										<Size x="268" y="22"/>
										<Anchors>
											<Anchor point="TOP" x="0" y="-15"/>
										</Anchors>
										<Scripts>
											<OnLoad>
												self.Instructions:SetText(SEARCH);
											</OnLoad>
											<OnTextChanged>
												InputBoxInstructions_OnTextChanged(self);
												LFGListEntryCreationActivityFinder_UpdateMatching(self:GetParent():GetParent());
											</OnTextChanged>
											<OnEnterPressed>
												LFGListEntryCreationActivityFinder_Accept(self:GetParent():GetParent());
											</OnEnterPressed>
										</Scripts>
									</EditBox>
									<ScrollFrame name="LFGListEntryCreationSearchScrollFrame" inherits="HybridScrollFrameTemplate" parentKey="ScrollFrame">
										<Anchors>
											<Anchor point="TOPLEFT" x="25" y="-45"/>
											<Anchor point="BOTTOMRIGHT" x="-25" y="50"/>
										</Anchors>
										<Frames>
											<Slider name="$parentScrollBar" inherits="MinimalHybridScrollBarTemplate" parentKey="scrollBar">
												<Anchors>
													<Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-3" y="-17"/>
													<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-15" y="16"/>
												</Anchors>
											</Slider>
										</Frames>
									</ScrollFrame>
									<Frame parentKey="BorderFrame" inherits="TooltipBorderedFrameTemplate" useParentLevel="true"> <!--Because there isn't an easy way to change the bounds of a scroll frame-->
										<Anchors>
											<Anchor point="TOPLEFT" relativeKey="$parent.ScrollFrame" relativePoint="TOPLEFT" x="-5" y="5"/>
											<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ScrollFrame" relativePoint="BOTTOMRIGHT" x="5" y="-5"/>
										</Anchors>
									</Frame>
									<Button parentKey="SelectButton" inherits="UIPanelButtonTemplate" text="LFG_LIST_SELECT">
										<Size x="130" y="22"/>
										<Anchors>
											<Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOM" x="-10" y="15"/>
										</Anchors>
										<Scripts>
											<OnClick>
												LFGListEntryCreationActivityFinder_Accept(self:GetParent():GetParent());
											</OnClick>
										</Scripts>
									</Button>
									<Button parentKey="CancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
										<Size x="130" y="22"/>
										<Anchors>
											<Anchor point="BOTTOMLEFT" relativeKey="$parent" relativePoint="BOTTOM" x="10" y="15"/>
										</Anchors>
										<Scripts>
											<OnClick>
												LFGListEntryCreationActivityFinder_Cancel(self:GetParent():GetParent());
											</OnClick>
										</Scripts>
									</Button>
								</Frames>
							</Frame>
						</Frames>
						<Scripts>
							<OnLoad function="LFGListEntryCreationActivityFinder_OnLoad"/>
						</Scripts>
					</Frame>
					<EditBox parentKey="Name" inherits="LFGListEditBoxTemplate" letters="31">
						<Size x="220" y="22"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.NameLabel" relativePoint="RIGHT" x="10" y="0"/>
						</Anchors>
						<Scripts>
							<OnTextChanged>
								InputBoxInstructions_OnTextChanged(self);
								LFGListEntryCreation_UpdateValidState(self:GetParent());
							</OnTextChanged>
						</Scripts>
					</EditBox>
					<Frame parentKey="CategoryDropDown" name="LFGListEntryCreationCategoryDropDown" inherits="UIDropDownMenuTemplate">
						<Size x="320" y="32"/>
						<Anchors>
							<Anchor point="TOP" x="8" y="-150"/>
						</Anchors>
					</Frame>
					<Frame parentKey="GroupDropDown" name="LFGListEntryCreationGroupDropDown" inherits="UIDropDownMenuTemplate">
						<Size x="175" y="32"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.CategoryDropDown" relativePoint="BOTTOMLEFT" x="0" y="0"/>
						</Anchors>
					</Frame>
					<Frame parentKey="ActivityDropDown" name="LFGListEntryCreationActivityDropDown" inherits="UIDropDownMenuTemplate">
						<Size x="175" y="32"/>
						<Anchors>
							<Anchor point="TOPRIGHT" relativeKey="$parent.CategoryDropDown" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
						</Anchors>
					</Frame>
					<Frame parentKey="ItemLevel" inherits="LFGListRequirementTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.Inset" relativePoint="TOPLEFT" x="30" y="-190"/>
						</Anchors>
						<KeyValues>
							 <KeyValue key="label" value="LFG_LIST_ITEM_LEVEL_REQ" type="global"/>
							 <KeyValue key="numeric" value="true" type="boolean"/>
							 <KeyValue key="instructions" value="LFG_LIST_ITEM_LEVEL_INSTR_SHORT" type="global"/>
							 <KeyValue key="validateFunc" value="LFGListUtil_ValidateLevelReq" type="global"/>
						</KeyValues>
					</Frame>
					<Frame parentKey="VoiceChat" inherits="LFGListRequirementTemplate">
						<KeyValues>
							<KeyValue key="maxLetters" value="31" type="number"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ItemLevel" relativePoint="BOTTOMLEFT" x="0" y="-5"/>
						</Anchors>
						<KeyValues>
							 <KeyValue key="label" value="LFG_LIST_VOICE_CHAT" type="global"/>
							 <KeyValue key="instructions" value="LFG_LIST_VOICE_CHAT_INSTR" type="global"/>
						</KeyValues>
					</Frame>
					<ScrollFrame parentKey="Description" name="LFGListEntryCreationDescription" inherits="InputScrollFrameTemplate">
						<Size x="280" y="55"/>
						<Anchors>
							<Anchor point="BOTTOM" relativeKey="$parent.Inset" relativePoint="BOTTOM" x="0" y="15"/>
						</Anchors>
						<KeyValues>
							<KeyValue key="maxLetters" value="255" type="number"/>
							<KeyValue key="instructions" value="DESCRIPTION_OF_YOUR_GROUP" type="global"/>
						</KeyValues>
					</ScrollFrame>
					<Button parentKey="ListGroupButton" inherits="LFGListMagicButtonTemplate" text="LIST_GROUP" motionScriptsWhileDisabled="true">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-5" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListEntryCreationListGroupButton_OnClick"/>
							<OnEnter>
								if ( self.errorText ) then
									GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
									GameTooltip:SetText(self.errorText, nil, nil, nil, nil, true);
									GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Button>
					<Button parentKey="CancelButton" inherits="LFGListMagicButtonTemplate" text="BACK">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMLEFT" x="-1" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListEntryCreationCancelButton_OnClick"/>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListEntryCreation_OnLoad"/>
				</Scripts>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad function="LFGListFrame_OnLoad"/>
			<OnEvent function="LFGListFrame_OnEvent"/>
			<OnShow function="LFGListFrame_OnShow"/>
		</Scripts>
	</Frame>
	<Frame name="LFGListApplicationDialog" parent="UIParent" frameStrata="DIALOG" hidden="true" enableMouse="true">
		<Size x="306" y="210"/>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Label" inherits="GameFontHighlight" text="Choose your Roles">
					<Anchors>
						<Anchor point="TOP" x="0" y="-15"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="HealerButton" inherits="LFGListRoleButtonTemplate">
				<Size x="70" y="70"/>
				<Anchors>
					<Anchor point="TOP" x="0" y="-35"/>
				</Anchors>
				<KeyValues>
					<KeyValue key="role" value="HEALER" type="string"/>
					<KeyValue key="roleID" value="3" type="number"/>
				</KeyValues>
			</Button>
			<Button parentKey="TankButton" inherits="LFGListRoleButtonTemplate">
				<Size x="70" y="70"/>
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.HealerButton" relativePoint="LEFT" x="-5" y="0"/>
				</Anchors>
				<KeyValues>
					<KeyValue key="role" value="TANK" type="string"/>
					<KeyValue key="roleID" value="2" type="number"/>
				</KeyValues>
			</Button>
			<Button parentKey="DamagerButton" inherits="LFGListRoleButtonTemplate">
				<Size x="70" y="70"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.HealerButton" relativePoint="RIGHT" x="5" y="0"/>
				</Anchors>
				<KeyValues>
					<KeyValue key="role" value="DAMAGER" type="string"/>
					<KeyValue key="roleID" value="1" type="number"/>
				</KeyValues>
			</Button>
			<ScrollFrame parentKey="Description" name="LFGListApplicationDialogDescription" inherits="InputScrollFrameTemplate">
				<Size x="210" y="35"/>
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="55"/>
				</Anchors>
				<KeyValues>
					<KeyValue key="maxLetters" value="63" type="number"/>
					<KeyValue key="instructions" value="LFG_LIST_NOTE_TO_LEADER" type="global"/>
					<KeyValue key="hideCharCount" value="true" type="boolean"/>
				</KeyValues>
			</ScrollFrame>
			<Button parentKey="SignUpButton" inherits="UIPanelButtonTemplate" text="SIGN_UP" motionScriptsWhileDisabled="true">
				<Size x="100" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOM" x="-5" y="15"/>
				</Anchors>
				<Scripts>
					<OnClick>
						local dialog = self:GetParent();
						C_LFGList.ApplyToGroup(dialog.resultID, dialog.Description.EditBox:GetText(), dialog.TankButton:IsShown() and dialog.TankButton.CheckButton:GetChecked(), dialog.HealerButton:IsShown() and dialog.HealerButton.CheckButton:GetChecked(), dialog.DamagerButton:IsShown() and dialog.DamagerButton.CheckButton:GetChecked());
						StaticPopupSpecial_Hide(dialog);
					</OnClick>
					<OnEnter>
						if ( self.errorText ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(self.errorText, nil, nil, nil, nil, true);
							GameTooltip:Show();
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Button>
			<Button parentKey="CancelButton" inherits="UIPanelButtonTemplate" text="CANCEL">
				<Size x="100" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeKey="$parent" relativePoint="BOTTOM" x="5" y="15"/>
				</Anchors>
				<Scripts>
					<OnClick>
						StaticPopupSpecial_Hide(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="LFGListApplicationDialog_OnLoad"/>
			<OnEvent function="LFGListApplicationDialog_OnEvent"/>
		</Scripts>
	</Frame>
	<Frame name="LFGListInviteDialog" parent="UIParent" frameStrata="DIALOG" hidden="true" enableMouse="true">
		<Size x="314" y="210"/>
		<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="ARTWORK">
				<FontString parentKey="Label" inherits="GameFontHighlight" text="LFG_LIST_INVITED_TO_GROUP">
					<Anchors>
						<Anchor point="TOP" x="0" y="-18"/>
					</Anchors>
				</FontString>
				<FontString parentKey="GroupName" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP" x="0" y="-46"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ActivityName" inherits="GameFontHighlightSmall">
					<Anchors>
						<Anchor point="TOP" x="0" y="-64"/>
					</Anchors>
				</FontString>
				<Texture parentKey="RoleIcon" file="Interface\LFGFrame\UI-LFG-ICON-ROLES">
					<Size x="62" y="62"/>
					<Anchors>
						<Anchor point="TOP" x="0" y="-93"/>
					</Anchors>
					<TexCoords left="0" right="0.2617" top="0.2617" bottom="0.5234"/>
				</Texture>
				<FontString parentKey="RoleDescription" inherits="GameFontHighlightSmall" text="YOUR_ROLE">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.RoleIcon" relativePoint="TOPLEFT" x="-13" y="-18"/>
					</Anchors>
				</FontString>
				<FontString parentKey="Role" inherits="GameFontNormalLarge">
					<Anchors>
						<Anchor point="TOPRIGHT" relativeKey="$parent.RoleDescription" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="AcceptButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
				<Size x="118" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOM" x="-8" y="23"/>
				</Anchors>
				<Scripts>
					<OnClick>
						LFGListInviteDialog_Accept(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="DeclineButton" inherits="UIPanelButtonTemplate" text="DECLINE">
				<Size x="118" y="22"/>
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeKey="$parent" relativePoint="BOTTOM" x="8" y="23"/>
				</Anchors>
				<Scripts>
					<OnClick>
						LFGListInviteDialog_Decline(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="AcknowledgeButton" inherits="UIPanelButtonTemplate" text="OK">
				<Size x="118" y="22"/>
				<Anchors>
					<Anchor point="BOTTOM" relativeKey="$parent" relativePoint="BOTTOM" x="0" y="23"/>
				</Anchors>
				<Scripts>
					<OnClick>
						LFGListInviteDialog_Acknowledge(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="LFGListInviteDialog_OnLoad"/>
			<OnEvent function="LFGListInviteDialog_OnEvent"/>
		</Scripts>
	</Frame>
</Ui>