<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 = "EpicMusicPlayerEntryTemplate" virtual="true">
    <Size>
      <AbsDimension x="350" y="16" />
    </Size>
    <Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
      </OnLoad>
			<OnClick>
				EpicMusicPlayer_Playlist_OnClickMp3(arg1);
			</OnClick>
		</Scripts>
				<Layers>
			<Layer level="BORDER">
				<FontString name="$parentIndex" inherits="GameFontHighlight" justifyH="CENTER">
       				<FontHeight><AbsValue val="12" /></FontHeight>
					<Size>
						<AbsDimension x="36" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
              		<!--<Color r="0.6" g="0.8196079" b="0.6" />-->
					<!--<Shadow><Color r="0" g="0" b="0" /><Offset><AbsDimension x="1" y="-1" /></Offset></Shadow>-->
				</FontString>
				
        <FontString name="$parentArtist" inherits="GameFontNormal" justifyH="LEFT">
       				<FontHeight><AbsValue val="12" /></FontHeight>
					<Size><AbsDimension x="305" y="14"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIndex" relativePoint="RIGHT">
							<Offset><AbsDimension x="4" y="0"/></Offset>
						</Anchor>
					</Anchors>
              		<!--
					<Color r="1" g="0.823529" b="0" />
					<Shadow><Color r="0" g="0" b="0" /><Offset><AbsDimension x="1" y="-1" /></Offset></Shadow>
					-->
				</FontString>
				
        <FontString name="$parentSong" inherits="GameFontNormal" justifyH="LEFT">
       				<FontHeight><AbsValue val="12" /></FontHeight>
					<Size><AbsDimension x="0" y="14"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentArtist" relativePoint="RIGHT">
							<Offset><AbsDimension x="4" y="0"/></Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
			</Layer>
		</Layers>
	<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
	</Button>
  
  <Button name = "EpicMusicPlayerListEntryTemplate"  virtual="true">
    <Size>
      <AbsDimension x="90" y="16" />
    </Size>
	
    <Scripts>
		<OnLoad>
			this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
		</OnLoad>
		<OnClick>
			EpicMusicPlayer_Playlist_OnClickList(arg1);
		</OnClick>
	</Scripts>
	<Layers>
		<Layer level="BORDER">
			<FontString name="$parentIndex" inherits="GameFontHighlight" justifyH="CENTER">
       				<FontHeight><AbsValue val="12" /></FontHeight>
					<Size>
						<AbsDimension x="36" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="4" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
		
				<FontString name="$parentArtist" inherits="GameFontNormal" justifyH="LEFT">
       				<FontHeight><AbsValue val="12" /></FontHeight>
					<Size><AbsDimension x="65" y="14"/></Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentIndex" relativePoint="RIGHT">
							<Offset><AbsDimension x="4" y="0"/></Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
  </Button>

  <Frame name="EpicMusicPlayerPlaylistFrame" parent="UIParent" enableMouse="true" movable="true" frameStrata="FULLSCREEN_DIALOG">
    <Size>
      <AbsDimension x="500" y="240"/>
    </Size>
    <Anchors>
      <Anchor point="CENTER"/>
    </Anchors>
    <Scripts>
      <OnLoad>
        tinsert(UISpecialFrames,"EpicMusicPlayerPlaylistFrame");
        EpicMusicPlayerPlaylistFrame:Hide()
        EpicMusicPlayerSearchEditBox:SetText("Search...")
      </OnLoad>
    </Scripts>
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-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>	
		<Frame name="EpicMusicPlayerListsFrame" hidden="false">
			<Anchors>
				 <Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="0" y="-20"/>
					</Offset>
				 </Anchor>
                 <Anchor point="BOTTOMRIGHT">
					<Offset>
						<AbsDimension x="-370" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			
			<Layers>
				<Layer level="BACKGROUND">	
					<FontString name="EMPStringPlaylists" inherits="GameFontHighlight" text="Playlists">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="20" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			
			<Frames>
				<ScrollFrame name="EpicMusicPlayerListsScrollBar" inherits="FauxScrollFrameTemplate" hidden="true">
					<Anchors>
					  <Anchor point="TOPLEFT">
						<Offset>
						  <AbsDimension x="0" y="-8"/>
						</Offset>
					  </Anchor>
					  <Anchor point="BOTTOMRIGHT">
						<Offset>
						  <AbsDimension x="-18" y="32"/>
						</Offset>
					  </Anchor>
					</Anchors>
					<Scripts>
					  <OnVerticalScroll>
						--EpicMusicPlayer:Print(EpicMusicPlayer.tocversion)
						if(EpicMusicPlayer.tocversion > 20400)then
							FauxScrollFrame_OnVerticalScroll(self, offset,16, EpicMusicPlayer_ListsScrollBar_Update);
						else
							FauxScrollFrame_OnVerticalScroll(16, EpicMusicPlayer_ListsScrollBar_Update);
						end
					  </OnVerticalScroll>
					  <OnShow>
						EpicMusicPlayer_ListsScrollBar_Update()
					  </OnShow>
					</Scripts>
				</ScrollFrame>
				
				<Button name="EpicMusicPlayerListEntry1" inherits="EpicMusicPlayerListEntryTemplate">
					<Size><AbsDimension x="110" y="16" /></Size>
					<Anchors>
					  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListsScrollBar" relativePoint="TOPLEFT">
						<Offset>
						  <AbsDimension x="8" y="0"/>
						</Offset>
					   </Anchor>
					</Anchors>
				</Button>
				<Button name="EpicMusicPlayerListEntry2" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry3" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry4" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry5" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry4" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry6" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry5" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry7" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry6" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry8" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry7" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry9" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry8" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry10" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry9" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerListEntry11" inherits="EpicMusicPlayerListEntryTemplate">
				<Size><AbsDimension x="110" y="16" /></Size>
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerListEntry10" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			</Frames> 
		</Frame>
		
		
		<Frame name="EpicMusicPlayerListEntrysFrame" hidden="false">
			<Anchors>
				 <Anchor point="TOPLEFT">
					<Offset>
						<AbsDimension x="120" y="-20"/>
					</Offset>
					</Anchor>
                 <Anchor point="BOTTOMRIGHT"/>
			</Anchors>
			<Layers>
				<Layer level="BACKGROUND">	
					<FontString name="EMPStringArtist" inherits="GameFontHighlight" text="Artist">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="52" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
					<FontString name="EMPStringTitle" inherits="GameFontHighlight" text=" - Title">
						<Anchors>
							<Anchor point="TOPLEFT">
								<Offset>
									<AbsDimension x="90" y="5"/>
								</Offset>
							</Anchor>
						</Anchors>
					</FontString>
				</Layer>
			</Layers>
			<Frames>
				<ScrollFrame name="EpicMusicPlayerScrollBar" inherits="FauxScrollFrameTemplate" hidden="true">
				<Anchors>
				  <Anchor point="TOPLEFT">
					<Offset>
					  <AbsDimension x="0" y="-8"/>
					</Offset>
				  </Anchor>
				  <Anchor point="BOTTOMRIGHT">
					<Offset>
					  <AbsDimension x="-30" y="32"/>
					</Offset>
				  </Anchor>
				</Anchors>
				<Scripts>
				  <OnVerticalScroll>
					--EpicMusicPlayer:Print(EpicMusicPlayer.tocversion)
					if(EpicMusicPlayer.tocversion > 20400)then
						FauxScrollFrame_OnVerticalScroll(self, offset,16, EpicMusicPlayer_ScrollBar_Update);
					else
						FauxScrollFrame_OnVerticalScroll(16, EpicMusicPlayer_ScrollBar_Update);
					end
				  </OnVerticalScroll>
				  <OnShow>
					EpicMusicPlayer_ScrollBar_Update()
				  </OnShow>
				</Scripts>
			  </ScrollFrame>

			  <Button name="EpicMusicPlayerEntry1" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerScrollBar" relativePoint="TOPLEFT">
					<Offset>
					  <AbsDimension x="8" y="0"/>
					</Offset>
				   </Anchor>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry2" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry3" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry4" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry5" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry4" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry6" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry5" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry7" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry6" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry8" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry7" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry9" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry8" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry10" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry9" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			  <Button name="EpicMusicPlayerEntry11" inherits="EpicMusicPlayerEntryTemplate">
				<Anchors>
				  <Anchor point="TOPLEFT" relativeTo="EpicMusicPlayerEntry10" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			  </Button>
			</Frames> 
		</Frame>
		
		<Frame name="EpicMusicPlayerButtonsFrame" hidden="false">
			<Anchors>
				<Anchor point="BOTTOLEFT">
					<Offset>
						<AbsDimension x="210" y="-10"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Frames>
				<Button name="$parentButtonClose" inherits="OptionsButtonTemplate" text="Close">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
						<Offset><AbsDimension x="-8" y="8"/></Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnClick> EpicMusicPlayerPlaylistFrame:Hide(); </OnClick>
					</Scripts>
				</Button>
				<Button name="$parentButtonClear" inherits="OptionsButtonTemplate" text="Clear">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
						<Offset><AbsDimension x="-100" y="8"/></Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnClick> EpicMusicPlayer_Clear_Search() </OnClick>
					</Scripts>
				</Button>
			</Frames>
		</Frame>
		
		<Frame name="EpicMusicPlayerSearchEditBoxChildFrame" enableMouse="true">
			<Size>
				<AbsDimension x="500" y="45"/>
			</Size>
			<Anchors>
				<Anchor point="BOTTOMLEFT">
					<Offset>
						<AbsDimension x="2" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Frames>
				<EditBox name="EpicMusicPlayerSearchEditBox"  autoFocus="false">
					<Anchors>
						<Anchor point="BOTTOMLEFT">
						<Offset><AbsDimension x="12" y="9"/></Offset>
						</Anchor>
					</Anchors>
					<Size>
						<AbsDimension x="285" y="19" />
					</Size>
					<FontString name="$parentIndex" inherits="GameFontHighlight" justifyH="LEFT">
       				<FontHeight><AbsValue val="12" /></FontHeight></FontString>
					<Layers>
							<Layer level="BACKGROUND">
								
								<Texture name="$parentLeft" file="Interface\Common\Common-Input-Border">
									<Size>
										<AbsDimension x="8" y="19"/>
									</Size>
									<Anchors>
										<Anchor point="TOPLEFT">
											<Offset>
												<AbsDimension x="-8" y="0"/>
											</Offset>
										</Anchor>
									</Anchors>
									<TexCoords left="0" right="0.0625" top="0" bottom="0.625"/>
								</Texture>
								<Texture name="$parentMiddle" file="Interface\Common\Common-Input-Border">
									<Size>
										<AbsDimension x="285" y="19"/>
									</Size>
									<Anchors>
										<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
									</Anchors>
									<TexCoords left="0.0625" right="0.9375" top="0" bottom="0.625"/>
								</Texture>
								<Texture name="$parentRight" file="Interface\Common\Common-Input-Border">
									<Size>
										<AbsDimension x="8" y="19"/>
									</Size>
									<Anchors>
										<Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
									</Anchors>
									<TexCoords left="0.9375" right="1.0" top="0" bottom="0.625"/>
								</Texture>
							</Layer>
						</Layers>
					<Scripts>
						<OnEnterPressed> EpicMusicPlayer_Search() </OnEnterPressed>
						<OnEditFocusGained> EpicMusicPlayerSearchEditBox:HighlightText() </OnEditFocusGained>
						<OnEditFocusLost> EpicMusicPlayerSearchEditBox:HighlightText(0,0) </OnEditFocusLost>
						<OnEscapePressed> EpicMusicPlayerSearchEditBox:ClearFocus() </OnEscapePressed>
					</Scripts>
				</EditBox>
				<Button name="$parentButtonClear" inherits="OptionsButtonTemplate" text="Clear">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
						<Offset><AbsDimension x="-100" y="8"/></Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnClick> EpicMusicPlayer_Clear_Search() </OnClick>
					</Scripts>
				</Button>
				<Button name="$parentButtonClose" inherits="OptionsButtonTemplate" text="Close">
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
						<Offset><AbsDimension x="-8" y="8"/></Offset>
						</Anchor>
					</Anchors>
					<Scripts>
						<OnClick> EpicMusicPlayerPlaylistFrame:Hide(); </OnClick>
					</Scripts>
				</Button>
			</Frames>
		</Frame> 
    </Frames>
 </Frame>
</Ui>
