add ScreenTestLights

This commit is contained in:
Chris Danford
2004-03-23 06:33:01 +00:00
parent 0ca0f86d7e
commit ca215bdc82
8 changed files with 227 additions and 6 deletions
+24
View File
@@ -139,6 +139,16 @@ void LightsManager::Update( float fDeltaTime )
m_LightsState.m_bCabinetLights[cl] = true;
}
break;
case LIGHTSMODE_TEST:
{
int iSec = (int)RageTimer::GetTimeSinceStart();
FOREACH_CabinetLight( cl )
{
bool bOn = (iSec%NUM_CABINET_LIGHTS) == cl;
m_LightsState.m_bCabinetLights[cl] = bOn;
}
}
break;
default:
ASSERT(0);
}
@@ -183,6 +193,20 @@ void LightsManager::Update( float fDeltaTime )
}
}
break;
case LIGHTSMODE_TEST:
{
int iSec = (int)RageTimer::GetTimeSinceStart();
FOREACH_GameController( gc )
{
FOREACH_GameButton( gb )
{
bool bOn = (iSec%MAX_GAME_BUTTONS)==gb;
m_LightsState.m_bGameButtonLights[gc][gb] = bOn;
}
}
}
break;
default:
ASSERT(0);
}