include/shop/stubs.h
The stub calls into the shop module, as the other modules' code calls them.
Included by menu_internal.h and window_internal.h.
Functions
| Name | Description | |
|---|---|---|
void | mnCursorAdvanceStub (struct MENU_CURSOR *cursor) | Moves a menu cursor a tick along its straight line toward its target (mnCursorAdvance). |
void | mnCursorMoveTowardTargetStub (struct MENU_CURSOR *cursor) | Moves a menu cursor a quarter of the way to its target, at least a pixel (mnCursorMoveTowardTarget). |
void | mnCursorSetStub (void *cursor, Sint32 x, Sint32 y, Sint32 ticks) | Moves a menu cursor to (x, y), gliding as ticks says. |
void | mnCursorSetPosImmediateStub (void *cursor, Sint32 x, Sint32 y) | Places a menu cursor at (x, y) at once. |
void | mnShopSaveAndTintFieldPaletteStub (Sint32 tint) | Saves the field's background colours in the field state and tints them by tint (a fdPaletteFadeBuild mode, PALETTE_TINT_CUSTOM with a colour) over 16 ticks. |
void | mnShopRestoreFieldPaletteStub (void) | Fades back to the colours mnShopSaveAndTintFieldPaletteStub saved, over 16 ticks. |
void | mnVRAMBlockLoadResourceStub (Sint32 entryId, Sint32 size, Sint32 resourceId) | Decompresses resource resourceId and loads its first size bytes into VRAM cache entry entryId. |
Description
The stub calls into the shop module, as the other modules' code calls them.
Functions in detail
mnCursorAdvanceStub
void mnCursorAdvanceStub(struct MENU_CURSOR *cursor)
Moves a menu cursor a tick along its straight line toward its target
(mnCursorAdvance).
Referenced by mnDebugMenuStepCursor(), mnDebugShortcutStepCursor(), mnDebugSoundTestStepCursor(), mnDebugWarpStepCursor(), mnNameEntryEditMemberName(), mnPauseMenuAnimateCursor() and mnSettingsMenuAnimateCursors().
Definition at line 12 of file stubs.h.
mnCursorMoveTowardTargetStub
void mnCursorMoveTowardTargetStub(struct MENU_CURSOR *cursor)
Moves a menu cursor a quarter of the way to its target, at least a pixel
(mnCursorMoveTowardTarget).
Referenced by mnNameEntryEditMemberName() and mnSettingsMenuAnimateCursors().
Definition at line 16 of file stubs.h.
mnCursorSetStub
void mnCursorSetStub(void *cursor, Sint32 x, Sint32 y, Sint32 ticks)
Moves a menu cursor to (x, y), gliding as ticks says.
Referenced by mnDebugMenuRun(), mnDebugShortcutRun(), mnDebugSoundTestRun(), mnDebugWarpRun(), mnNameEntryEditMemberName(), mnPauseMenuChoose() and mnSettingsMenuRun().
Definition at line 19 of file stubs.h.
mnCursorSetPosImmediateStub
void mnCursorSetPosImmediateStub(void *cursor, Sint32 x, Sint32 y)
Places a menu cursor at (x, y) at once.
Referenced by mnDebugMenuRun(), mnDebugShortcutRun(), mnDebugSoundTestOpen(), mnDebugWarpRun(), mnNameEntryEditMemberName(), mnPauseMenuChoose() and mnSettingsMenuOpen().
Definition at line 22 of file stubs.h.
mnShopSaveAndTintFieldPaletteStub
void mnShopSaveAndTintFieldPaletteStub(Sint32 tint)
Saves the field's background colours in the field state and tints them by
tint (a fdPaletteFadeBuild mode, PALETTE_TINT_CUSTOM with a colour) over 16
ticks.
Referenced by fdDjinnRunJupiterJoinEffect(), fdDjinnRunMarsJoinEffect(), fdDjinnRunMercuryJoinEffect() and fdDjinnRunVenusJoinEffect().
Definition at line 27 of file stubs.h.
mnShopRestoreFieldPaletteStub
void mnShopRestoreFieldPaletteStub(void)
Fades back to the colours mnShopSaveAndTintFieldPaletteStub saved, over 16
ticks.
Referenced by fdDjinnRunJupiterJoinEffect(), fdDjinnRunMarsJoinEffect(), fdDjinnRunMercuryJoinEffect() and fdDjinnRunVenusJoinEffect().
Definition at line 30 of file stubs.h.
mnVRAMBlockLoadResourceStub
void mnVRAMBlockLoadResourceStub(Sint32 entryId, Sint32 size, Sint32 resourceId)
Decompresses resource resourceId and loads its first size bytes into VRAM
cache entry entryId.
Referenced by mnCursorCreate(), mnIconCreateHandCursor(), mnLoadDjinnArrows(), mnLoadStatArrows(), mnNameCaretLoadIntoSlot(), mnNameEntryEditMemberName(), mnOpenBackdropScreen(), mnPointingHandLoadIntoFreeSlot() and mnPointingHandLoadIntoSlot().
Definition at line 34 of file stubs.h.