<ActorFrame> 
<children>
	<LayerType="BitmapText"
		Condition="GAMESTATE:GetPlayMode() == PLAY_MODE_RAVE"
		Font="Common normal"
		Text="@GAMESTATE:GetPlayerDisplayName(PLAYER_1)"
		InitCommand="%function(self) self:shadowlength(2); self:x(self:GetWidth()/2) end"
		OnCommand="x,SCREEN_CENTER_X-224;y,SCREEN_TOP+54;addy,-4;shadowlength,0;diffuse,#000000;zoom,.5;maxwidth,180;addy,-100;sleep,0.5;decelerate,0.8;addy,+100"
		OffCommand="accelerate,0.8;addy,-100"
	/>
	<Layer Type="BitmapText"
		Condition="GAMESTATE:GetPlayMode() == PLAY_MODE_RAVE"
		Font="Common normal"
		Text="@GAMESTATE:GetPlayerDisplayName(PLAYER_2)"
		InitCommand="%function(self) self:shadowlength(2); self:x(self:GetWidth()/2) end"
		OnCommand="x,SCREEN_CENTER_X+224;y,SCREEN_TOP+54;shadowlength,0;diffuse,#000000;zoom,.5;maxwidth,180;addy,-100;sleep,0.5;decelerate,0.8;addy,+100"
		OffCommand="accelerate,0.8;addy,-100"
	/>
	<Layer Type="BitmapText"
		Font="_eurostile normal"
		Text="@GAMESTATE:GetCurrentSong():GetDisplayFullTitle()"
		InitCommand="draworder,150;zoom,0.5;x,SCREEN_CENTER_X;y,SCREEN_TOP+24"
		OnCommand="addy,-100;sleep,0.5;decelerate,0.8;addy,100;shadowlength,0"
		OffCommand="accelerate,0.8;addy,-100"
	/>
	<Layer Type="BitmapText"
		Font="_eurostile normal"
		Text="@GAMESTATE:GetCurrentSong():GetDisplayFullTitle()"
		Condition="GAMESTATE:IsCourseMode()"
		InitCommand="draworder,150;zoom,0.5;x,SCREEN_CENTER_X;y,SCREEN_TOP+24"
		OnCommand="addy,-100;sleep,0.5;decelerate,0.8;addy,100;shadowlength,0"
		OffCommand="accelerate,0.8;addy,-100"
	/>
	<Layer Type="BitmapText"
		Font="_eurostile normal"
		Text="@GAMESTATE:GetCurrentArtist():GetDisplayFullTitle()"
		InitCommand="zoom,.7;x,SCREEN_LEFT+165;y,SCREEN_CENTER_Y+132"
		OnCommand="sleep,3;linear,.7;diffusealpha,0"
		OffCommand="accelerate,0.8;addy,-100"
	/>
	<Layer Type="ActorFrame"
		OnCommand="draworder,1;x,SCREEN_CENTER_X;y,SCREEN_TOP+24;addy,-100;sleep,0.5;queuecommand,TweenOn"
		OffCommand="queuecommand,TweenOff"
		ShowGameplayTopFrameMessageCommand="playcommand,TweenOn"
		HideGameplayTopFrameMessageCommand="playcommand,TweenOff"
		TweenOnCommand="decelerate,0.8;addy,+100"
		TweenOffCommand="accelerate,0.8;addy,-100"
		> <children>

		<Layer
			Type="SongMeterDisplay"
			StreamWidth="388"
			StreamPath="meter stream"
		>
			<Tip
				File="tip"
				OnCommand="diffuseshift;EffectColor1,1,1,1,0.6;EffectColor2,1,1,1,1.0"
			/>
		</Layer>

		<Layer File="meter frame" />

		<Layer
			Type="BitmapText"
			Font="_eurostile normal"
			OnCommand="ShadowLength,2;y,-2;zoom,.5;shadowlength,0"
			OffCommand="accelerate,0.8;addy,-100"
			InitCommand="animate,0;playcommand,Update"
			CurrentSongChangedMessageCommand="playcommand,Update"
			UpdateCommand=""
		/>
	</children> </Layer>

	<!-- Difficulty: -->
	<Layer Type="ActorFrame"
		OnCommand="sleep,0.5;queuecommand,TweenOn"
		OffCommand="queuecommand,TweenOff"
		ShowGameplayTopFrameMessageCommand="playcommand,TweenOn"
		HideGameplayTopFrameMessageCommand="playcommand,TweenOff"
		> <children>
		
		<ActorFrame Condition="GAMESTATE:IsHumanPlayer(PLAYER_1)" OnCommand="draworder,0;x,SCREEN_CENTER_X-257;y,SCREEN_TOP+25;addx,-200" TweenOnCommand="decelerate,0.8;addx,+200" TweenOffCommand="accelerate,0.8;addx,-200"><children>
			<Actor
				Class="DifficultyMeter"
				Type="ScreenGameplay DifficultyMeterP1"
				OnCommand="shadowlength,2;y,-2;draworder,11;playcommand,Update"
				OffCommand="accelerate,0.8;addy,-100"
				CurrentStepsP1ChangedMessageCommand="playcommand,Update"
				CurrentStepsP2ChangedMessageCommand="playcommand,Update"
				UpdateCommand="%function(self) self:SetFromSteps(GAMESTATE:GetCurrentSteps(PLAYER_1)) end"
			/>
			<Actor
				File="mirrored difficulty frame"
				OnCommand="draworder,0;zoomx,+1;animate,0;playcommand,Update"
				OffCommand="accelerate,0.8;addy,-100"
				CurrentStepsP1ChangedMessageCommand="playcommand,Update"
				CurrentStepsP2ChangedMessageCommand="playcommand,Update"
				UpdateCommand="%function(self,parent) SetDifficultyFrameFromSteps(self, PLAYER_1) end"
			/>
		</children></ActorFrame>
		
		<ActorFrame Condition="GAMESTATE:IsHumanPlayer(PLAYER_2)" OnCommand="x,SCREEN_CENTER_X+257;y,SCREEN_TOP+25;addx,+200" TweenOnCommand="decelerate,0.8;addx,-200" TweenOffCommand="accelerate,0.8;addx,+200"><children>
			<Actor
				Class="DifficultyMeter"
				Type="ScreenGameplay DifficultyMeterP2"
				OnCommand="shadowlength,2;y,-2;draworder,10;playcommand,Update"
				OffCommand="accelerate,0.8;addy,-100"
				CurrentStepsP1ChangedMessageCommand="playcommand,Update"
				CurrentStepsP2ChangedMessageCommand="playcommand,Update"
				UpdateCommand="%function(self) self:SetFromSteps(GAMESTATE:GetCurrentSteps(PLAYER_2)) end"
			/>
			<Actor
				File="mirrored difficulty frame"
				OnCommand="draworder,0;zoomx,-1;animate,0;playcommand,Update"
				OffCommand="accelerate,0.8;addy,-100"
				CurrentStepsP1ChangedMessageCommand="playcommand,Update"
				CurrentStepsP2ChangedMessageCommand="playcommand,Update"
				UpdateCommand="%function(self,parent) SetDifficultyFrameFromSteps(self, PLAYER_2) end"
			/>
		</children></ActorFrame>
		
	</children> </Layer>


	<!-- Draw on top of the rest -->

	<Layer
		Type="Quad"
		OnCommand="diffuse,#000000;stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM;diffusealpha,1;linear,0.3;diffusealpha,0"
		OffCommand="accelerate,0.8;addy,-100"
	/>

	<Layer
		Condition="not IsDemonstration()"
		File="../_song credit display"
		OnCommand="sleep,2.5;linear,0.3;diffusealpha,0"
		OffCommand="accelerate,0.8;addy,-100"
	/>

	<!-- Demonstration only: -->
	<Layer
		File="demonstration gradient"
		Condition="IsDemonstration()"
		OnCommand="x,SCREEN_CENTER_X;y,SCREEN_TOP;vertalign,top;zoomx,5"
		OffCommand="accelerate,0.8;addy,-100"
	/>

	<Layer
		File="demonstration gradient"
		Condition="IsDemonstration()"
		OnCommand="x,SCREEN_CENTER_X;y,SCREEN_BOTTOM;vertalign,top;zoomx,5;zoomy,-1"
		OffCommand="accelerate,0.8;addy,-100"
	/>

	<Layer
		File="demonstration logo"
		Condition="IsDemonstration()"
		OnCommand="draworder,100;x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y+180;pulse;EffectMagnitude,1.0,0.9,0;effectclock,bgm;effectperiod,1"
		OffCommand="accelerate,0.8;addy,-100"
	/>

</children> 
</ActorFrame>

