controllable LightsMode
This commit is contained in:
@@ -36,6 +36,7 @@ GroupedScreens=
|
|||||||
CodeNames=""
|
CodeNames=""
|
||||||
CancelCancelCommand=
|
CancelCancelCommand=
|
||||||
ShowCoinsAndCredits=true
|
ShowCoinsAndCredits=true
|
||||||
|
LightsMode=nil
|
||||||
|
|
||||||
[ModeSwitcher]
|
[ModeSwitcher]
|
||||||
PrevModeX=-200
|
PrevModeX=-200
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ void Screen::Init()
|
|||||||
ALLOW_OPERATOR_MENU_BUTTON.Load( m_sName, "AllowOperatorMenuButton" );
|
ALLOW_OPERATOR_MENU_BUTTON.Load( m_sName, "AllowOperatorMenuButton" );
|
||||||
REPEAT_RATE.Load( m_sName, "RepeatRate" );
|
REPEAT_RATE.Load( m_sName, "RepeatRate" );
|
||||||
REPEAT_DELAY.Load( m_sName, "RepeatDelay" );
|
REPEAT_DELAY.Load( m_sName, "RepeatDelay" );
|
||||||
|
LIGHTS_MODE.Load( m_sName, "LightsMode" );
|
||||||
|
|
||||||
m_Codes.Load( m_sName );
|
m_Codes.Load( m_sName );
|
||||||
|
|
||||||
@@ -216,6 +217,10 @@ void Screen::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
INPUTFILTER->SetRepeatRate( REPEAT_RATE );
|
INPUTFILTER->SetRepeatRate( REPEAT_RATE );
|
||||||
if( REPEAT_DELAY != -1.0f )
|
if( REPEAT_DELAY != -1.0f )
|
||||||
INPUTFILTER->SetRepeatDelay( REPEAT_DELAY );
|
INPUTFILTER->SetRepeatDelay( REPEAT_DELAY );
|
||||||
|
|
||||||
|
LightsMode lm = LIGHTS_MODE;
|
||||||
|
if( lm != LightsMode_Invalid ) // leave alone
|
||||||
|
LIGHTSMAN->SetLightsMode( lm );
|
||||||
}
|
}
|
||||||
else if( SM == SM_LoseFocus )
|
else if( SM == SM_LoseFocus )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include "PlayerNumber.h"
|
#include "PlayerNumber.h"
|
||||||
#include "InputQueue.h"
|
#include "InputQueue.h"
|
||||||
#include "CodeSet.h"
|
#include "CodeSet.h"
|
||||||
|
#include "LightsManager.h"
|
||||||
|
|
||||||
class InputEventPlus;
|
class InputEventPlus;
|
||||||
class Screen;
|
class Screen;
|
||||||
@@ -78,6 +79,7 @@ protected:
|
|||||||
ThemeMetric<bool> ALLOW_OPERATOR_MENU_BUTTON;
|
ThemeMetric<bool> ALLOW_OPERATOR_MENU_BUTTON;
|
||||||
ThemeMetric<float> REPEAT_RATE;
|
ThemeMetric<float> REPEAT_RATE;
|
||||||
ThemeMetric<float> REPEAT_DELAY;
|
ThemeMetric<float> REPEAT_DELAY;
|
||||||
|
ThemeMetric<LightsMode> LIGHTS_MODE;
|
||||||
|
|
||||||
// If left blank, the NextScreen metric will be used.
|
// If left blank, the NextScreen metric will be used.
|
||||||
RString m_sNextScreen;
|
RString m_sNextScreen;
|
||||||
|
|||||||
Reference in New Issue
Block a user