<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">

  <Button name="LFG_MinimapButton" parent="Minimap" enableMouse="true" movable="true" hidden="false">
    <Size>
      <AbsDimension x="33" y="33"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT"/>
    </Anchors>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="LFG_MinimapButton_Icon" file="Interface\AddOns\LFG\Icons\frames\BattlenetWorking0">
          <Size>
            <AbsDimension x="32" y="32"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="OVERLAY">
        <Texture file="Interface\Minimap\MiniMap-TrackingBorder">
          <Size>
            <AbsDimension x="56" y="56"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT"/>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <Frames>
      <Frame name="LFG_MinimapButton_DraggingFrame" hidden="true">
        <Scripts>
          <OnUpdate>
            LFG.MinimapIcon.OnUpdate();
          </OnUpdate>
        </Scripts>
      </Frame>
    </Frames>
    <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/>
    <Scripts>
      <OnLoad>
        this:RegisterForClicks("LeftButtonUp","RightButtonUp");
        this:RegisterForDrag("LeftButton","RightButton");
      </OnLoad>
      <OnDragStart>
        this:LockHighlight();
        LFG_MinimapButton_DraggingFrame:Show();
      </OnDragStart>
      <OnDragStop>
        this:UnlockHighlight();
        LFG_MinimapButton_DraggingFrame:Hide();
      </OnDragStop>
      <OnClick>
        LFG.MinimapIcon.toggle();
      </OnClick>
    </Scripts>
  </Button>

  <EditBox name="LFGEditBoxTemplate" virtual="true">
    <Size>
      <AbsDimension x="250" y="50"/>
    </Size>
    <TextInsets>
      <AbsInset left="10" right="10" top="5" bottom="5"/>
    </TextInsets>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="$parentTopLeft" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-TL">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentTopRight" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-TR">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="TOPRIGHT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentBottomLeft" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-BL">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentBottomRight" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-BR">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentTop" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-T">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="5" y="0"/>
              </Offset>
            </Anchor>
            <Anchor point="TOPRIGHT">
              <Offset>
                <AbsDimension x="-5" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentBottom" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-B">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="5" y="0"/>
              </Offset>
            </Anchor>
            <Anchor point="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="-5" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentLeft" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-L">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="-5"/>
              </Offset>
            </Anchor>
            <Anchor point="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="0" y="5"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentRight" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-R">
          <Size>
            <AbsDimension x="5" y="5"/>
          </Size>
          <Anchors>
            <Anchor point="TOPRIGHT">
              <Offset>
                <AbsDimension x="0" y="-5"/>
              </Offset>
            </Anchor>
            <Anchor point="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="0" y="5"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="$parentCover" file="Interface\AddOns\LFG\Icons\common\Common-Input-Border-M">
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="5" y="-5"/>
              </Offset>
            </Anchor>
            <Anchor point="BOTTOMRIGHT">
              <Offset>
                <AbsDimension x="-5" y="5"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
      </Layer>
    </Layers>
    <FontString inherits="ChatFontNormal"/>
  </EditBox>

  <Button name="LFGEventItemButtonTemplate" virtual="true">
    <Size>
      <AbsDimension x="296" y="34"/>
    </Size>
    <Layers>
      <Layer level="BACKGROUND" >
        <Texture name="$parentPendingTexture" file="Interface\AddOns\LFG\Icons\PendingFriendNameBG-New" alphaMode="ADD" hidden="true">
          <Anchors>
            <Anchor point="TOPLEFT"/>
            <Anchor point="BOTTOMRIGHT"/>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <FontString name="$parentTitle" inherits="GameFontNormal" justifyH="LEFT">
          <Size>
            <AbsDimension x="175" y="16"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="5" y="-2"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString name="$parentQueueTo" inherits="GameFontHighlight" justifyH="LEFT" text="0">
          <Size>
            <AbsDimension x="250" y="12"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="5" y="-8"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString name="$parentEventMembersCount" inherits="GameFontHighlight" justifyH="LEFT">
          <Size>
            <AbsDimension x="15" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="265" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>

        <FontString name="$parentPendingText" inherits="GameFontHighlight" justifyH="LEFT" hidden="true">
          <Color r="0.12" g="1" b="0.12"/>
          <Size>
            <AbsDimension x="100" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="170" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="$parentPendingCancel" toplevel="true" hidden="true">
        <Size>
          <AbsDimension x="32" y="32"/>
        </Size>
        <HitRectInsets>
          <AbsInset left="9" right="7" top="-7" bottom="10"/>
        </HitRectInsets>
        <Anchors>
          <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
            <Offset>
              <AbsDimension x="-5" y="-1"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            local parent = this:GetParent();
            local parentName = parent:GetName();
            LFG.Actions.Queue.cancel(parentName, parent.event);
          </OnClick>
        </Scripts>
        <NormalTexture file="Interface\Buttons\CancelButton-Up"/>
        <PushedTexture file="Interface\Buttons\CancelButton-Down"/>
        <HighlightTexture file="Interface\Buttons\CancelButton-Highlight" alphaMode="ADD"/>
      </Button>
    </Frames>
    <NormalTexture/>
    <PushedTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD"/>
    <HighlightTexture file="Interface\AddOns\LFG\Icons\UI-FriendsFrame-HighlightBar-Blue" alphaMode="ADD"/>
    <Scripts>
      <OnShow>
        this.time = 0;
      </OnShow>
      <OnLoad>
        this.time = 0;
        this:RegisterForClicks("LeftButtonUp","RightButtonUp");
      </OnLoad>
      <OnUpdate>
        this.time = this.time + arg1;
        if( this.time >= 1) then
          local name = this:GetName();
          local event = this.event;
          if(event.QTE) then
            local remining = event.QTE.expireAt - time();
            if(remining > 0) then
              getglobal(name.."PendingText"):SetText("Pending - "..LFG.Utils.String.getTimeStringForPending(remining));
            end
          end
          this.time  = 0;
        end
      </OnUpdate>
      <OnClick>
        LFG.EventScrollFrames.LFGEventOnClick(arg1)
      </OnClick>
      <OnEnter>
        LFG.EventScrollFrames.LFGEventOnEnter()
      </OnEnter>
      <OnLeave>
        GameTooltip:Hide();
      </OnLeave>
    </Scripts>
  </Button>

  <Button name="LFGQueueItemButtonTemplate" virtual="true">
    <Size>
      <AbsDimension x="296" y="25"/>
    </Size>
    <Layers>
      <Layer level="ARTWORK">
        <FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
          <Size>
            <AbsDimension x="175" y="16"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT"/>
          </Anchors>
        </FontString>

        <Texture name="$parentTanksTexture" file="Interface\AddOns\LFG\Icons\UI-LFG-ICON-PORTRAITROLES">
          <Size>
            <AbsDimension x="15" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="120" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0" right="0.28" top="0.34" bottom="0.62"/>
        </Texture>

        <Texture name="$parentHealersTexture" file="Interface\AddOns\LFG\Icons\UI-LFG-ICON-PORTRAITROLES">
          <Size>
            <AbsDimension x="15" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="140" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0.32" right="0.60" top="0.02" bottom="0.30"/>
        </Texture>

        <Texture name="$parentDPSTexture" file="Interface\AddOns\LFG\Icons\UI-LFG-ICON-PORTRAITROLES">
          <Size>
            <AbsDimension x="15" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="LEFT">
              <Offset>
                <AbsDimension x="160" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
          <TexCoords left="0.32" right="0.60" top="0.34" bottom="0.62"/>
        </Texture>

        <FontString name="$parentInviteQueueText" inherits="GameFontHighlight" justifyH="LEFT" text="Invited" hidden="true">
          <Color r="0.12" g="1" b="0.12"/>
          <Size>
            <AbsDimension x="65" y="16"/>
          </Size>
          <Anchors>
            <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
              <Offset>
                <AbsDimension x="-20" y="1"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="$parentInviteQueue" toplevel="true" inherits="UIPanelButtonTemplate" text="Invite">
        <Size>
          <AbsDimension x="65" y="18"/>
        </Size>
        <Anchors>
          <Anchor point="RIGHT" relativeTo="$parent" relativePoint="RIGHT">
            <Offset>
              <AbsDimension x="-30" y="1"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            local parent = this:GetParent();
            local parentName = parent:GetName();
            LFG.Actions.Party.invite(parentName, parent.queueIndex);
          </OnClick>
        </Scripts>
      </Button>
      <Button name="$parentDeclineQueue" toplevel="true">
        <Size>
          <AbsDimension x="32" y="32"/>
        </Size>
        <HitRectInsets>
          <AbsInset left="9" right="7" top="-7" bottom="10"/>
        </HitRectInsets>
        <Anchors>
          <Anchor point="LEFT" relativeTo="$parentInviteQueue" relativePoint="RIGHT">
            <Offset>
              <AbsDimension x="-5" y="-1"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            local parent = this:GetParent();
            local parentName = parent:GetName();=

            if (parent.queueIndex >= 1) then
              LFG.Actions.Queue.decline(index);
            end
          </OnClick>
        </Scripts>
        <NormalTexture file="Interface\Buttons\CancelButton-Up"/>
        <PushedTexture file="Interface\Buttons\CancelButton-Down"/>
        <HighlightTexture file="Interface\Buttons\CancelButton-Highlight" alphaMode="ADD"/>
      </Button>
    </Frames>
    <NormalTexture/>
    <PushedTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD"/>
    <HighlightTexture file="Interface\AddOns\LFG\Icons\UI-FriendsFrame-HighlightBar-Blue" alphaMode="ADD"/>
    <Scripts>
      <OnLoad>
        this:RegisterForClicks("LeftButtonUp","RightButtonUp");
      </OnLoad>
      <OnClick>
        LFG.QueueScrollFrames.LFGQueueOnClick(arg1)
      </OnClick>
      <OnEnter>
        LFG.QueueScrollFrames.LFGQueueOnEnter()
      </OnEnter>
      <OnLeave>
        GameTooltip:Hide();
      </OnLeave>
    </Scripts>
  </Button>

  <Frame name="LFGFrame" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true">
    <Size>
      <AbsDimension x="384" y="512"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT">
        <Offset>
          <AbsDimension x="0" y="-104"/>
        </Offset>
      </Anchor>
    </Anchors>
    <HitRectInsets>
      <AbsInset left="0" right="35" top="0" bottom="75"/>
    </HitRectInsets>
    <Layers>
      <Layer level="BACKGROUND">
        <Texture name="LFGFramePortrait" file="Interface\AddOns\LFG\Icons\UI-LFG-PORTRAIT">
          <Size>
            <AbsDimension x="58" y="58"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="8" y="-9"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
      </Layer>
      <Layer level="ARTWORK">
        <Texture name="LFGQueueFrameTexture" hidden="true" toplevel="true" file="Interface\AddOns\LFG\Icons\UI-LFR-FRAME-MAIN">
          <Size>
            <AbsDimension x="384" y="512"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT"/>
          </Anchors>
          <TexCoords left="0.008" right="0.758" top="0" bottom="1"/>
        </Texture>
        <Texture name="LFGFrameTopLeft" file="Interface\TaxiFrame\UI-TaxiFrame-TopLeft">
          <Size>
            <AbsDimension x="256" y="256"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT"/>
          </Anchors>
        </Texture>
        <Texture name="LFGFrameTopRight" file="Interface\TaxiFrame\UI-TaxiFrame-TopRight">
          <Size>
            <AbsDimension x="128" y="256"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="256" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="LFGFrameBotLeft" file="Interface\TaxiFrame\UI-TaxiFrame-BotLeft">
          <Size>
            <AbsDimension x="256" y="256"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="0" y="-256"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture name="LFGFrameBotRight" file="Interface\TaxiFrame\UI-TaxiFrame-BotRight">
          <Size>
            <AbsDimension x="128" y="256"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="256" y="-256"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <!--
        <Texture file="Interface\Spellbook\SpellBook-SkillLineTab">
          <Size>
            <AbsDimension x="90" y="90"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="347" y="-75"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        <Texture file="Interface\Spellbook\SpellBook-SkillLineTab">
          <Size>
            <AbsDimension x="90" y="90"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="347" y="-150"/>
              </Offset>
            </Anchor>
          </Anchors>
        </Texture>
        -->
        <FontString name="LFGCTitleText" inherits="GameFontHighlight" text="LFG - Custom Events">
          <Size>
            <AbsDimension x="300" y="14"/>
          </Size>
          <Anchors>
            <Anchor point="TOP" relativeTo="LFGFrame" relativePoint="TOP">
              <Offset>
                <AbsDimension x="0" y="-15"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Frame name="LFGWhisper" toplevel="true" hidden="true">
        <Size>
          <AbsDimension x="500" y="40"/>
        </Size>
        <Anchors>
          <Anchor point="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="7" y="33"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
          <BackgroundInsets>
            <AbsInset left="4" right="4" top="4" bottom="4" />
          </BackgroundInsets>
          <TileSize>
            <AbsValue val="16" />
          </TileSize>
          <EdgeSize>
            <AbsValue val="16" />
          </EdgeSize>
        </Backdrop>
        <Frames>
          <EditBox name="LFGWhisperEditBox" inherits="LFGEditBoxTemplate"  autoFocus="true" letters="200">
            <Size>
              <AbsDimension x="380" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGWhisper">
                <Offset>
                  <AbsDimension x="10" y="-9"/>
                </Offset>
              </Anchor>
            </Anchors>
            <TextInsets>
              <AbsInset left="10" right="10" top="10" bottom="20"/>
            </TextInsets>
            <Scripts>
              <OnEscapePressed>
                LFG.Whisper.cancel();
              </OnEscapePressed>
              <OnEnterPressed>
                LFG.Whisper.send();
              </OnEnterPressed>
            </Scripts>
          </EditBox>
          <Button name="LFGWhisperSend" inherits="UIPanelButtonTemplate" text="Send">
            <Size>
              <AbsDimension x="70" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="LEFT" relativeTo="LFGWhisperEditBox" relativePoint="RIGHT">
                <Offset>
                  <AbsDimension x="10" y="0"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Whisper.send();
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGWhisperCancel">
            <Size>
              <AbsDimension x="33" y="33"/>
            </Size>
            <HitRectInsets>
              <AbsInset left="9" right="7" top="-7" bottom="10"/>
            </HitRectInsets>
            <Anchors>
              <Anchor point="LEFT" relativeTo="LFGWhisperSend" relativePoint="RIGHT">
                <Offset>
                  <AbsDimension x="-5" y="-1"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Whisper.cancel();
              </OnClick>
            </Scripts>
            <NormalTexture file="Interface\Buttons\CancelButton-Up"/>
            <PushedTexture file="Interface\Buttons\CancelButton-Down"/>
            <HighlightTexture file="Interface\Buttons\CancelButton-Highlight" alphaMode="ADD"/>
          </Button>
        </Frames>
      </Frame>
      <Button name="LFGFrameCloseButton" inherits="UIPanelCloseButton">
        <Anchors>
          <Anchor point="TOPRIGHT" relativeTo="LFGFrame" relativePoint="TOPRIGHT">
            <Offset>
              <AbsDimension x="-29" y="-8"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LFG.MinimapIcon.toggle();
          </OnClick>
        </Scripts>
      </Button>
      <!--
      <Button name="LFGFrameEvent">
        <Size>
          <AbsDimension x="40" y="42"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="353" y="-92"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            if(string.find(LFG.Tabs.active, "event")) then
              return false
            end
            LFG.Tabs.select("events.view");
          </OnClick>
          <OnEnter>
            GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
            GameTooltip:SetText("Custom");
          </OnEnter>
          <OnLeave>
            GameTooltip:Hide();
          </OnLeave>
        </Scripts>
        <NormalTexture file="Interface\AddOns\LFG\Icons\LFGICON-MOLTENCORE"/>
        <PushedTexture file="Interface\AddOns\LFG\Icons\LFGICON-MOLTENCORE-PUSHED"/>
        <HighlightTexture file="Interface\AddOns\LFG\Icons\LFGICON-MOLTENCORE-HIGHLIGHT" alphaMode="ADD"/>
      </Button>
      <Button name="LFGFrameQueue">
        <Size>
          <AbsDimension x="40" y="42"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset>
              <AbsDimension x="353" y="-167"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            if(string.find(LFG.Tabs.active, "queue")) then
              return false
            end
            LFG.Tabs.select("queue");
          </OnClick>
          <OnEnter>
            GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
            GameTooltip:SetText("Dungeons");
          </OnEnter>
          <OnLeave>
            GameTooltip:Hide();
          </OnLeave>
        </Scripts>
        <NormalTexture file="Interface\AddOns\LFG\Icons\LFGICON-DEADMINES"/>
        <PushedTexture file="Interface\AddOns\LFG\Icons\LFGICON-DEADMINES-PUSHED"/>
        <HighlightTexture file="Interface\AddOns\LFG\Icons\LFGICON-DEADMINES-HIGHLIGHT" alphaMode="ADD"/>
      </Button>
      -->

      <Frame name="LFGEventsView_Tab" enableMouse="true" movable="false" parent="LFGFrame" hidden="true">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="21" y="-40"/>
          </Anchor>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-45" y="83"/>
          </Anchor>
        </Anchors>
        <Frames>
          <Button name="LFGEventsViewCreateEventButton" toplevel="true" inherits="UIPanelButtonTemplate" text="Create Event">
            <Size>
              <AbsDimension x="120" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="CENTER" relativeTo="LFGEventsView_Tab">
                <Offset>
                  <AbsDimension x="95" y="179"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Tabs.select("events.create");
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGEventsViewSignUpButton" toplevel="true" inherits="UIPanelButtonTemplate" text="Sign Up">
            <Size>
              <AbsDimension x="120" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="CENTER" relativeTo="LFGEventsView_Tab">
                <Offset>
                  <AbsDimension x="-40" y="179"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                if(LFG.EventScrollFrames.eventSelected.event.OR) then
                  LFG.RolePicker.Show(LFG.EventScrollFrames.eventSelected.name, LFG.EventScrollFrames.eventSelected.event);
                end
              </OnClick>
            </Scripts>
          </Button>
          <EditBox name="LFGEventsViewSearch" hidden="false" autoFocus="false" letters="34" historyLines="0">
            <Size>
              <AbsDimension x="240" y="20"/>
            </Size>
            <Anchors>
              <Anchor point="LEFT" relativePoint="TOPLEFT">
                <Offset>
                  <AbsDimension x="5" y="-380"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Layers>
              <Layer level="BACKGROUND">
                <Texture name="$parentLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                  <Size>
                    <AbsDimension x="12" y="29"/>
                  </Size>
                  <Anchors>
                    <Anchor point="TOPLEFT">
                      <Offset>
                        <AbsDimension x="-11" y="2"/>
                      </Offset>
                    </Anchor>
                  </Anchors>
                  <TexCoords left="0" right="0.09375" top="0" bottom="1.0"/>
                </Texture>
                <Texture name="$parentMiddle" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                  <Size>
                    <AbsDimension x="225" y="29"/>
                  </Size>
                  <Anchors>
                    <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
                  </Anchors>
                  <TexCoords left="0.09375" right="0.90625" top="0" bottom="1.0"/>
                </Texture>
                <Texture name="$parentRight" file="Interface\ClassTrainerFrame\UI-ClassTrainer-FilterBorder">
                  <Size>
                    <AbsDimension x="12" y="29"/>
                  </Size>
                  <Anchors>
                    <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
                  </Anchors>
                  <TexCoords left="0.90625" right="1.0" top="0" bottom="1.0"/>
                </Texture>
                <FontString inherits="GameFontNormal" text="Quick Search">
                  <Anchors>
                    <Anchor point="CENTER"/>
                  </Anchors>
                  <Color r="0.3" g="0.3" b="0.3"/>
                </FontString>
              </Layer>
            </Layers>
            <Scripts>
              <OnTextChanged>
                LFG.Actions.Event.search();
              </OnTextChanged>
              <OnEscapePressed>
                --this:ClearFocus()
              </OnEscapePressed>
              <OnTabPressed>
                --LootLinkQuickSearch_Search(1);
              </OnTabPressed>
              <OnEnterPressed>
                --LootLinkQuickSearch_FullSearch();
              </OnEnterPressed>
            </Scripts>
            <FontString inherits="ChatFontNormal"/>
          </EditBox>
          <Button name="LFGEventsViewSearchClearButton" toplevel="true">
            <Size>
              <AbsDimension x="32" y="32"/>
            </Size>
            <HitRectInsets>
              <AbsInset left="9" right="7" top="-7" bottom="10"/>
            </HitRectInsets>
            <Anchors>
              <Anchor point="RIGHT" relativeTo="LFGEventsViewSearch" relativePoint="RIGHT">
                <Offset>
                  <AbsDimension x="1" y="-1"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Actions.Event.clearSearch();
              </OnClick>
            </Scripts>
            <NormalTexture file="Interface\Buttons\CancelButton-Up"/>
            <PushedTexture file="Interface\Buttons\CancelButton-Down"/>
            <HighlightTexture file="Interface\Buttons\CancelButton-Highlight" alphaMode="ADD"/>
          </Button>
          <Button name="LFGEventsViewSearchButton" inherits="UIPanelButtonTemplate" text="Search...">
            <Size>
              <AbsDimension x="80" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="CENTER" relativeTo="LFGEventsViewSearch">
                <Offset>
                  <AbsDimension x="155" y="0"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Actions.Event.search();
              </OnClick>
            </Scripts>
          </Button>

          <Button name="LFGEventItem1" inherits="LFGEventItemButtonTemplate" id="1" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventsView_Tab">
                <Offset>
                  <AbsDimension x="0" y="-35"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem2" inherits="LFGEventItemButtonTemplate" id="2" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem1" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem3" inherits="LFGEventItemButtonTemplate" id="3" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem2" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem4" inherits="LFGEventItemButtonTemplate" id="4" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem3" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem5" inherits="LFGEventItemButtonTemplate" id="5" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem4" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem6" inherits="LFGEventItemButtonTemplate" id="6" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem5" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem7" inherits="LFGEventItemButtonTemplate" id="7" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem6" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem8" inherits="LFGEventItemButtonTemplate" id="8" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem7" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem9" inherits="LFGEventItemButtonTemplate" id="9" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem8" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGEventItem10" inherits="LFGEventItemButtonTemplate" id="10" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventItem9" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <ScrollFrame name="LFGEventScrollFrame" inherits="FauxScrollFrameTemplate" hidden="true">
            <Size>
              <AbsDimension x="296" y="332"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventsView_Tab">
                <Offset>
                  <AbsDimension x="0" y="-35"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Layers>
              <Layer level="ARTWORK">
                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                  <Size>
                    <AbsDimension x="31" y="256"/>
                  </Size>
                  <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
                      <Offset>
                        <AbsDimension x="-2" y="5"/>
                      </Offset>
                    </Anchor>
                  </Anchors>
                  <TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
                </Texture>
                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                  <Size>
                    <AbsDimension x="31" y="106"/>
                  </Size>
                  <Anchors>
                    <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
                      <Offset>
                        <AbsDimension x="-2" y="-2"/>
                      </Offset>
                    </Anchor>
                  </Anchors>
                  <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
                </Texture>
              </Layer>
            </Layers>
            <Scripts>
              <OnVerticalScroll>
                FauxScrollFrame_OnVerticalScroll(LFG.Constants.EVENT_ITEM_HEIGHT, LFG.EventScrollFrames.updateLFGEvent);
              </OnVerticalScroll>
              <OnShow>
                LFG.EventScrollFrames.updateLFGEvent()
              </OnShow>
            </Scripts>
          </ScrollFrame>
          <Frame name="LFGEventDropDownMenu" inherits="UIDropDownMenuTemplate" hidden="true">
            <Scripts>
              <OnLoad>
                LFG.EventDropDownMenu.OnLoad()
              </OnLoad>
            </Scripts>
          </Frame>
        </Frames>
        <Scripts>
          <OnShow>
            if(not LFG.EventScrollFrames.fetchedInitially) then
              LFG.Actions.Event.fetch();
              LFG.EventScrollFrames.fetchedInitially = true;
            end
            LFGEventScrollFrame:Show();
          </OnShow>
        </Scripts>
      </Frame>

      <Frame name="LFGEventsCreate_Tab" enableMouse="true" movable="false" parent="LFGFrame" hidden="true">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="21" y="-40"/>
          </Anchor>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-45" y="83"/>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <FontString inherits="GameFontNormal" justifyH="LEFT" text="Activity: ">
              <Size>
                <AbsDimension x="175" y="16"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="20" y="-50"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <FontString inherits="GameFontNormal" justifyH="LEFT" text="Title: ">
              <Size>
                <AbsDimension x="175" y="16"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="20" y="-110"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <FontString inherits="GameFontNormal" justifyH="LEFT" text="Description: ">
              <Size>
                <AbsDimension x="175" y="16"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="20" y="-170"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <FontString inherits="GameFontHighlight" justifyH="LEFT" text="Minimum Level: ">
              <Size>
                <AbsDimension x="175" y="16"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="20" y="-280"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
        <Frames>
          <Button name="LFGEventsCreateBackToViewButton" toplevel="true" inherits="UIPanelButtonTemplate" text="Back">
            <Size>
              <AbsDimension x="120" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="CENTER" relativeTo="LFGEventsCreate_Tab">
                <Offset>
                  <AbsDimension x="95" y="179"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Tabs.select("events.view");
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGEventsCreateButton" inherits="UIPanelButtonTemplate" text="Create">
            <Size>
              <AbsDimension x="80" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="BOTTOMRIGHT" relativeTo="LFGEventsCreate_Tab">
                <Offset>
                  <AbsDimension x="2" y="-2"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnShow>
                if ( not LFG.Utils.Event.validateEventInput() ) then
                  this:Disable();
                else
                  this:Enable();
                end
              </OnShow>
              <OnClick>
                if(this:GetText() == "Create") then
                  LFG.Actions.Event.create();
                else
                  LFG.Actions.Event.update();
                end
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGEventSelectMenu" inherits="UIDropDownMenuTemplate">
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="0" y="-70"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnShow>
                LFG.EventSelectMenu.OnLoad()
              </OnShow>
            </Scripts>
          </Button>
          <EditBox name="LFGEventTitle" inherits="LFGEditBoxTemplate" letters="40" autoFocus="true">
            <Size>
              <AbsDimension x="280" y="25"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="20" y="-130"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Layers>
              <Layer level="BACKGROUND">
                <FontString inherits="GameFontNormal" text="Event Title">
                  <Color r="0.3" g="0.3" b="0.3"/>
                </FontString>
              </Layer>
            </Layers>
            <Scripts>
              <OnTabPressed>
                LFGEventDescription:SetFocus();
              </OnTabPressed>
            </Scripts>
          </EditBox>

          <EditBox name="LFGEventDescription" inherits="LFGEditBoxTemplate" multiline="true" letters="60">
            <Size>
              <AbsDimension x="280" y="25"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT">
                <Offset>
                  <AbsDimension x="20" y="-190"/>
                </Offset>
              </Anchor>
            </Anchors>
            <TextInsets>
              <AbsInset left="10" right="10" top="10" bottom="30"/>
            </TextInsets>
            <Layers>
              <Layer level="BACKGROUND">
                <FontString name="LFGEventDescriptionPlaceholder" inherits="GameFontNormal" text="Event Description">
                  <Color r="0.3" g="0.3" b="0.3"/>
                </FontString>
              </Layer>
            </Layers>
            <Scripts>
              <OnLoad>
                this.placeHolderVisible = true;
              </OnLoad>
              <OnTextChanged>
                local text = this:GetText()
                if(strlen(text) > 0 and this.placeHolderVisible) then
                  LFGEventDescriptionPlaceholder:Hide();
                  this.placeHolderVisible = false;
                elseif(strlen(text) == 0 and not this.placeHolderVisible) then
                  LFGEventDescriptionPlaceholder:Show();
                  this.placeHolderVisible = true;
                end
              </OnTextChanged>
              <OnEscapePressed>
                --this:ClearFocus()
              </OnEscapePressed>

              <OnSizeChanged>
                local lines = LFG.Utils.General.explode('\n', this:GetText() or "");
                if ( table.getn(lines) >= 3) then
                  lines[2] = lines[2] ..lines[3];
                  table.remove(lines,3);
                  lines = LFG.Utils.General.implode('\n', lines);
                  this:SetText(lines);
                end
              </OnSizeChanged>
              <OnTabPressed>
                LFGEventMinLevel:SetFocus();
              </OnTabPressed>
            </Scripts>
          </EditBox>
          <EditBox name="LFGEventMinLevel" inherits="LFGEditBoxTemplate" letters="2">
            <Size>
              <AbsDimension x="140" y="20"/>
            </Size>
            <Anchors>
              <Anchor point="TOPRIGHT">
                <Offset>
                  <AbsDimension x="-20" y="-280"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Layers>
              <Layer level="BACKGROUND">
                <FontString inherits="GameFontNormal" text="Minimum Level">
                  <Color r="0.3" g="0.3" b="0.3"/>
                </FontString>
              </Layer>
            </Layers>
          </EditBox>
        </Frames>
      </Frame>

      <Frame name="LFGEventsViewQueues_Tab" enableMouse="true" movable="false" parent="LFGFrame" hidden="true">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="21" y="-40"/>
          </Anchor>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-45" y="83"/>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <FontString name="LFGEventsViewQueuesEventTitle" inherits="GameFontNormal" justifyH="LEFT" text="event Titleevent TitleeventT itleevent">
              <Size>
                <AbsDimension x="250" y="15"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="60" y="-7"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <FontString name="LFGEventsViewQueuesEventQueueToAndDescription" inherits="GameFontNormal" justifyH="LEFT" justifyV="TOP" >
              <Size>
                <AbsDimension x="290" y="40"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="10" y="-35"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <Texture name="LFGEventsViewQueuesNameTab" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
              <Size>
                <AbsDimension x="116" y="30"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="-4" y="-93"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <TexCoords left="0" right="0.96" top="0" bottom="1"/>
            </Texture>
            <FontString name="LFGEventsViewQueuesNameTabText" inherits="GameFontHighlight" justifyH="LEFT" text="Name">
              <Size>
                <AbsDimension x="112" y="30"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="4" y="-90"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
            <Texture name="LFGEventsViewQueuesRoleTab" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
              <Size>
                <AbsDimension x="75" y="30"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="112" y="-93"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <TexCoords left="0" right="0.96" top="0" bottom="1"/>
            </Texture>
            <FontString name="LFGEventsViewQueuesRoleTabText" inherits="GameFontHighlight" justifyH="LEFT" text="Role">
              <Size>
                <AbsDimension x="75" y="30"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT">
                  <Offset>
                    <AbsDimension x="119" y="-90"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
        <Frames>
          <Button name="LFGEventsViewQueuesCancelEvent" toplevel="true" inherits="UIPanelButtonTemplate" text="Delist My Group">
            <Size>
              <AbsDimension x="125" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="BOTTOMLEFT" relativeTo="LFGEventsViewQueues_Tab">
                <Offset>
                  <AbsDimension x="-5" y="0"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Actions.Event.delete();
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGQueueEditButton" toplevel="true" inherits="UIPanelButtonTemplate" text="Edit">
            <Size>
              <AbsDimension x="115" y="22"/>
            </Size>
            <Anchors>
              <Anchor point="BOTTOMRIGHT" relativeTo="LFGEventsViewQueues_Tab">
                <Offset>
                  <AbsDimension x="5" y="0"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Scripts>
              <OnClick>
                LFG.Tabs.select("events.edit");
              </OnClick>
            </Scripts>
          </Button>
          <Button name="LFGQueueItem1" inherits="LFGQueueItemButtonTemplate" id="1" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventsViewQueues_Tab">
                <Offset>
                  <AbsDimension x="5" y="-122"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem2" inherits="LFGQueueItemButtonTemplate" id="2" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem1" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem3" inherits="LFGQueueItemButtonTemplate" id="3" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem2" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem4" inherits="LFGQueueItemButtonTemplate" id="4" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem3" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem5" inherits="LFGQueueItemButtonTemplate" id="5" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem4" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem6" inherits="LFGQueueItemButtonTemplate" id="6" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem5" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem7" inherits="LFGQueueItemButtonTemplate" id="7" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem6" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem8" inherits="LFGQueueItemButtonTemplate" id="8" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem7" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem9" inherits="LFGQueueItemButtonTemplate" id="9" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem8" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <Button name="LFGQueueItem10" inherits="LFGQueueItemButtonTemplate" id="10" hidden="true">
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGQueueItem9" relativePoint="BOTTOMLEFT">
                <Offset>
                  <AbsDimension x="0" y="1"/>
                </Offset>
              </Anchor>
            </Anchors>
          </Button>
          <ScrollFrame name="LFGQueueScrollFrame" inherits="FauxScrollFrameTemplate" hidden="true">
            <Size>
              <AbsDimension x="296" y="244"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGEventsViewQueues_Tab">
                <Offset>
                  <AbsDimension x="0" y="-119"/>
                </Offset>
              </Anchor>
            </Anchors>
            <Layers>
              <Layer level="ARTWORK">
                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                  <Size>
                    <AbsDimension x="31" y="226"/>
                  </Size>
                  <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
                      <Offset>
                        <AbsDimension x="-2" y="5"/>
                      </Offset>
                    </Anchor>
                  </Anchors>
                  <TexCoords left="0" right="0.484375" top="0" bottom="0.8"/>
                </Texture>
                <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
                  <Size>
                    <AbsDimension x="31" y="106"/>
                  </Size>
                  <Anchors>
                    <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
                      <Offset>
                        <AbsDimension x="-2" y="-2"/>
                      </Offset>
                    </Anchor>
                  </Anchors>
                  <TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>
                </Texture>
              </Layer>
            </Layers>
            <Scripts>
              <OnVerticalScroll>
                FauxScrollFrame_OnVerticalScroll(LFG.Constants.QUEUE_ITEM_HEIGHT, LFG.QueueScrollFrames.updateLFGQueue);
              </OnVerticalScroll>
              <OnShow>
                LFG.QueueScrollFrames.updateLFGQueue()
              </OnShow>
            </Scripts>
          </ScrollFrame>
          <Frame name="LFGQueueDropDownMenu" inherits="UIDropDownMenuTemplate" hidden="true">
            <Scripts>
              <OnLoad>
                LFG.QueueDropDownMenu.OnLoad()
              </OnLoad>
            </Scripts>
          </Frame>
        </Frames>
        <Scripts>
          <OnShow>
            if(not LFG.EventScrollFrames.newEvent and not LFG.QueueScrollFrames.fetchedInitially) then
              LFG.Actions.Event.remind();
              LFG.Actions.Queue.fetch();
              LFG.QueueScrollFrames.fetchedInitially = true;
            end
          </OnShow>
        </Scripts>
      </Frame>

      <Frame name="LFGInvalidUser_Tab" enableMouse="true" movable="false" parent="LFGFrame" hidden="true">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="21" y="-40"/>
          </Anchor>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-45" y="83"/>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer level="ARTWORK">
            <FontString name="LFGInvalidUserText" inherits="GameFontNormal" justifyH="LEFT" text="Come back when you are a bit older please! ">
              <Size>
                <AbsDimension x="300" y="20"/>
              </Size>
              <Anchors>
                <Anchor point="LEFT">
                  <Offset>
                    <AbsDimension x="27" y="-2"/>
                  </Offset>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </Frame>

    </Frames>
    <Scripts>
      <OnShow>
        LFG.Tabs.update();
      </OnShow>
    </Scripts>
  </Frame>

  <Frame name="LFGRolePicker" parent="UIParent" enableMouse="true" hidden="true">
    <Size>
      <AbsDimension x="400" y="220"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER">
        <Offset>
          <AbsDimension x="0" y="150"/>
        </Offset>
      </Anchor>
    </Anchors>
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="4" right="4" top="4" bottom="4" />
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="16" />
      </TileSize>
      <EdgeSize>
        <AbsValue val="16" />
      </EdgeSize>
    </Backdrop>
    <Layers>
      <Layer level="OVERLAY">
        <FontString name="LFGRolePickerTitle" inherits="GameFontHighlight" text="Choose your Roles">
          <Size>
            <AbsDimension x="200" y="15"/>
          </Size>
          <Anchors>
            <Anchor point="TOP">
              <Offset>
                <AbsDimension x="0" y="-10"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Frame name="LFGRoleTankCheckButtonFrame" parent="LFGRolePicker" enableMouse="true" hidden="true">
        <Size>
          <AbsDimension x="60" y="60"/>
        </Size>
        <Anchors>
          <Anchor point="TOP" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="-80" y="-30"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer>
            <Texture file="Interface\Addons\LFG\Icons\UI-LFG-ICON-ROLES" toplevel="true">
              <Size>
                <AbsDimension x="60" y="60"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT" relativeTo="LFGRoleTankCheckButtonFrame" relativePoint="TOPLEFT">
                  <Offset>
                    <AbsDimension x="0" y="0"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <TexCoords left="0" right="0.265" top="0.255" bottom="0.51"/>
            </Texture>
          </Layer>
        </Layers>
        <Frames>
          <checkbutton name="LFGRoleTankCheckButton"  inherits="UICheckButtonTemplate" toplevel="true">
            <Size>
              <AbsDimension x="20" y="20"/>
            </Size>
            <HitRectInsets>
              <AbsInset left="0" right="-45" top="-45" bottom="0"/>
            </HitRectInsets>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGRoleTankCheckButtonFrame" relativePoint="TOPLEFT">
                <Offset>
                  <AbsDimension x="-5" y="-45"/>
                </Offset>
              </Anchor>
            </Anchors>
            <scripts>
              <OnClick>
                LFG_Settings.lastRoleSelected.T = this:GetChecked();
              </OnClick>
            </scripts>
          </checkbutton>
        </Frames>
      </Frame>
      <Frame name="LFGRoleHealCheckButtonFrame" parent="LFGRolePicker" enableMouse="true" hidden="true">
        <Size>
          <AbsDimension x="60" y="60"/>
        </Size>
        <Anchors>
          <Anchor point="TOP" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="0" y="-30"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer>
            <Texture file="Interface\Addons\LFG\Icons\UI-LFG-ICON-ROLES" toplevel="true">
              <Size>
                <AbsDimension x="60" y="60"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT" relativeTo="LFGRoleHealCheckButtonFrame" relativePoint="TOPLEFT">
                  <Offset>
                    <AbsDimension x="0" y="0"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <TexCoords left="0.260" right="0.515" top="0" bottom="0.255"/>
            </Texture>
          </Layer>
        </Layers>
        <Frames>
          <checkbutton name="LFGRoleHealCheckButton" inherits="UICheckButtonTemplate" toplevel="true">
            <Size>
              <AbsDimension x="20" y="20"/>
            </Size>
            <HitRectInsets>
              <AbsInset left="0" right="-45" top="-45" bottom="0"/>
            </HitRectInsets>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGRoleHealCheckButtonFrame" relativePoint="TOPLEFT">
                <Offset>
                  <AbsDimension x="-5" y="-45"/>
                </Offset>
              </Anchor>
            </Anchors>
            <scripts>
              <OnClick>
                LFG_Settings.lastRoleSelected.H = this:GetChecked();
              </OnClick>
            </scripts>
          </checkbutton>
        </Frames>
      </Frame>
      <Frame name="LFGRoleDPSCheckButtonFrame" parent="LFGRolePicker" enableMouse="true" hidden="true">
        <Size>
          <AbsDimension x="60" y="60"/>
        </Size>
        <Anchors>
          <Anchor point="TOP" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="80" y="-30"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Layers>
          <Layer>
            <Texture file="Interface\Addons\LFG\Icons\UI-LFG-ICON-ROLES" toplevel="true">
              <Size>
                <AbsDimension x="60" y="60"/>
              </Size>
              <Anchors>
                <Anchor point="TOPLEFT" relativeTo="LFGRoleDPSCheckButtonFrame" relativePoint="TOPLEFT">
                  <Offset>
                    <AbsDimension x="0" y="0"/>
                  </Offset>
                </Anchor>
              </Anchors>
              <TexCoords left="0.265" right="0.520" top="0.260" bottom="0.515"/>
            </Texture>
          </Layer>
        </Layers>
        <Frames>
          <checkbutton name="LFGRoleDPSCheckButton" inherits="UICheckButtonTemplate" toplevel="true">
            <Size>
              <AbsDimension x="20" y="20"/>
            </Size>
            <HitRectInsets>
              <AbsInset left="0" right="-45" top="-45" bottom="0"/>
            </HitRectInsets>
            <Anchors>
              <Anchor point="TOPLEFT" relativeTo="LFGRoleDPSCheckButtonFrame" relativePoint="TOPLEFT">
                <Offset>
                  <AbsDimension x="-5" y="-45"/>
                </Offset>
              </Anchor>
            </Anchors>
            <scripts>
              <OnClick>
                LFG_Settings.lastRoleSelected.D = this:GetChecked();
              </OnClick>
            </scripts>
          </checkbutton>
        </Frames>
      </Frame>
      <EditBox name="LFGRolePickerNoteToLeader" inherits="LFGEditBoxTemplate" hidden="false" multiline="true" autoFocus="true" letters="80">
        <Size>
          <AbsDimension x="300" y="50"/>
        </Size>
        <Anchors>
          <Anchor point="TOP" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="0" y="-110"/>
            </Offset>
          </Anchor>
        </Anchors>
        <TextInsets>
          <AbsInset left="10" right="10" top="10" bottom="20"/>
        </TextInsets>
        <Layers>
          <Layer level="BACKGROUND">
            <FontString name="LFGRolePickerNoteToLeaderPlaceholder" inherits="GameFontNormal" text="Optional Note to Group Leader">
              <Color r="0.3" g="0.3" b="0.3"/>
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
          <OnLoad>
            this.placeHolderVisible = true;
          </OnLoad>
          <OnTextChanged>
            local text = this:GetText()
            if(strlen(text) > 0 and this.placeHolderVisible) then
              LFGRolePickerNoteToLeaderPlaceholder:Hide();
              this.placeHolderVisible = false;
            elseif(strlen(text) == 0 and not this.placeHolderVisible) then
              LFGRolePickerNoteToLeaderPlaceholder:Show();
              this.placeHolderVisible = true;
            end
          </OnTextChanged>
          <OnEscapePressed>
            --this:ClearFocus()
          </OnEscapePressed>

          <OnSizeChanged>
            local lines = LFG.Utils.General.explode('\n', this:GetText() or "");
            if ( table.getn(lines) >= 3) then
              lines[2] = lines[2] ..lines[3];
              table.remove(lines,3);
              lines = LFG.Utils.General.implode('\n', lines);
              this:SetText(lines);
            end
          </OnSizeChanged>
        </Scripts>
      </EditBox>
      <Button name="LFGRolePickerSignUp" toplevel="true" inherits="UIPanelButtonTemplate" text="SignUp">
        <Size>
          <AbsDimension x="120" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="CENTER" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="-70" y="-85"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LFG.RolePicker.signUp();
          </OnClick>
        </Scripts>
      </Button>
      <Button name="LFGRolePickerCancel" toplevel="true" inherits="UIPanelButtonTemplate" text="Cancel">
        <Size>
          <AbsDimension x="120" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="CENTER" relativeTo="LFGRolePicker">
            <Offset>
              <AbsDimension x="70" y="-85"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LFG.RolePicker.cancel()
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
  </Frame>

  <Frame name="LFGPartyInvitation" parent="UIParent" enableMouse="true" hidden="true">
    <Size>
      <AbsDimension x="400" y="100"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER">
        <Offset>
          <AbsDimension x="0" y="150"/>
        </Offset>
      </Anchor>
    </Anchors>
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="4" right="4" top="4" bottom="4" />
      </BackgroundInsets>
      <TileSize>
        <AbsValue val="16" />
      </TileSize>
      <EdgeSize>
        <AbsValue val="16" />
      </EdgeSize>
    </Backdrop>
    <Layers>
      <Layer level="OVERLAY">
        <FontString name="LFGPartyInvitationTitle" inherits="GameFontHighlight">
          <Size>
            <AbsDimension x="200" y="60"/>
          </Size>
          <Anchors>
            <Anchor point="TOP">
              <Offset>
                <AbsDimension x="0" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <Button name="LFGPartyInvitationAccept" toplevel="true" inherits="UIPanelButtonTemplate" text="Accept">
        <Size>
          <AbsDimension x="120" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="CENTER" relativeTo="LFGPartyInvitation">
            <Offset>
              <AbsDimension x="-70" y="-25"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LFG.PartyInvitation.accept();
          </OnClick>
        </Scripts>
      </Button>
      <Button name="LFGPartyInvitationDecline" toplevel="true" inherits="UIPanelButtonTemplate" text="Decline">
        <Size>
          <AbsDimension x="120" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="CENTER" relativeTo="LFGPartyInvitation">
            <Offset>
              <AbsDimension x="70" y="-25"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            LFG.PartyInvitation.decline()
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
  </Frame>













</Ui>