Skip to Content
The Alchemy Project

struct SETTINGS_MENU_STATE

The settings menu's state (heap block 20): the settings being edited and how many values each takes, the page, and the cursor, markers and icons.

Declared in settings_menu.h.

Fields

NameDescription
Uint8unused [1024]
Uint8entries [7][52]Seven 52-byte entries (OPTION_MENU_ENTRY
Uint8unusedAfterEntries [8]in window_settings_menu.c), whose state only the unused mnSettingsMenuResetEntries writes.
Uint16pageThe row the cursor is on: on the settings menu 0 to 4, indexing option and optionCount; on the Pause menu its entry, indexing icon.
Uint16tint [3]the window tint's red, green and blue, 0 to 31
Uint16cursorFrameTicks counted; its low three bits pick the picture of the marker of the slider in use.
Uint16presetThe colour preset SELECT last chose, 0 to
Uint8unusedAfterPreset [20]5, from SettingsMenuHuePresets and SettingsMenuBrightnessPresets.
Sint8option [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).
Sint8optionCount [5]each setting's values: 24, 15, 3, 2 and 2; it wraps
Uint8unusedAfterOptions [6]
MENU_CURSOR_REFcursor
MENU_CURSOR_REFmarker [2]
Uint8unusedAfterMarkers [24]
WINDOW_SPR *choiceIcons [3][3]Each choice's icon for message speed,
WINDOW_SPR *icon [6]voice sounds and auto-sleep (options 2 to 4); the chosen one pulses.

Description

The settings menu's state (heap block 20): the settings being edited and how many values each takes, the page, and the cursor, markers and icons.

struct SETTINGS_MENU_STATE

Referenced by mnPauseMenuAnimateCursor(), mnPauseMenuChoose(), mnPauseMenuInit(), mnPauseMenuOpen(), mnSettingsMenuAnimateCursors(), mnSettingsMenuInitState(), mnSettingsMenuLowerSetting(), mnSettingsMenuNextRow(), mnSettingsMenuOpen(), mnSettingsMenuPreviousRow(), mnSettingsMenuRaiseSetting(), mnSettingsMenuResetEntries(), mnSettingsMenuRun(), mnWindowColorCalculateTint(), mnWindowColorScaleTint() and mnWindowColorWritePalette().

Definition at line 16 of file settings_menu.h.

Fields in detail

unused

Uint8 unused[1024]

entries

Uint8 entries[7][52]

Seven 52-byte entries (OPTION_MENU_ENTRY

unusedAfterEntries

Uint8 unusedAfterEntries[8]

in window_settings_menu.c), whose state only the unused mnSettingsMenuResetEntries writes.

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]

unusedAfterMarkers

Uint8 unusedAfterMarkers[24]

choiceIcons

WINDOW_SPR *choiceIcons[3][3]

Each choice's icon for message speed,

icon

WINDOW_SPR *icon[6]

voice sounds and auto-sleep (options 2 to 4); the chosen one pulses.