This commit is contained in:
Paul 2001-07-11 18:32:45 +00:00
parent df5690f57d
commit 9ca9003fd4
9 changed files with 78 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 KiB

After

Width:  |  Height:  |  Size: 384 KiB

View file

@ -116,6 +116,7 @@ backdrop/start4.gfx
backdrop/gameover.gfx backdrop/gameover.gfx
backdrop/shop.gfx backdrop/shop.gfx
backdrop/partybackdrop.gfx backdrop/partybackdrop.gfx
backdrop/nick.gfx
loadingscreens/culture.gfx loadingscreens/culture.gfx
loadingscreens/karate.gfx loadingscreens/karate.gfx
loadingscreens/monitor.gfx loadingscreens/monitor.gfx

View file

@ -194,6 +194,7 @@ frontend_src := demomode \
fmvthq \ fmvthq \
fmvintro \ fmvintro \
maintitl \ maintitl \
nicklogo \
options \ options \
scrollbg \ scrollbg \
start start

View file

@ -453,7 +453,7 @@ GFX_DATA_OUT += $(TRANS_OUT_DAT)
# Big TGA backdrops # Big TGA backdrops
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
BACKDROPS_IN_DIR := $(GRAF_DIR)/backdrop BACKDROPS_IN_DIR := $(GRAF_DIR)/backdrop
BACKDROPS_IN := credits start1 start2 start3 start4 gameover shop partybackdrop BACKDROPS_IN := credits start1 start2 start3 start4 gameover shop partybackdrop nick
BACKDROPS_OUT_DIR := $(DATA_OUT)/backdrop BACKDROPS_OUT_DIR := $(DATA_OUT)/backdrop
BACKDROPS_OUT := $(foreach SCREEN,$(BACKDROPS_IN),$(BACKDROPS_OUT_DIR)/$(SCREEN).gfx) BACKDROPS_OUT := $(foreach SCREEN,$(BACKDROPS_IN),$(BACKDROPS_OUT_DIR)/$(SCREEN).gfx)

View file

@ -22,6 +22,10 @@
#include "mem\memory.h" #include "mem\memory.h"
#endif #endif
#ifndef __FRONTEND_NICKLOGO_H__
#include "frontend\nicklogo.h"
#endif
#ifndef __FRONTEND_MAINTITL_H__ #ifndef __FRONTEND_MAINTITL_H__
#include "frontend\maintitl.h" #include "frontend\maintitl.h"
#endif #endif
@ -102,6 +106,7 @@
Vars Vars
---- */ ---- */
static CFrontEndNickLogo s_nickLogo;
static CFrontEndFMVTHQ s_frontEndFMVTHQ; static CFrontEndFMVTHQ s_frontEndFMVTHQ;
static CFrontEndFMVIntro s_frontEndFMVIntro; static CFrontEndFMVIntro s_frontEndFMVIntro;
static CFrontEndMainTitles s_frontEndModeMainTitles; static CFrontEndMainTitles s_frontEndModeMainTitles;
@ -111,6 +116,7 @@ static CFrontEndDemoMode s_frontEndDemoMode;
CFrontEndMode *CFrontEndScene::s_modeCodes[]= CFrontEndMode *CFrontEndScene::s_modeCodes[]=
{ {
&s_nickLogo, // MODE__NICK_LOGO
&s_frontEndFMVTHQ, // MODE__FMV_THQ &s_frontEndFMVTHQ, // MODE__FMV_THQ
&s_frontEndFMVIntro, // MODE__FMV_INTRO &s_frontEndFMVIntro, // MODE__FMV_INTRO
&s_frontEndModeMainTitles, // MODE__MAIN_TITLES &s_frontEndModeMainTitles, // MODE__MAIN_TITLES
@ -158,7 +164,7 @@ void CFrontEndScene::init()
else else
{ {
s_runOnce=true; s_runOnce=true;
setMode(MODE__FMV_THQ); setMode(MODE__NICK_LOGO);
} }
m_sprites=new ("MainTitle Sprites") SpriteBank(); m_sprites=new ("MainTitle Sprites") SpriteBank();

View file

@ -46,6 +46,7 @@ class CFrontEndScene : public CScene
public: public:
typedef enum typedef enum
{ {
MODE__NICK_LOGO,
MODE__FMV_THQ, MODE__FMV_THQ,
MODE__FMV_INTRO, MODE__FMV_INTRO,
MODE__MAIN_TITLES, MODE__MAIN_TITLES,

View file

@ -22,8 +22,12 @@
#include "gfx\fader.h" #include "gfx\fader.h"
#endif #endif
#ifndef __PAD_PADS_H__ #ifndef _FILEIO_HEADER_
#include "pad\pads.h" #include "fileio\fileio.h"
#endif
#ifndef __VID_HEADER_
#include "system\vid.h"
#endif #endif
@ -57,6 +61,42 @@
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
void CFrontEndNickLogo::select() void CFrontEndNickLogo::select()
{ {
m_readyToExit=false;
m_image=CFileIO::loadFile(BACKDROP_NICK_GFX);
ASSERT(m_image);
SetScreenImage(m_image);
CFader::setFadingIn();
m_frameCount=0;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CFrontEndNickLogo::unselect()
{
MemFree(m_image); m_image=NULL;
}
/*----------------------------------------------------------------------
Function:
Purpose:
Params:
Returns:
---------------------------------------------------------------------- */
void CFrontEndNickLogo::think(int _frames)
{
m_frameCount+=_frames;
if(m_frameCount>DISPLAY_FRAMES&!m_readyToExit)
{
CFader::setFadingOut();
m_readyToExit=true;
}
} }
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------
@ -67,7 +107,7 @@ void CFrontEndNickLogo::select()
---------------------------------------------------------------------- */ ---------------------------------------------------------------------- */
int CFrontEndNickLogo::isReadyToExit() int CFrontEndNickLogo::isReadyToExit()
{ {
return false; return !CFader::isFading()&&m_readyToExit;
} }
/*---------------------------------------------------------------------- /*----------------------------------------------------------------------

View file

@ -37,10 +37,23 @@
class CFrontEndNickLogo : public CFrontEndMode class CFrontEndNickLogo : public CFrontEndMode
{ {
public: public:
void select(); virtual void select();
virtual void unselect();
virtual void think(int _frames);
virtual int isReadyToExit();
virtual CFrontEndScene::FrontEndMode getNextMode();
private:
enum
{
DISPLAY_FRAMES=60*6,
};
int m_readyToExit;
unsigned char *m_image;
int m_frameCount;
int isReadyToExit();
CFrontEndScene::FrontEndMode getNextMode();
}; };

View file

@ -577,6 +577,14 @@ SOURCE=..\..\..\source\frontend\maintitl.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\..\..\source\frontend\nicklogo.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\frontend\nicklogo.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\frontend\options.cpp SOURCE=..\..\..\source\frontend\options.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File