Files
itgmania212121/stepmania/src/arch/Lights/LightsDriver_SystemMessage.cpp
T

54 lines
1.1 KiB
C++
Raw Normal View History

2003-11-20 11:55:45 +00:00
#include "global.h"
/*
-----------------------------------------------------------------------------
Class: LightsDriver_SystemMessage
Desc: See header.
Copyright (c) 2003 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "LightsDriver_SystemMessage.h"
#include "ScreenManager.h"
2004-03-30 04:32:27 +00:00
#include "GameState.h"
#include "GameDef.h"
2003-11-20 11:55:45 +00:00
LightsDriver_SystemMessage::LightsDriver_SystemMessage()
{
}
LightsDriver_SystemMessage::~LightsDriver_SystemMessage()
{
}
2004-03-23 06:11:10 +00:00
void LightsDriver_SystemMessage::Set( const LightsState *ls )
2003-11-20 11:55:45 +00:00
{
2004-03-23 06:11:10 +00:00
CString s;
s += LightsModeToString(LIGHTSMAN->GetLightsMode()) + "\n";
2004-03-23 06:11:10 +00:00
s += "Cabinet: ";
FOREACH_CabinetLight( cl )
2003-11-20 11:55:45 +00:00
{
2004-03-23 06:11:10 +00:00
s += ls->m_bCabinetLights[cl] ? '1' : '0';
2003-11-20 11:55:45 +00:00
}
2004-03-23 06:11:10 +00:00
s += "\n";
2004-03-30 04:32:27 +00:00
int iNumGameButtonsToShow = GAMESTATE->GetCurrentGameDef()->GetNumGameplayButtons();
2004-03-23 06:11:10 +00:00
FOREACH_GameController( gc )
{
s += ssprintf("Controller%d: ",gc+1);
2004-03-30 04:32:27 +00:00
for( int gb=0; gb<iNumGameButtonsToShow; gb++ )
2004-03-23 06:11:10 +00:00
{
s += ls->m_bGameButtonLights[gc][gb] ? '1' : '0';
}
s += "\n";
}
2003-11-20 11:55:45 +00:00
SCREENMAN->SystemMessageNoAnimate( s );
}