<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="FlexRaidFrame.lua"/>
	<Frame name="FlexRaidFrame" useParentLevel="true" parent="GroupFinderFrame" hidden="true">
		<Size x="338" y="428"/>
		<Anchors>
			<Anchor point="TOPLEFT" x="224" y="0"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
			</Layer>
			<Layer level="ARTWORK">
				
			</Layer>
		</Layers>
		<Frames>
			<Frame parentKey="NoRaidsCover" enableMouse="true" hidden="true" topLevel="true">
				<Anchors>
					<Anchor point="TOPRIGHT" x="-6" y="-25"/>
					<Anchor point="BOTTOMLEFT" x="3" y="4"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture>
							<Color r="0" g="0" b="0" a="0.8"/>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<FontString parentKey="Label" inherits="GameFontNormalLarge" justifyH="CENTER" justifyV="MIDDLE">
							<Size x="320" y="0"/>
							<Anchors>
								<Anchor point="CENTER"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>
			<Frame name="$parentBottomInset" 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 name="$parentSelectionDropDown" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottomInset" relativePoint="TOPRIGHT" x="8" y="0"/>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parentName" inherits="GameFontNormal" justifyH="RIGHT" text="RAID">
							<Size x="115" y="24"/>
							<Anchors>
								<Anchor point="RIGHT" relativePoint="LEFT" x="0" y="2"/>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnShow function="FlexRaidFrameSelectionDropDown_SetUp"/>
				</Scripts>
			</Frame>
			<ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate" parentKey="ScrollFrame">
				<Size x="306" y="333"/>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" x="-29" y="28"/>
				</Anchors>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentScrollBackground">
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-4" y="0"/>
								<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="24" y="-2"/>
							</Anchors>
							<Color r="0" b="0" g="0" a=".65"/>
						</Texture>
						<Texture name="$parentBackground" parentKey="Background">
							<Size x="512" y="256"/>
							<Anchors>
								<Anchor point="TOPLEFT" x="0" y="-1"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="BACKGROUND" textureSubLevel="2">
						<Texture name="$parentBackgroundCover" file="Interface\LFGFRAME\FlexRaid-BGCover">
							<Size x="326" y="120"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" x="0" y="0"/>
							</Anchors>
						</Texture>
					</Layer>
					<Layer level="ARTWORK">
						<Texture name="$parentScrollBackgroundTopLeft" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size x="31" y="256"/>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="-5" y="5"/>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentScrollBackgroundBottomRight" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size x="31" y="106"/>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="-5" y="-3"/>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
						</Texture>
					</Layer>
				</Layers>
				<Scripts>
					<OnLoad>
						local myName = self:GetName();
						_G[myName.."ScrollBackground"]:SetParent(_G[myName.."ScrollBar"]);
						_G[myName.."ScrollBackgroundTopLeft"]:SetParent(_G[myName.."ScrollBar"]);
						_G[myName.."ScrollBackgroundBottomRight"]:SetParent(_G[myName.."ScrollBar"]);
						
						local scrollBar = _G[myName.."ScrollBar"];
						scrollBar:ClearAllPoints();
						scrollBar:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 3, 14);
						scrollBar:SetPoint("TOPLEFT", self, "TOPRIGHT", 3, -16);
						
						self.scrollBarHideable = true;
						ScrollFrame_OnLoad(self);
					</OnLoad>
				</Scripts>
				<ScrollChild>
					<Frame name="$parentChildFrame" parentKey="Child">
						<Size x="298" y="1"/>
						<Anchors>
							<Anchor point="TOPLEFT"/>
						</Anchors>
						<Layers>
							<Layer level="ARTWORK">
								<FontString parentKey="RaidTitle" inherits="QuestTitleFontBlackShadow" justifyH="LEFT">
									<Anchors>
										<Anchor point="TOPLEFT" x="15" y="-15" />
									</Anchors>
								</FontString>
								<FontString parentKey="RaidDescription" inherits="QuestFont" justifyH="LEFT">
									<Size x="282" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.RaidTitle" relativePoint="BOTTOMLEFT" y="-5"/>
									</Anchors>
									<Color r="1" g="1" b="1" a="1"/>
								</FontString>
								<FontString parentKey="FlexRaidTitle" inherits="QuestTitleFontBlackShadow" text="FLEX_RAID_INFO">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.RaidDescription" relativePoint="BOTTOMLEFT" y="-20"/>
									</Anchors>
								</FontString>
								<FontString parentKey="FlexSizeLabel" inherits="QuestFont" text="FLEX_RAID_SIZE_LABEL">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexRaidTitle" relativePoint="BOTTOMLEFT" y="-8"/>
									</Anchors>
									<Color r="1" g="0.82" b="0" a="1"/>
								</FontString>
								<FontString parentKey="FlexSizeText" inherits="QuestFont" justifyH="LEFT" text="FLEX_RAID_SIZE_TEXT">
									<Size x="282" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexSizeLabel" relativePoint="BOTTOMLEFT" y="0"/>
									</Anchors>
									<Color r="1" g="1" b="1" a="1"/>
								</FontString>
								<FontString parentKey="FlexLootLabel" inherits="QuestFont" text="LOOT_NOUN">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexSizeText" relativePoint="BOTTOMLEFT" y="-12"/>
									</Anchors>
									<Color r="1" g="0.82" b="0" a="1"/>
								</FontString>
								<FontString parentKey="FlexLootText" inherits="QuestFont" justifyH="LEFT" text="FLEX_RAID_LOOT_TEXT">
									<Size x="282" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexLootLabel" relativePoint="BOTTOMLEFT" y="0"/>
									</Anchors>
									<Color r="1" g="1" b="1" a="1"/>
								</FontString>
								<FontString parentKey="FlexLockoutLabel" inherits="QuestFont" text="FLEX_RAID_LOCKOUT_LABEL">
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexLootText" relativePoint="BOTTOMLEFT" y="-12"/>
									</Anchors>
									<Color r="1" g="0.82" b="0" a="1"/>
								</FontString>
								<FontString parentKey="FlexLockoutText" inherits="QuestFont" justifyH="LEFT" text="FLEX_RAID_LOCKOUT_TEXT">
									<Size x="282" y="0"/>
									<Anchors>
										<Anchor point="TOPLEFT" relativeKey="$parent.FlexLockoutLabel" relativePoint="BOTTOMLEFT" y="0"/>
									</Anchors>
									<Color r="1" g="1" b="1" a="1"/>
								</FontString>
							</Layer>
						</Layers>
						<Frames>
							<Frame name="$parentLockouts" parentKey="Lockouts" hidden="true">
								<Size x="18" y="18"/>
								<Anchors>
									<Anchor point="LEFT" relativeKey="$parent.RaidTitle" relativePoint="RIGHT" x="5"/>
								</Anchors>
								<Layers>
									<Layer level="ARTWORK">
										<Texture name="$parentTexture" file="Interface\DialogFrame\UI-Dialog-Icon-AlertNew" setAllPoints="true"/>
									</Layer>
								</Layers>
								<Scripts>
									<OnEnter function="LFGRewardsFrameEncounterList_OnEnter"/>
									<OnLeave function="GameTooltip_Hide"/>
								</Scripts>
							</Frame>
						</Frames>
						<Scripts>
							<OnShow>
								if (FlexRaidFrame.raid) then
									FlexRaidFrame_Update(FlexRaidFrame.raid);
								end
							</OnShow>
						</Scripts>
					</Frame>
				</ScrollChild>
			</ScrollFrame>
			<Button name="$parentStartRaidButton" parentKey="StartButton" inherits="MagicButtonTemplate" text="START_RAID" motionScriptsWhileDisabled="true">
				<Size x="135" y="22"/>
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="4"/>
				</Anchors>
				<Scripts>
					<OnClick>
						FlexRaidFrame_Join();
					</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, 1);
						end
					</OnEnter>
					<OnLeave function="GameTooltip_Hide"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnLoad function="FlexRaidFrame_OnLoad"/>
			<OnEvent function="FlexRaidFrame_OnEvent"/>
			<OnShow function="FlexRaidFrame_OnShow"/>
		</Scripts>
	</Frame>
</Ui>