187 unsigned char mToggles;
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
void SetToggle(unsigned char nToggle, int nOn)
Turn toggles on or off.
GameOptionsScreen(DataArray *pData)
Construct the screen from its script description.
Definition gameoptionsscreen.h:39
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition gameoptionsscreen.h:50
bool DispatchPriv(Message *pMsg) override
Route the start of a choice and a controller button, and pass on every other message.
void Commit()
Store the settings of the menu in the game database.
void Refresh()
Copy the stored settings into the menu and show them.
Toggle
Bits of mToggles.
Definition gameoptionsscreen.h:27
@ kToggleHelpText
Definition gameoptionsscreen.h:29
@ kToggleForceFeedback
Definition gameoptionsscreen.h:28
bool IsToggleOn(unsigned char nToggle) const
Report whether toggles are on.
void FlipToggle(unsigned char nToggle)
Turn toggles over.
const char * FreqSizeLabel(int nFreqSize) const
Report the label of a size of the track display.
void RefreshToggle(const char *pszComponent)
Show whether one of the two toggles is on.
const char * OutputModeLabel(int nOutputMode) const
Report the label of a speaker output mode.
~GameOptionsScreen() override=default
Destroy the object.
bool HandleSelectStart(UIComponentSelectStartMsg *pMsg)
Change the setting of the component a button starts to choose, or leave with done.
bool HandleJoypad(JoypadInputMsg *pMsg)
Go back to the screen the menu was entered from on Triangle, unless the screen is between screens.
const char * OnOffLabel(bool bOn) const
Report the label of a toggle.
void Enter(UIScreen *pPrevScreen, float fTime) override
Enter, remember the screen to return to, and show the stored settings.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Message a component sends when the player presses the button that chooses it.
Definition uicomponentselectstartmsg.h:27
UIScreen(DataArray *pData)
Construct a screen from its script description.