<?xml version="1.0" encoding="UTF-8" ?>
<sector name="SplashScreen" >
    <tMenuScreen prototype="ScreenEntity">
	
		<iFrameCount> 0 </iFrameCount>
	
		<iArrowIndex>0</iArrowIndex>
		<sText>Copyright FIEA 2009</sText>
		<vPosition> {230,400,0,0} </vPosition>
		<vColor> {1,1,1,1} </vColor>
		<sFont> Courier New </sFont>
		<iSize> 20 </iSize>
		
		<pSprite> 0 </pSprite>
		<Init>
			<sFilename> fiealogoSmall.dds </sFilename>

			<tCreateSprite prototype ="ActionCreateSprite">
				<rFile> sFilename </rFile>
				<rTexture> pSprite </rTexture>
			</tCreateSprite>
			
			<tLoadIntroSound prototype="ActionLoadAudio">
			  <sFilename> intro.wav</sFilename>
			  <iLooping> 0 </iLooping>
			  <i3D> 0 </i3D>
			</tLoadIntroSound>
			
			<tPlayIntroSound prototype="ActionPlaySound">
			  <sFilename> intro.wav </sFilename>
			</tPlayIntroSound>
		</Init>
			
        <Render>
		
			<vSpriteCenter> {0, 0, 0, 0} </vSpriteCenter>
			<vSpriteTranslate> {200, 80, 0, 0} </vSpriteTranslate>
			<iSpriteColor> 0xFFFFFFFF </iSpriteColor>
			<pSquare> 0 </pSquare>

			<tSpriteRender prototype="ActionRenderSprite">
				<rSpriteFile> pSprite </rSpriteFile>
				<rColor> iSpriteColor </rColor>
				<rCenter> vSpriteCenter </rCenter>
				<rTranslate> vSpriteTranslate </rTranslate>
				<rSquare> pSquare </rSquare>
			</tSpriteRender>
		  
			<tTextRender prototype="ActionRenderText">
                <rText>sText</rText>
                <rPosition> vPosition </rPosition>
                <rColor> vColor </rColor>
                <rFont> sFont </rFont>
                <rSize> iSize </rSize>
            </tTextRender>
		
			<iCondition> 0 </iCondition>
			<expr> iCondition = ( iFrameCount == 120 ) </expr>
			<if>
			<rCondition> iCondition </rCondition>
			<then>
			
				<tLoad0 prototype="ActionLoad">
					<sFilename>MenuScreen.xml</sFilename>
				<iSynch>1</iSynch>
				</tLoad0>

        <tFreeSprite prototype ="ActionReleaseSprite">
          <rSprite> pSprite </rSprite>
        </tFreeSprite>
        
				<tUnload prototype="ActionUnloadSector">
					<sSectorName>SplashScreen</sSectorName>
				</tUnload>
			</then>
			</if>
			
			<expr> iFrameCount = iFrameCount + 1 </expr>
		</Render>
		
	</tMenuScreen>

</sector>