This commit is contained in:
parent
0f348a9638
commit
9bd5af6beb
2 changed files with 17 additions and 3 deletions
|
@ -69,6 +69,7 @@
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Vars
|
Vars
|
||||||
---- */
|
---- */
|
||||||
|
static int count;
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
|
@ -108,6 +109,7 @@ void CFrontEndDemoMode::select()
|
||||||
{
|
{
|
||||||
// LOAD UP DEMO AND DEMO LEVEL
|
// LOAD UP DEMO AND DEMO LEVEL
|
||||||
m_shuttingDown=false;
|
m_shuttingDown=false;
|
||||||
|
count=0;
|
||||||
CFader::setFadingIn();
|
CFader::setFadingIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -160,12 +162,16 @@ void CFrontEndDemoMode::render()
|
||||||
---------------------------------------------------------------------- */
|
---------------------------------------------------------------------- */
|
||||||
void CFrontEndDemoMode::think(int _frames)
|
void CFrontEndDemoMode::think(int _frames)
|
||||||
{
|
{
|
||||||
if(PadGetDown(0)&PAD_START) // OR DEMO ENDED
|
if(!m_shuttingDown)
|
||||||
|
{
|
||||||
|
count+=_frames;
|
||||||
|
if(PadGetDown(0)&PAD_START||count>60*20) // OR DEMO ENDED
|
||||||
{
|
{
|
||||||
m_shuttingDown=true;
|
m_shuttingDown=true;
|
||||||
CFader::setFadingOut();
|
CFader::setFadingOut();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
|
|
|
@ -125,6 +125,14 @@ SOURCE=..\..\..\source\fileio\pcfile.h
|
||||||
# PROP Default_Filter ""
|
# PROP Default_Filter ""
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\source\frontend\demomode.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\source\frontend\demomode.h
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\..\..\source\frontend\frontend.cpp
|
SOURCE=..\..\..\source\frontend\frontend.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
Loading…
Add table
Reference in a new issue