struct SETTINGS_MENU_STATE
The settings menu's state (HEAP_SLOT_SETTINGS_MENU): the settings being edited and how many values each takes, the row the cursor is on, and the cursor, markers and icons. More…
Declared in settings_menu.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | unused [1024] | Unused: nothing in this game reads these. |
Uint8 | entries [7][52] | |
Uint8 | unusedAfterEntries [8] | |
Uint16 | page | The row the cursor is on: on the settings menu 0 to 4, indexing option and optionCount; on the Pause menu its entry, indexing icon. |
Uint16 | tint [3] | The window tint's red, green and blue, 0 to 31. |
Uint16 | cursorFrame | Ticks counted; its low three bits pick the picture of the marker of the slider in use. |
Uint16 | preset | The colour preset SELECT last chose, 0 to |
Uint8 | unusedAfterPreset [20] | 5, from SettingsMenuHuePresets and SettingsMenuBrightnessPresets. |
Sint8 | option [5] | The settings being edited: window hue (0 to 23), window brightness (0 to 14), message speed (0 to 2), voice sounds and auto-sleep (0 or 1). |
Sint8 | optionCount [5] | Each setting's values: 24, 15, 3, 2 and 2; it wraps. |
Uint8 | unusedAfterOptions [6] | |
MENU_CURSOR_REF | cursor | |
MENU_CURSOR_REF | marker [2] | The hue and brightness sliders' |
Uint8 | unusedAfterMarkers [24] | markers. |
struct WINDOW_SPR * | choiceIcons [3][3] | Each choice's icon for message speed, voice sounds and auto-sleep (options 2 to 4); the chosen one pulses. |
struct WINDOW_SPR * | icon [6] | The Pause menu's entries' icons. |
Description
The settings menu's state (HEAP_SLOT_SETTINGS_MENU): the settings being
edited and how many values each takes, the row the cursor is on, and the
cursor, markers and icons. The Pause menu uses its row and icons too, and the
debug menus take it for their own cursor.
struct SETTINGS_MENU_STATE
Referenced by mnDebugMenuInit(), mnDebugMenuOpen(), mnDebugMenuRun(), mnDebugMenuStepCursor(), mnDebugShortcutInit(), mnDebugShortcutOpen(), mnDebugShortcutRun(), mnDebugShortcutStepCursor(), mnDebugSoundTestInit(), mnDebugSoundTestOpen(), mnDebugSoundTestRun(), mnDebugSoundTestStepCursor(), mnDebugWarpInit(), mnDebugWarpOpen(), mnDebugWarpRun(), mnDebugWarpStepCursor(), mnPauseMenuAnimateCursor(), mnPauseMenuChoose(), mnPauseMenuInit(), mnPauseMenuOpen(), mnSettingsMenuAnimateCursors(), mnSettingsMenuInitState(), mnSettingsMenuOpen() and mnSettingsMenuRun().
Definition at line 17 of file settings_menu.h.
Fields in detail
unused
Uint8 unused[1024]
Unused: nothing in this game reads these. The Broken Seal keeps seven
52-byte option entries in entries (OPTION_MENU_ENTRY,
games/tbs/src/window/window_settings_menu.c).
entries
Uint8 entries[7][52]
unusedAfterEntries
Uint8 unusedAfterEntries[8]
page
Uint16 page
The row the cursor is on: on the settings menu 0 to 4, indexing option and optionCount; on the Pause menu its entry, indexing icon.
tint
Uint16 tint[3]
The window tint's red, green and blue, 0 to 31.
cursorFrame
Uint16 cursorFrame
Ticks counted; its low three bits pick the picture of the marker of the slider in use.
preset
Uint16 preset
The colour preset SELECT last chose, 0 to
unusedAfterPreset
Uint8 unusedAfterPreset[20]
5, from SettingsMenuHuePresets and
SettingsMenuBrightnessPresets.
option
Sint8 option[5]
The settings being edited: window hue (0 to 23), window brightness (0 to 14), message speed (0 to 2), voice sounds and auto-sleep (0 or 1).
optionCount
Sint8 optionCount[5]
Each setting's values: 24, 15, 3, 2 and 2; it wraps.
unusedAfterOptions
Uint8 unusedAfterOptions[6]
cursor
MENU_CURSOR_REF cursor
marker
MENU_CURSOR_REF marker[2]
The hue and brightness sliders'
unusedAfterMarkers
Uint8 unusedAfterMarkers[24]
markers.
choiceIcons
struct WINDOW_SPR *choiceIcons[3][3]
Each choice's icon for message speed, voice sounds and auto-sleep (options 2 to 4); the chosen one pulses.
icon
struct WINDOW_SPR *icon[6]
The Pause menu's entries' icons.