<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-->
	<Frame name="LFGListGroupDataDisplayTemplate" virtual="true">
		<Size x="125" y="24"/>
		<Frames>
			<Frame parentKey="RoleCount" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="DamagerIcon" atlas="groupfinder-icon-role-large-dps" useAtlasSize="true">
							<Anchors>
								<Anchor point="RIGHT" x="-11" y="0"/>
							</Anchors>
						</Texture>
						<FontString parentKey="DamagerCount" inherits="GameFontHighlightSmall" justifyH="CENTER">
							<Size x="17" y="14"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.DamagerIcon" relativePoint="LEFT" x="-1" y="0"/>
							</Anchors>
						</FontString>
						<Texture parentKey="HealerIcon" atlas="groupfinder-icon-role-large-heal" useAtlasSize="true">
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.DamagerCount" relativePoint="LEFT" x="-4" y="0"/>
							</Anchors>
						</Texture>
						<FontString parentKey="HealerCount" inherits="GameFontHighlightSmall" justifyH="CENTER">
							<Size x="17" y="14"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.HealerIcon" relativePoint="LEFT" x="-1" y="0"/>
							</Anchors>
						</FontString>
						<Texture parentKey="TankIcon" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.HealerCount" relativePoint="LEFT" x="-4" y="0"/>
							</Anchors>
						</Texture>
						<FontString parentKey="TankCount" inherits="GameFontHighlightSmall" justifyH="CENTER">
							<Size x="17" y="14"/>
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent.TankIcon" relativePoint="LEFT" x="-1" y="0"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame parentKey="Enumerate" setAllPoints="true">
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon1" parentArray="Icons" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="-12" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="Icon2" parentArray="Icons" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.Icon1" relativePoint="CENTER" x="-18" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="Icon3" parentArray="Icons" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.Icon2" relativePoint="CENTER" x="-18" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="Icon4" parentArray="Icons" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.Icon3" relativePoint="CENTER" x="-18" y="0"/>
							</Anchors>
						</Texture>
						<Texture parentKey="Icon5" parentArray="Icons" atlas="groupfinder-icon-role-large-tank" useAtlasSize="true">
							<Anchors>
								<Anchor point="CENTER" relativeKey="$parent.Icon4" relativePoint="CENTER" x="-18" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
	</Frame>
	<Button name="LFGListSearchAutoCompleteButtonTemplate" useParentLevel="true" virtual="true">
		<Size x="275" y="22"/>
		<Layers>
			<Layer level="OVERLAY">
				<Texture parentKey="Selected" atlas="search-select" hidden="true" setAllPoints="true"/>
			</Layer>
		</Layers>
		<NormalTexture atlas="_search-rowbg"/>
		<PushedTexture atlas="_search-rowbg"/>
		<HighlightTexture atlas="search-highlight"/>
		<ButtonText parentKey="Label" setAllPoints="true" justifyH="LEFT" wordWrap="false">
			<Anchors>
				<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="5" y="0"/>
				<Anchor point="BOTTOMRIGHT" relativeKey="$parent" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
			</Anchors>
		</ButtonText>
		<NormalFont style="GameFontHighlightSmall"/>
		<HighlightFont style="GameFontHighlightSmall"/>
		<DisabledFont style="GameFontDisableSmall"/>
		<Scripts>
			<OnClick function="LFGListSearchAutoCompleteButton_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>
				PlaySound("igMainMenuOptionCheckBoxOn");
				LFGListEntryCreationActivityFinder_Select(self:GetParent():GetParent():GetParent():GetParent(), self.activityID);
			</OnClick>
			<OnEnter>
				if ( self.Label:IsTruncated() ) then
					GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
					GameTooltip:SetText(self.Label:GetText());
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave function="GameTooltip_Hide"/>
		</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="-1"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="FriendIcon">
				<Size x="20" y="19"/>
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.Name" relativePoint="RIGHT" x="0" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture parentKey="Icon" atlas="groupfinder-icon-friend" setAllPoints="true"/>
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						if ( self.relationship == "friend" ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(LFG_LIST_FRIEND, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, true);
							GameTooltip:Show();
						elseif ( self.relationship == "guild" ) then
							GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
							GameTooltip:SetText(LFG_LIST_GUILD_MEMBER, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1, true);
							GameTooltip:Show();
						else
							GameTooltip:Hide();
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Frame>
			<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>
						PlaySound("igMainMenuOptionCheckBoxOn");
						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>
						PlaySound("igMainMenuOptionCheckBoxOn");
						C_LFGList.SetApplicantMemberRole(self:GetParent():GetParent().applicantID, self:GetParent().memberIdx, self.role);
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad>
				self:RegisterForClicks("RightButtonUp");
			</OnLoad>
			<OnClick>
				PlaySound("igMainMenuOptionCheckBoxOn");
				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="309" y="20"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="Background">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-1"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
					</Anchors>
					<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="-3" 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>
						PlaySound("igMainMenuOptionCheckBoxOn");
						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" motionScriptsWhileDisabled="true">
				<Size x="80" y="22"/>
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent.DeclineButton" relativePoint="LEFT" x="-2" y="0"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						if ( not IsInRaid(LE_PARTY_CATEGORY_HOME) and GetNumGroupMembers(LE_PARTY_CATEGORY_HOME) + self:GetParent().numMembers + C_LFGList.GetNumInvitedApplicantMembers() > MAX_PARTY_MEMBERS + 1 ) then
							local dialog = StaticPopup_Show("LFG_LIST_INVITING_CONVERT_TO_RAID");
							if ( dialog ) then
								dialog.data = self:GetParent().applicantID;
							end
						else
							C_LFGList.InviteApplicant(self:GetParent().applicantID);
						end
					</OnClick>
					<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>
			<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">
		<!--KeyValues>
			Optional
			<KeyValue key="tabCategory" value="tabCategoryLabel" type="string"/>
		</KeyValues-->
		<Scripts>
			<OnLoad>
				if ( self.tabCategory ) then
					LFGListEditBox_AddToTabCategory(self, self.tabCategory);
				end
			</OnLoad>
			<OnEnterPressed function="EditBox_ClearFocus"/>
			<OnTabPressed function="LFGListEditBox_OnTabPressed"/>
		</Scripts>
	</EditBox>
	<Frame name="LFGListRequirementTemplate" virtual="true">
		<Size x="296" 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"/>
			<KeyValue key="tabCategory" value="tabCategoryLabel" type="string"/>
		</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"/>
				<HitRectInsets>
					<AbsInset left="0" right="-130" top="0" bottom="0"/>
				</HitRectInsets>
				<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
				if ( self.tabCategory ) then
					LFGListEditBox_AddToTabCategory(self.EditBox, self.tabCategory);
				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 parentKey="Label">
			<!--This may get reanchored in script if the text is too big for the box-->
			<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="LFGListSearchEntryTemplate" virtual="true">
		<Size x="312" y="36"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture parentKey="ResultBG">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-2"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="0"/>
					</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="3" y="-2"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="0"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<FontString parentKey="Name" inherits="GameFontNormal" justifyH="LEFT">
					<Size x="0" y="14"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="10" y="-6"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ActivityName" inherits="GameFontDisableSmallLeft">
					<Size x="0" y="15"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="10" y="2"/>
					</Anchors>
				</FontString>
				<FontString parentKey="ExpirationTime" inherits="GameFontGreenSmall" text="(1:77)" justifyH="LEFT">
					<Size x="35" y="12"/>
					<Anchors>
						<Anchor point="RIGHT" x="-35" y="-1"/>
					</Anchors>
					<Color r="0.25" g="0.75" b="0.25"/>
				</FontString>
				<FontString parentKey="PendingLabel" inherits="GameFontGreenSmall" text="LFG_LIST_PENDING" justifyH="RIGHT">
					<Size x="70" y="0"/>
					<Anchors>
						<Anchor point="RIGHT" relativeKey="$parent.ExpirationTime" relativePoint="LEFT" x="-3" y="-1"/>
					</Anchors>
				</FontString>
			</Layer>
			<Layer level="OVERLAY">
				<Texture parentKey="Selected" atlas="groupfinder-highlightbar-yellow" alphaMode="ADD" hidden="true">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-3"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="-1"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="HIGHLIGHT">
				<Texture parentKey="Highlight" atlas="groupfinder-highlightbar-blue" alphaMode="ADD">
					<Anchors>
						<Anchor point="TOPLEFT" x="3" y="-3"/>
						<Anchor point="BOTTOMRIGHT" x="-3" y="-1"/>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="DataDisplay" inherits="LFGListGroupDataDisplayTemplate">
				<Anchors>
					<Anchor point="RIGHT" relativeKey="$parent" relativePoint="RIGHT" x="0" y="-1"/>
				</Anchors>
			</Frame>
			<Button parentKey="VoiceChat" inherits="LFGListVoiceChatIcon">
				<Anchors>
					<Anchor point="LEFT" relativeKey="$parent.Name" relativePoint="RIGHT" x="5" y="-1"/>
				</Anchors>
				<Scripts>
					<OnClick>
						self:GetParent():Click(button);
					</OnClick>
				</Scripts>
			</Button>
			<Frame parentKey="Spinner" inherits="LoadingSpinnerTemplate" hidden="true">
				<Anchors>
					<Anchor point="RIGHT" x="3" y="-1"/>
				</Anchors>
				<Scripts>
					<OnLoad>
						self.Anim:Play();
					</OnLoad>
				</Scripts>
			</Frame>
			<Button parentKey="CancelButton" inherits="UIMenuButtonStretchTemplate" motionScriptsWhileDisabled="true">
				<Size x="26" y="24"/>
				<Anchors>
					<Anchor point="RIGHT" x="-9" y="-1"/>
				</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>
						PlaySound("igMainMenuOptionCheckBoxOn");
						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="-3" y="-35"/>
							</Anchors>
							<Color r="1.0" g="0.82" b="0"/>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1"/>
								</Offset>
								<Color r="0" g="0" b="0"/>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="-61" />
							<Anchor point="BOTTOMRIGHT" x="-5" y="26" />
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="CustomBG" atlas="groupfinder-background" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOPLEFT" x="3" y="-3" relativePoint="TOPLEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
					<Button parentArray="CategoryButtons" inherits="LFGListCategoryTemplate">
						<Anchors>
							<Anchor point="TOP" x="-3" y="-77"/>
						</Anchors>
					</Button>
					<Button parentKey="FindGroupButton" inherits="LFGListMagicButtonTemplate" text="LFG_LIST_FIND_A_GROUP">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-3" 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="-3" 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>
				<Frames>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="-61" />
							<Anchor point="BOTTOMRIGHT" x="-5" y="26" />
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="CustomBG" atlas="groupfinder-background" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOPLEFT" x="3" y="-3" relativePoint="TOPLEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</Frame>
				</Frames>
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="Label" inherits="QuestFont_Huge" text="LFGLIST_NAME">
							<Anchors>
								<Anchor point="TOP" x="-3" y="-35"/>
							</Anchors>
							<Color r="1.0" g="0.82" b="0"/>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1"/>
								</Offset>
								<Color r="0" g="0" b="0"/>
							</Shadow>
						</FontString>
						<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="MailFont_Large" justifyH="LEFT">
							<Size x="280" y="18"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="4" y="-33"/>
							</Anchors>
							<Color r="1" g="0.82" b="0"/>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1"/>
								</Offset>
								<Color r="0" g="0" b="0"/>
							</Shadow>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<EditBox parentKey="SearchBox" inherits="SearchBoxTemplate" letters="64">
						<Size x="319" y="18"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.CategoryName" relativePoint="BOTTOMLEFT" x="4" y="-7"/>
						</Anchors>
						<Scripts>
							<!--Note: The clearButton's OnClick is also changed in Lua-->
							<OnEnterPressed function="LFGListSearchPanelSearchBox_OnEnterPressed"/>
							<OnTabPressed function="LFGListSearchPanelSearchBox_OnTabPressed"/>
							<OnArrowPressed function="LFGListSearchPanelSearchBox_OnArrowPressed"/>
							<OnTextChanged function="LFGListSearchPanelSearchBox_OnTextChanged"/>
							<OnEditFocusGained>
								LFGListSearchPanel_UpdateAutoComplete(self:GetParent());
								SearchBoxTemplate_OnEditFocusGained(self);
							</OnEditFocusGained>
							<OnEditFocusLost>
								LFGListSearchPanel_UpdateAutoComplete(self:GetParent());
								SearchBoxTemplate_OnEditFocusLost(self);
							</OnEditFocusLost>
						</Scripts>
					</EditBox>
					<Frame parentKey="AutoCompleteFrame" frameLevel="20">
						<Size x="0" y="30"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.SearchBox" relativePoint="BOTTOMLEFT" x="-2" y="0"/>
							<Anchor point="TOPRIGHT" relativeKey="$parent.SearchBox" relativePoint="BOTTOMRIGHT" x="-4" y="0"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<Texture parentKey="BottomLeftBorder" inherits="UI-Frame-BotCornerLeft">
									<Anchors>
										<Anchor point="BOTTOMLEFT" x="0" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="BottomRightBorder" inherits="UI-Frame-BotCornerRight">
									<Anchors>
										<Anchor point="BOTTOMRIGHT" x="0" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="BottomBorder" inherits="_UI-Frame-Bot">
									<Anchors>
										<Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeftBorder" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
										<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightBorder" relativePoint="BOTTOMLEFT" x="0" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="LeftBorder" inherits="!UI-Frame-LeftTile">
									<Anchors>
										<Anchor point="TOPLEFT" x="0" y="0" />
										<Anchor point="BOTTOMLEFT" relativeKey="$parent.BottomLeftBorder" relativePoint="TOPLEFT"/>
									</Anchors>
								</Texture>
								<Texture parentKey="RightBorder" inherits="!UI-Frame-RightTile">
									<Anchors>
										<Anchor point="TOPRIGHT" x="1" y="0" />
										<Anchor point="BOTTOMRIGHT" relativeKey="$parent.BottomRightBorder" relativePoint="TOPRIGHT" x="1" y="0"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Frames>
							<Button parentArray="Results" inherits="LFGListSearchAutoCompleteButtonTemplate">
								<Anchors>
									<Anchor point="TOPLEFT" relativeKey="$parent.LeftBorder" relativePoint="TOPRIGHT" x="-8" y="0"/>
									<Anchor point="TOPRIGHT" relativeKey="$parent.RightBorder" relativePoint="TOPLEFT" x="5" y="0"/>
								</Anchors>
							</Button>
						</Frames>
					</Frame>
					<Button parentKey="RefreshButton">
						<Size x="32" y="32"/>
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.CategoryName" relativePoint="RIGHT" x="15" y="1"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK" textureSubLevel="5">
								<Texture parentKey="Icon" file="Interface\Buttons\UI-RefreshButton">
									<Size x="16" y="16"/>
									<Anchors>
										<Anchor point="CENTER" x="-1" y="0"/>
									</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", -2, -1);
							</OnMouseDown>
							<OnMouseUp>
								self.Icon:SetPoint("CENTER", self, "CENTER", -1, 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>
								PlaySound("igMainMenuOptionCheckBoxOn");
								LFGListSearchPanel_DoSearch(self:GetParent());
							</OnClick>
						</Scripts>
					</Button>
					<Frame parentKey="ResultsInset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="-86"/>
							<Anchor point="BOTTOMRIGHT" x="-25" y="26"/>
						</Anchors>
					</Frame>
					<!--Name needed for HybridScrollFrameTemplate-->
					<ScrollFrame parentKey="ScrollFrame" name="LFGListSearchPanelScrollFrame" inherits="HybridScrollFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.ResultsInset" x="1" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.ResultsInset" x="-4" y="3"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="NoResultsFound" inherits="GameFontDisable" text="LFG_LIST_NO_RESULTS_FOUND">
									<Size x="240" y="0"/>
									<Anchors>
										<Anchor point="TOP" x="0" y="-40"/>
									</Anchors>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Button parentKey="StartGroupButton" inherits="UIPanelButtonTemplate" text="START_A_GROUP" motionScriptsWhileDisabled="true">
								<Size x="135" y="22"/>
								<Anchors>
									<Anchor point="TOP" relativeKey="$parent.NoResultsFound" relativePoint="BOTTOM" x="0" y="-20"/>
								</Anchors>
								<Scripts>
									<OnClick>
										PlaySound("igMainMenuOptionCheckBoxOn");
										LFGListSearchPanel_CreateGroupInstead(self:GetParent():GetParent());
									</OnClick>
									<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>
							<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="-3" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								local frame = self:GetParent():GetParent();
								PlaySound("igMainMenuOptionCheckBoxOn");
								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="-3" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								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-dungeons" useAtlasSize="true">
							<Anchors>
								<Anchor point="TOPLEFT" x="-2" y="-21"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString parentKey="EntryName" inherits="GameFontNormalLarge" justifyH="LEFT">
							<Size x="0" y="18"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.InfoBackground" relativePoint="TOPLEFT" x="12" y="-10"/>
							</Anchors>
							<Color r="1" g="0.82" b="0"/>
						</FontString>
						<FontString parentKey="ItemLevel" inherits="GameFontNormalSmall">
							<Anchors>
								<Anchor point="TOPLEFT" relativeKey="$parent.InfoBackground" relativePoint="TOPLEFT" x="12" y="-52"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="DescriptionFrame">
						<Size x="310" y="14"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.InfoBackground" relativePoint="TOPLEFT" x="12" y="-35"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="Text" inherits="GameFontHighlightSmall" setAllPoints="true" justifyH="LEFT"/>
							</Layer>
						</Layers>
						<Scripts>
							<OnEnter>
								if ( self.Text:IsTruncated() ) then
									GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
									GameTooltip:SetText(self.activityName, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b);
									if ( self.comment ~= "" ) then
										GameTooltip:AddLine(string.format(LFG_LIST_IN_QUOTES, self.comment), GRAY_FONT_COLOR.r, GRAY_FONT_COLOR.g, GRAY_FONT_COLOR.b, true);
									end
									GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Frame>
					<Frame parentKey="DataDisplay" inherits="LFGListGroupDataDisplayTemplate">
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.InfoBackground" relativePoint="RIGHT" x="-4" y="-38"/>
						</Anchors>
						<Scripts>
							<OnEnter>
								if ( self.RoleCount:IsShown() ) then
									GameTooltip:SetOwner(self, "ANCHOR_TOP");
									GameTooltip:SetText(string.format(LFG_LIST_MEMBER_COUNT, GetNumGroupMembers(LE_PARTY_CATEGORY_HOME)));
									GameTooltip:Show();
								end
							</OnEnter>
							<OnLeave function="GameTooltip_Hide"/>
						</Scripts>
					</Frame>
					<Frame parentKey="VoiceChatFrame" inherits="LFGListVoiceChatIcon">
						<Anchors>
							<Anchor point="LEFT" relativeKey="$parent.EntryName" relativePoint="RIGHT" x="5" y="-1"/>
						</Anchors>
					</Frame>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Size x="215" y="496"/>
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="-150" />
							<Anchor point="BOTTOMRIGHT" x="-25" 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>
						<Scripts>
							<OnLoad>
								--The ItemLevel tab will increase in width as needed
								local overBy = self.Label:GetWidth() + 15 - self:GetWidth();
								if ( overBy > 0 ) then
									--Bring in by up to 4 pixels on each side
									local bringIn = math.min(4, overBy / 2);
									self.Label:SetPoint("LEFT", self, "LEFT", 8 - bringIn, 0);
									self:SetWidth(self.Label:GetWidth() + 15 - bringIn * 2);
								end
							</OnLoad>
						</Scripts>
					</Button>
					<Button parentKey="RefreshButton">
						<Size x="32" y="32"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" relativePoint="TOPRIGHT" x="21" 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" x="-1" y="0"/>
									</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", -2, -1);
							</OnMouseDown>
							<OnMouseUp>
								self.Icon:SetPoint("CENTER", self, "CENTER", -1, 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>
								PlaySound("igMainMenuOptionCheckBoxOn");
								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="1" y="-3"/>
							<Anchor point="BOTTOMRIGHT" relativeKey="$parent.Inset" x="-4" y="3"/>
						</Anchors>
						<Layers>
							<Layer level="OVERLAY">
								<FontString parentKey="NoApplicants" inherits="GameFontNormal" justifyH="CENTER" text="LFG_LIST_NO_APPLICANTS">
									<Size x="280" y="0"/>
									<Anchors>
										<Anchor point="TOP" relativeKey="$parent" relativePoint="TOP" x="0" y="-20"/>
									</Anchors>
									<Color r=".5" g=".5" b=".5" a=".5"/>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate" 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="-3" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick>
								PlaySound("igMainMenuOptionCheckBoxOn");
								C_LFGList.RemoveListing();
							</OnClick>
						</Scripts>
					</Button>
					<Button parentKey="EditButton" inherits="LFGListMagicButtonTemplate" text="EDIT">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-3" 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" setAllPoints="true">
									<Color r=".035" g=".071" b=".118" a="0.5"/>
								</Texture>
							</Layer>
							<Layer level="ARTWORK">
								<FontString parentKey="Label" inherits="GameFontNormalMed2" text="LFG_LIST_GROUP_FORMING" justifyH="CENTER">
									<Anchors>
										<Anchor point="CENTER" x="0" y="20"/>
									</Anchors>
								</FontString>
								<Texture parentKey="Waitdot2" hidden="false" alpha="0" atlas="groupfinder-waitdot" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOP" relativeKey="$parent.Label" relativePoint="BOTTOM" x="0" y="-16"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Waitdot1" hidden="false" alpha="0" atlas="groupfinder-waitdot" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.Waitdot2" x="-16" y="0"/>
									</Anchors>
								</Texture>
								<Texture parentKey="Waitdot3" hidden="false" alpha="0" atlas="groupfinder-waitdot" useAtlasSize="true">
									<Anchors>
										<Anchor point="CENTER" relativeKey="$parent.Waitdot2" x="16" y="0"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
						<Animations>
							<AnimationGroup parentKey="WaitAnim" looping="REPEAT">
								<Alpha childKey="Waitdot1" startDelay="0.65" duration="0.15" order="1" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Waitdot2" startDelay="0.50" duration="0.15" order="2" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Waitdot3" startDelay="0.50" duration="0.15" order="3" fromAlpha="0" toAlpha="1"/>
								<Alpha childKey="Waitdot1" startDelay="0.50" duration="0.15" order="4" fromAlpha="1" toAlpha="0"/>
								<Alpha childKey="Waitdot2" startDelay="0.50" duration="0.15" order="4" fromAlpha="1" toAlpha="0"/>
								<Alpha childKey="Waitdot3" startDelay="0.50" duration="0.15" order="4" fromAlpha="1" toAlpha="0"/>
							</AnimationGroup>
						</Animations>
						<Scripts>
							<OnLoad>
								self.WaitAnim:Play();
							</OnLoad>
						</Scripts>
					</Frame>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListApplicationViewer_OnLoad"/>
					<OnEvent function="LFGListApplicationViewer_OnEvent"/>
					<OnShow function="LFGListApplicationViewer_OnShow"/>
				</Scripts>
			</Frame>
			<Frame parentKey="EntryCreation" inherits="LFGListPanelTemplate">
				<Layers>
					<Layer level="ARTWORK">
						<FontString parentKey="Label" inherits="QuestFont_Huge" text="START_A_GROUP">
							<Anchors>
								<Anchor point="TOP" x="-3" y="-35"/>
							</Anchors>
							<Color r="1.0" g="0.82" b="0"/>
							<Shadow>
								<Offset>
									<AbsDimension x="1" y="-1"/>
								</Offset>
								<Color r="0" g="0" b="0"/>
							</Shadow>
						</FontString>
						<FontString parentKey="TypeLabel" inherits="GameFontNormalLeft" text="LFG_LIST_ACTIVITY">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="20" y="-88"/>
							</Anchors>
						</FontString>
						<FontString parentKey="NameLabel" inherits="GameFontNormalLeft" text="LFG_LIST_TITLE">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="20" y="-183"/>
							</Anchors>
						</FontString>
						<FontString parentKey="DescriptionLabel" inherits="GameFontNormalLeft" text="LFG_LIST_DETAILS">
							<Anchors>
								<Anchor point="LEFT" relativeKey="$parent" relativePoint="TOPLEFT" x="20" y="-240"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Frames>
					<Frame parentKey="Inset" useParentLevel="true" inherits="InsetFrameTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" x="-1" y="-61" />
							<Anchor point="BOTTOMRIGHT" x="-5" y="26" />
						</Anchors>
						<Layers>
							<Layer level="BACKGROUND">
								<Texture parentKey="CustomBG" atlas="groupfinder-background" useAtlasSize="true">
									<Anchors>
										<Anchor point="TOPLEFT" x="3" y="-3" relativePoint="TOPLEFT"/>
									</Anchors>
								</Texture>
							</Layer>
						</Layers>
					</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());
												PlaySound("igMainMenuOptionCheckBoxOn");
											</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>
												PlaySound("igMainMenuOptionCheckBoxOn");
												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>
												PlaySound("igMainMenuOptionCheckBoxOn");
												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="288" y="22"/>
						<KeyValues>
							<KeyValue key="tabCategory" value="ENTRY_CREATION" type="string"/>
						</KeyValues>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.NameLabel" relativePoint="BOTTOMLEFT" x="5" y="-5"/>
						</Anchors>
						<Scripts>
							<OnEditFocusGained function="nop"/> <!--Override the base one that selects all text-->
							<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="0" y="-100"/>
						</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="3"/>
						</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="3"/>
						</Anchors>
					</Frame>
					<ScrollFrame parentKey="Description" name="LFGListEntryCreationDescription" inherits="InputScrollFrameTemplate">
						<Size x="283" y="46"/>
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.Inset" relativePoint="TOPLEFT" x="26" y="-196"/>
						</Anchors>
						<KeyValues>
							<KeyValue key="maxLetters" value="255" type="number"/>
							<KeyValue key="instructions" value="DESCRIPTION_OF_YOUR_GROUP" type="global"/>
							<KeyValue key="hideCharCount" value="true" type="boolean"/>
						</KeyValues>
						<Scripts>
							<OnLoad>
								LFGListEditBox_AddToTabCategory(self.EditBox, "ENTRY_CREATION");
								self.EditBox:SetScript("OnTabPressed", LFGListEditBox_OnTabPressed);
								InputScrollFrame_OnLoad(self);
							</OnLoad>
						</Scripts>
					</ScrollFrame>
					<Frame parentKey="ItemLevel" inherits="LFGListRequirementTemplate">
						<Anchors>
							<Anchor point="TOPLEFT" relativeKey="$parent.Inset" relativePoint="TOPLEFT" x="20" y="-265"/>
						</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"/>
							<KeyValue key="tabCategory" value="ENTRY_CREATION" type="string"/>
						</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"/>
							<KeyValue key="tabCategory" value="ENTRY_CREATION" type="string"/>
						</KeyValues>
					</Frame>
					<Button parentKey="ListGroupButton" inherits="LFGListMagicButtonTemplate" text="LIST_GROUP" motionScriptsWhileDisabled="true">
						<Size x="135" y="22"/>
						<Anchors>
							<Anchor point="BOTTOMRIGHT" x="-3" 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="-3" y="4"/>
						</Anchors>
						<Scripts>
							<OnClick function="LFGListEntryCreationCancelButton_OnClick"/>
						</Scripts>
					</Button>
				</Frames>
				<Scripts>
					<OnLoad function="LFGListEntryCreation_OnLoad"/>
					<OnEvent function="LFGListEntryCreation_OnEvent"/>
					<OnShow function="LFGListEntryCreation_OnShow"/>
				</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="203"/>
		<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_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="28"/>
				<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();
						PlaySound("igMainMenuOptionCheckBoxOn");
						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>
						PlaySound("igMainMenuOptionCheckBoxOn");
						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>
				<FontString parentKey="OfflineNotice" inherits="GameFontRed" text="LFG_LIST_OFFLINE_MEMBER_NOTICE">
					<Size x="250" y="0"/>
					<Anchors>
						<Anchor point="CENTER" relativeKey="$parent" relativePoint="BOTTOM" x="0" y="35"/>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button parentKey="AcceptButton" inherits="UIPanelButtonTemplate" text="ACCEPT">
				<Size x="118" y="22"/>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeKey="$parent" relativePoint="TOP" x="-8" y="-165"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						LFGListInviteDialog_Accept(self:GetParent());
					</OnClick>
				</Scripts>
			</Button>
			<Button parentKey="DeclineButton" inherits="UIPanelButtonTemplate" text="DECLINE">
				<Size x="118" y="22"/>
				<Anchors>
					<Anchor point="TOPLEFT" relativeKey="$parent" relativePoint="TOP" x="8" y="-165"/>
				</Anchors>
				<Scripts>
					<OnClick>
						PlaySound("igMainMenuOptionCheckBoxOn");
						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>