add LightsDriver_ScreenMessage

This commit is contained in:
Chris Danford
2003-11-20 11:55:45 +00:00
parent 4e80f3057a
commit ffc40fe994
12 changed files with 186 additions and 42 deletions
+20 -1
View File
@@ -113,9 +113,20 @@ void LightsManager::Update( float fDeltaTime )
case LIGHTMODE_DEMONSTRATION:
case LIGHTMODE_GAMEPLAY:
{
int i;
// top lights are controlled my ScreenGameplay
//for( int i=0; i<4; i++ )
// m_pDriver->SetLight( (Light)i, bOn );
// menu lights are always off
for( i=4; i<6; i++ )
m_pDriver->SetLight( (Light)i, false );
// bass lights
float fBeatPercentage = GAMESTATE->m_fSongBeat - (int)GAMESTATE->m_fSongBeat;
bool bOn = fBeatPercentage < 0.1 || fBeatPercentage > 0.9;
for( int i=0; i<8; i++ )
for( i=7; i<8; i++ )
m_pDriver->SetLight( (Light)i, bOn );
}
break;
@@ -198,3 +209,11 @@ void LightsManager::SetLightMode( LightMode lm )
{
m_LightMode = lm;
}
void LightsManager::SetAllUpperLights( bool bOn )
{
for( int i=0; i<4; i++ )
{
m_pDriver->SetLight( (Light)i, bOn );
}
}