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