<ActorFrame InitCommand="%function(self)
	SplatManiaSongNames = {
		{'15', 'HOME', {0,0.5,1} },
		-- The following are for testing, and are not in the actual game.
		{'300MB', 'Neil Cicierega', {1,1,0.5} },
		{'Critical Error', 'StrobeFlux', {1,0,0.5} },
		{'NEONアーキテクチャ (パート2)', 'death\'s dynamic shroud.wmv', {0.7,1,0.7} },
	}
end"><children>

	<Layer
		Font="Paintball"
		Text="@THEME:GetMetric('PaneDisplay', 'TopHeaderText')"
		OnCommand="%function(self)
		
		self:zoom(0.3)
		self:horizalign('left')
		self:shadowlength(1)
		self:rotationy(-3)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		/>

		<Layer
		Font="Paintball"
		Text="Song name"
		OnCommand="%function(self)
		
		self:x(0)
		self:y(30)
		self:zoom(.5)
		self:horizalign('left')
		self:shadowlength(1)
		self:maxwidth(450)
		self:rotationy(-5)
		self:rotationz(-1)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		InitCommand="animate,0;playcommand,UpdateStart"
		CurrentSongChangedMessageCommand="playcommand,UpdateStart"
		UpdateStartCommand="%function(self)
				self:finishtweening()
				self:accelerate(0.1)
				self:x(-10)
				self:diffusealpha(0)
				self:sleep(0.001)
				self:queuecommand('Update')
		end"
		UpdateCommand="%function(self)
			self:x(20)
			if GAMESTATE:GetCurrentSong() then
				self:hidden(0)
				self:diffuse(1,1,1,0)
				local song = GAMESTATE:GetCurrentSong();
				self:settext(GAMESTATE:GetCurrentSong():GetDisplayMainTitle())
				if string.len( string.sub(song:GetDisplayFullTitle(), string.len(song:GetDisplayMainTitle()) + 1) ) > 0 then
						self:zoom(0.4)
						self:y(20)
					else
						self:y(30)
						self:zoom(.5)
					end
				for i=1,table.getn(SplatManiaSongNames) do
					if GAMESTATE:GetCurrentSong():GetDisplayMainTitle() == SplatManiaSongNames[i][1] then
						self:diffuse( SplatManiaSongNames[i][3][1],SplatManiaSongNames[i][3][2],SplatManiaSongNames[i][3][3],0 )
					end
				end
			else
				self:hidden(1)
			end
			self:decelerate(0.1)
			self:x(10)
			self:diffusealpha(1)
		end"
		/>

		<Layer
		Font="Paintball"
		Text="Song name"
		OnCommand="%function(self)
		
		self:x(0)
		self:y(30)
		self:zoom(.5)
		self:horizalign('left')
		self:shadowlength(1)
		self:maxwidth(450)
		self:rotationy(-5)
		self:rotationz(-1)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		InitCommand="animate,0;playcommand,UpdateStart"
		CurrentSongChangedMessageCommand="playcommand,UpdateStart"
		UpdateStartCommand="%function(self)
				self:finishtweening()
				self:accelerate(0.1)
				self:x(-10)
				self:diffusealpha(0)
				self:sleep(0.001)
				self:queuecommand('Update')
		end"
		UpdateCommand="%function(self)
			self:x(20)
			if GAMESTATE:GetCurrentSong() then
				self:hidden(0)
				self:diffuse(1,1,1,0)
				local song = GAMESTATE:GetCurrentSong();
				self:settext( string.sub(song:GetDisplayFullTitle(), string.len(song:GetDisplayMainTitle()) + 1) )
				if string.len( string.sub(song:GetDisplayFullTitle(), string.len(song:GetDisplayMainTitle()) + 1) ) > 0 then
						self:zoom(0.4)
						self:y(32)
					else
						self:y(30)
						self:zoom(.5)
					end
				for i=1,table.getn(SplatManiaSongNames) do
					if GAMESTATE:GetCurrentSong():GetDisplayMainTitle() == SplatManiaSongNames[i][1] then
						self:diffuse( SplatManiaSongNames[i][3][1],SplatManiaSongNames[i][3][2],SplatManiaSongNames[i][3][3],0 )
					end
				end
			else
				self:hidden(1)
			end
			self:decelerate(0.1)
			self:x(10)
			self:diffusealpha(1)
		end"
		/>


		<Layer
		Font="Paintball"
		Text="Song name"
		OnCommand="%function(self)
		
		self:x(0)
		self:y(45)
		self:zoom(.3)
		self:horizalign('left')
		self:shadowlength(1)
		self:maxwidth(SCREEN_WIDTH/1.5)
		self:rotationy(-5)
		self:rotationz(-1)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		InitCommand="animate,0;playcommand,UpdateStart"
		CurrentSongChangedMessageCommand="playcommand,UpdateStart"
		UpdateStartCommand="%function(self)
				self:finishtweening()
				self:accelerate(0.1)
				self:x(-10)
				self:diffusealpha(0)
				self:sleep(0.001)
				self:queuecommand('Update')
		end"
		UpdateCommand="%function(self)
			self:x(20)
			if GAMESTATE:GetCurrentSong() then
				self:hidden(0)
				self:diffuse(1,1,1,0)
				self:settext(GAMESTATE:GetCurrentSong():GetDisplayArtist())
				self:decelerate(0.1)
				for i=1,table.getn(SplatManiaSongNames) do
					if GAMESTATE:GetCurrentSong():GetDisplayArtist() == SplatManiaSongNames[i][2] then
						self:diffuse( SplatManiaSongNames[i][3][1],SplatManiaSongNames[i][3][2],SplatManiaSongNames[i][3][3],0 )
					end
				end
			else
				self:hidden(1)
			end
			self:x(10)
			self:diffusealpha(1)
		end"
		/>

		<Layer File="@ThemeFile('EcoInfoBG')"
			OnCommand="%function(self)
		
		self:x(0)
		self:y(-17)
		self:zoom(.2)
		self:horizalign('left')
		self:shadowlength(1)
		self:rotationy(-3)
		self:rotationz(-1)
		end"
		/>

		<Layer
		Font="Paintball"
		Text="Song name"
		OnCommand="%function(self)
		
		self:x(10)
		self:y(-20)
		self:zoom(.2)
		self:horizalign('left')
		self:shadowlength(1)
		self:maxwidth(SCREEN_WIDTH/1.5)
		self:rotationy(-4.5)
		self:rotationz(-1)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		InitCommand="animate,0;playcommand,UpdateStart"
		CurrentSongChangedMessageCommand="playcommand,UpdateStart"
		UpdateStartCommand="%function(self)
				self:finishtweening()
				self:accelerate(0.1)
				self:zoom(0.18)
				self:diffusealpha(0)
				self:sleep(0.001)
				self:queuecommand('Update')
		end"
		UpdateCommand="%function(self)
			self:zoom(0.18)
			if GAMESTATE:GetCurrentSong() then
				self:hidden(0)
				self:diffuse(1,1,1,0)
				if PROFILEMAN:GetMachineProfile():GetSongNumTimesPlayed(GAMESTATE:GetCurrentSong()) > 0 then
					self:settext( THEME:GetMetric('PaneDisplay', 'Played')..PROFILEMAN:GetMachineProfile():GetSongNumTimesPlayed(GAMESTATE:GetCurrentSong()) )
				else
					self:settext( THEME:GetMetric('PaneDisplay', 'NeverPlayed') )
					self:diffusetopedge(1,0,1,1)
					self:diffusebottomedge(0,1,1,1)
				end
				self:decelerate(0.1)
			else
				self:hidden(1)
			end
			self:zoom(0.3)
			self:diffusealpha(1)
		end"
		/>












		<Layer
		Font="Paintball"
		Text="Song name"
		OnCommand="%function(self)
		
		self:x(220)
		self:y(20)
		self:zoom(.3)
		self:horizalign('left')
		self:shadowlength(1)
		self:maxwidth(SCREEN_WIDTH/1.5)
		self:rotationy(-5)
		self:rotationz(-1)
		end"
		OffCommand="linear,0.3;diffusealpha,0"
		InitCommand="animate,0;playcommand,UpdateStart"
		CurrentSongChangedMessageCommand="playcommand,UpdateStart"
		UpdateStartCommand="%function(self)
				self:finishtweening()
				self:accelerate(0.1)
				self:y(30)
				self:diffusealpha(0)
				self:sleep(0.001)
				self:queuecommand('Update')
		end"
		UpdateCommand="%function(self)
			MESSAGEMAN:Broadcast('UpdateSortOrder')
			self:y(30)
			if GAMESTATE:GetCurrentSong() then
				self:hidden(0)
				self:diffuse(1,1,1,0)
				self:settext(GAMESTATE:GetCurrentSong():GetDisplayArtist())
				self:decelerate(0.1)
				if GAMESTATE:GetCurrentSong():MusicLengthSeconds() >= 3600 then
					self:settext(SecondsToHHMMSS(GAMESTATE:GetCurrentSong():MusicLengthSeconds()))
				else
					self:settext(SecondsToMMSS(GAMESTATE:GetCurrentSong():MusicLengthSeconds()))
				end
			else
				self:hidden(1)
			end
			self:y(20)
			self:diffusealpha(1)
		end"
		/>

</children></ActorFrame>