src/window/scales.c
Sprite scales, motion curves and lookup tables of the window and menu code, the sound test's labels and the debug warps' names; The Broken Seal's scales.c.
#include "sprite_ids.h"#include "game/character_ids.h"#include "window/settings_menu.h"#include "window/window.h"#include "macros.h"
Variables
| Name | Description | |
|---|---|---|
const Uint16 | WindowSpriteBounceScales [32] | A sprite's pulse, as a scale where 256 is its normal size: it swells to 1.5 times and back over 32 steps (window_sprites.c). |
const Sint8 | WindowSpriteBounceScalesTail [8] | Nothing in the game reads these eight offsets, as in The Broken Seal. |
const Sint8 | MenuCursorBobOffsets [16] | The selection cursor's bob: a 16-step wave of up to 3 pixels each way. |
const Uint8 | WindowColorWaveTable [96] | The window colour wheel: one colour channel's level (0 to 31) by hue step, fading out, resting and fading in; The Broken Seal's 25 further steps are gone. |
const Sint8 | SettingsMenuSpeedIcons [3] | The settings menu's command icons for each setting's choices: message speed Slow, Normal and Fast. |
const Sint8 | SettingsMenuSpeechIcons [2] | Speech Off and On. |
const Sint8 | SettingsMenuSleepIcons [2] | Auto-Sleep Off and On. |
const Uint8 | SettingsMenuHuePresets [6] | The window colour presets SELECT cycles through on the settings menu: the colour (hue, 0 to 23) of each. |
const Uint8 | SettingsMenuBrightnessPresets [6] | The brightness (0 to 14, 7 neutral) of each preset. |
const Sint8 | PauseMenuIcons [8] | The command icon of each entry in the Pause menu: Save your quest, Sleep and Change settings, then the debug mode's Rough menu, Debug menu and Restart quest, all three with the Drop icon. |
const SOUND_TEST_VALUES | DebugSoundTestStartValues | The sound test's starting music, jingle, sound effect and sound preset. |
const Uint8 | SoundTestMusicString [] | The sound test's row labels: music, jingle, sound effect and sound preset. |
const Uint8 | SoundTestJingleString [] | |
const Uint8 | SoundTestSeString [] | |
const Uint8 | SoundTestPresetString [] | |
const Uint8 | DebugWarpKaoruSpecial1Name [] | The debug warp menu's row names (DebugWarpPresets), last first. |
const Uint8 | DebugWarpKaoruSpecial2Name [] | |
const Uint8 | DebugWarpKaoruSpecial3Name [] | |
const Uint8 | DebugWarpKaoruSpecial4Name [] | |
const Uint8 | DebugWarpChampa2Name [] | |
const Uint8 | DebugWarpArafura3Name [] | |
const Uint8 | DebugWarpEnergySampleName [] | |
const Uint8 | DebugWarpArafura2Name [] | |
const Uint8 | DebugWarpJupiterName [] | |
const Uint8 | DebugShortcutNoAbilityName [] | An empty ability's name, which the debug menu draws. |
const Sint16 | PortraitCharacterMap [18] | {character, portrait} pairs of the playable characters, ending in -1, which the speaker's portrait lookup searches first. |
Description
Sprite scales, motion curves and lookup tables of the window and menu code,
the sound test's labels and the debug warps' names; The Broken Seal's
scales.c.
Variables in detail
WindowSpriteBounceScales
const Uint16 WindowSpriteBounceScales[32]
A sprite's pulse, as a scale where 256 is its normal size: it swells to 1.5 times and back over
32 steps (window_sprites.c).
Referenced by mnBattleCommandRowRun(), mnIconMenuDrawIcons() and mnWindowSpriteUpdateScaleAnimation().
Definition at line 15 of file scales.c.
WindowSpriteBounceScalesTail
const Sint8 WindowSpriteBounceScalesTail[8]
Nothing in the game reads these eight offsets, as in The Broken Seal.
Definition at line 23 of file scales.c.
MenuCursorBobOffsets
const Sint8 MenuCursorBobOffsets[16]
The selection cursor's bob: a 16-step wave of up to 3 pixels each way.
Referenced by mnSelectionMenuDraw().
Definition at line 28 of file scales.c.
WindowColorWaveTable
const Uint8 WindowColorWaveTable[96]
The window colour wheel: one colour channel's level (0 to 31) by hue step, fading out, resting and fading in; The Broken Seal's 25 further steps are gone.
Referenced by mnWindowColorApply().
Definition at line 34 of file scales.c.
SettingsMenuSpeedIcons
const Sint8 SettingsMenuSpeedIcons[3]
The settings menu's command icons for each setting's choices: message speed Slow, Normal and Fast.
Referenced by mnSettingsMenuOpen() and mnSettingsMenuRun().
Definition at line 45 of file scales.c.
SettingsMenuSpeechIcons
const Sint8 SettingsMenuSpeechIcons[2]
Speech Off and On.
Referenced by mnSettingsMenuOpen() and mnSettingsMenuRun().
Definition at line 52 of file scales.c.
SettingsMenuSleepIcons
const Sint8 SettingsMenuSleepIcons[2]
Auto-Sleep Off and On.
Referenced by mnSettingsMenuOpen() and mnSettingsMenuRun().
Definition at line 58 of file scales.c.
SettingsMenuHuePresets
const Uint8 SettingsMenuHuePresets[6]
The window colour presets SELECT cycles through on the settings menu: the colour (hue, 0 to 23) of each.
Referenced by mnSettingsMenuRun().
Definition at line 65 of file scales.c.
SettingsMenuBrightnessPresets
const Uint8 SettingsMenuBrightnessPresets[6]
The brightness (0 to 14, 7 neutral) of each preset.
Referenced by mnSettingsMenuRun().
Definition at line 70 of file scales.c.
PauseMenuIcons
const Sint8 PauseMenuIcons[8]
The command icon of each entry in the Pause menu: Save your quest, Sleep and Change settings, then the debug mode's Rough menu, Debug menu and Restart quest, all three with the Drop icon. The last two rows are never shown.
Referenced by mnPauseMenuChoose() and mnPauseMenuOpen().
Definition at line 77 of file scales.c.
DebugSoundTestStartValues
const SOUND_TEST_VALUES DebugSoundTestStartValues
The sound test's starting music, jingle, sound effect and sound preset.
Referenced by mnDebugSoundTestRun().
Definition at line 86 of file scales.c.
SoundTestMusicString
const Uint8 SoundTestMusicString[]
The sound test's row labels: music, jingle, sound effect and sound preset.
Referenced by mnDebugSoundTestRun().
Definition at line 91 of file scales.c.
SoundTestJingleString
const Uint8 SoundTestJingleString[]
Referenced by mnDebugSoundTestRun() and SoundTestMusicString.
Definition at line 92 of file scales.c.
SoundTestSeString
const Uint8 SoundTestSeString[]
Referenced by mnDebugSoundTestRun() and SoundTestMusicString.
Definition at line 93 of file scales.c.
SoundTestPresetString
const Uint8 SoundTestPresetString[]
Referenced by mnDebugSoundTestRun() and SoundTestMusicString.
Definition at line 94 of file scales.c.
DebugWarpKaoruSpecial1Name
const Uint8 DebugWarpKaoruSpecial1Name[]
The debug warp menu's row names (DebugWarpPresets), last first.
Referenced by DebugWarpPresets.
Definition at line 97 of file scales.c.
DebugWarpKaoruSpecial2Name
const Uint8 DebugWarpKaoruSpecial2Name[]
Referenced by DebugWarpPresets.
Definition at line 98 of file scales.c.
DebugWarpKaoruSpecial3Name
const Uint8 DebugWarpKaoruSpecial3Name[]
Referenced by DebugWarpPresets.
Definition at line 99 of file scales.c.
DebugWarpKaoruSpecial4Name
const Uint8 DebugWarpKaoruSpecial4Name[]
Referenced by DebugWarpPresets.
Definition at line 100 of file scales.c.
DebugWarpChampa2Name
const Uint8 DebugWarpChampa2Name[]
Referenced by DebugWarpPresets.
Definition at line 101 of file scales.c.
DebugWarpArafura3Name
const Uint8 DebugWarpArafura3Name[]
Referenced by DebugWarpPresets.
Definition at line 102 of file scales.c.
DebugWarpEnergySampleName
const Uint8 DebugWarpEnergySampleName[]
Referenced by DebugWarpPresets.
Definition at line 103 of file scales.c.
DebugWarpArafura2Name
const Uint8 DebugWarpArafura2Name[]
Referenced by DebugWarpPresets.
Definition at line 104 of file scales.c.
DebugWarpJupiterName
const Uint8 DebugWarpJupiterName[]
Referenced by DebugWarpPresets.
Definition at line 105 of file scales.c.
DebugShortcutNoAbilityName
const Uint8 DebugShortcutNoAbilityName[]
An empty ability's name, which the debug menu draws.
Referenced by mnDebugShortcutDrawAbility().
Definition at line 108 of file scales.c.
PortraitCharacterMap
const Sint16 PortraitCharacterMap[18]
{character, portrait} pairs of the playable characters, ending in -1, which the speaker's portrait lookup searches first.
Referenced by mnDebugBrowserPortraits() and mnPortraitGetForSpeaker().
Definition at line 114 of file scales.c.