<ActorFrame> <children>
	<Layer File="@THEME:GetPath(EC_BGANIMATIONS,'ScreenOptions','overlay')" />
	<Layer
		Type="BitmapText"
		Font="_misoreg small"
		Condition="Platform() == 'arcade'"
		Text="@'Serial #' .. GetSerialNumber()"
		InitCommand="x,SCREEN_CENTER_X+300;y,SCREEN_CENTER_Y-182;shadowlength,0;horizalign,right;wrapwidthpixels,1000;zoom,0.6"
		OnCommand="diffusealpha,0;linear,0.3;diffusealpha,1"
		OffCommand="linear,0.3;diffusealpha,0"
	/>

	<!-- Somewhat experimental: use an Actor to simply broadcast commands,
	     which we pick up in another actor.  This lets us update the text
	     every second, without the tweening queue of the actor getting in
	     the way.  In principle, we could set up actual tweens in another
	     actor, and copy the results to another actor, in order to effectively
	     have multiple tweening queues for different attributes, though there
	     may be better approaches. -->
	<Layer
		Type="Quad"
		PulseCommand="%function(self) MESSAGEMAN:Broadcast('Pulse'); self:sleep(1); self:queuecommand('Pulse') end"
		InitCommand="hidden,1;playcommand,Pulse"
	/>

	<Layer
		Type="BitmapText"
		Font="_misoreg small"
		Condition="Platform() == 'arcade'"
		SetCommand="%function(self) if OPENITG then self:settext( string.format('%02i:%02i:%02i %s %02i %04i', Hour(), Minute(), Second(), MonthToString(MonthOfYear()), DayOfMonth(), Year()) )
					else self:settext( string.format('%02i:%02i:%02i %s %02i %04i', Hour(), Minute(), Second(), MonthToString(MonthOfYear()-1), DayOfMonth(), Year()) ) end end"
		PulseMessageCommand="playcommand,Set"
		Text=""
		InitCommand="x,SCREEN_CENTER_X+300;y,SCREEN_CENTER_Y-200;shadowlength,0;horizalign,right;zoom,0.5;playcommand,Set"
		OnCommand="diffusealpha,0;linear,0.3;diffusealpha,1"
		OffCommand=""
	/>

	<Layer
		Type="BitmapText"
		Font="_misoreg small"
		Condition="Platform() == 'arcade'"
		SetCommand="%function(self) if HubIsConnected and HubIsConnected() then self:settext('') else self:settext('Memory card USB hub disconnected') end end"
		PulseMessageCommand="playcommand,Set"
		Text=""
		InitCommand="x,SCREEN_CENTER_X-300;y,SCREEN_CENTER_Y-180;shadowlength,0;horizalign,left;zoom,0.5;diffuseshift;playcommand,Set"
		OnCommand="diffusealpha,0;linear,0.3;diffusealpha,1"
		OffCommand=""
	/>
</children> </ActorFrame>
