src/window/screens_icon_menu.c
The command icon menus of the field, title and transfer screens. More…
Included by screens.c.
Macros
| Name | Description | |
|---|---|---|
#define | TRANSFER_MODE_DRAW_HELP | How the transfer method's help is drawn ("Use a password to..." and "Use a Game Link cable to connect..."), and where its lines go, in pixels. |
#define | TRANSFER_PASSWORD_HELP_X GERMAN_OR(32, PASSWORD_HELP_X) | |
#define | TRANSFER_PASSWORD_HELP_FIRST_Y GERMAN_OR(8, 4) | |
#define | TRANSFER_PASSWORD_HELP_LAST_Y GERMAN_OR(24, 16) | |
#define | TRANSFER_CABLE_HELP_FIRST_Y GERMAN_OR(0, 4) | |
#define | TRANSFER_CABLE_HELP_LAST_Y GERMAN_OR(32, 28) | |
#define | TRANSFER_CABLE_HELP_SECOND_Y 16 | The y of the cable help's second line, in pixels, in every edition. |
#define | ICON_MENU_BOTTOM_ROW 17 | The icon menus' bottom row, in tiles, where most of them stand; a Yes or No may stand at the top, row 0, instead. |
#define | ICON_ROW_LINES 24 | The lines an icon row covers: its label window's three tiles. |
#define | ICON_MENU_MAX_ICONS ((Sint32)ARRAY_COUNT(IconMenuStateWork->entries)) | The most icons a menu shows, and so the row length of FileListActionByPosition, which has an action for each place. |
#define | PULSE_OVERHANG_X (scale) ((((scale) - Q_8_8(1)) * 12 + 255) / 256) | How far the selected icon overhangs its place while it pulses at the 8.8 scale: on each side, half its 24-pixel width grown by the scale, rounded up; and past its row, half its 32-pixel height grown by the scale, rounded, and a line more. |
#define | PULSE_OVERHANG_LINES (scale) | |
#define | FIELD_COMMAND_LABEL_WIDTH JAPANESE_OR(5, 7) | The width of the field command menu's label window, in tiles. |
#define | MODE_LABEL_X JAPANESE_OR(8, 18) | The x of the list of what a password level carries, and the right edge of the area cleared for it, in pixels. |
#define | MODE_LABEL_RIGHT JAPANESE_OR(80, 144) | |
#define | PASSWORD_HELP_X JAPANESE_OR(0, 16) | The x of the password transfer's help lines, in pixels. |
#define | PAIR_WIDTH BY_LANGUAGE(7, 9, 9, 9, 10, 10) | The width of the label window under Coins and Lucky Medals, fitted to each language's text. |
Enumerations
| Name | Description | |
|---|---|---|
enum | FILE_ACTION_ROW { FILE_ROW_SOME, FILE_ROW_FULL, FILE_ROW_FULL_CLEARED, FILE_RO … } | The File Screen's rows of icons, by the files saved, each a row of FileListActionByPosition. |
Functions
| Name | Description | |
|---|---|---|
void | mnIconMenuDrawIcons (void) | Draws the icon menu's icons, an event of the icon menus (mnIconMenuOpen). |
void * | mnIconMenuOpen (void) | Allocates and clears the icon menu's state, which lives in HEAP_SLOT_ICON_MENU until mnIconMenuClose frees it, and starts the event that draws its icons. |
void | mnIconMenuClose (void) | Stops drawing the icons, closes the label window and releases each loaded icon before freeing the icon menu's state (HEAP_SLOT_ICON_MENU), then waits a tick. |
Sint32 | mnIconMenuRun (Sint32 init) | Selects an icon position with wrapped directional input. |
static inline Sint32 | mnAbsoluteDifference (Sint32 difference, Sint32 lhs, Sint32 rhs) | Returns the distance between lhs and rhs, reusing their supplied difference. |
Sint32 | mnIconMenuAnimateTo (Sint32 start, Sint32 goal) | Moves the selection from start to goal one icon at a time with the cursor sound, redrawing the label each step and waiting MenuSelectionStepDelays[icons still to go] ticks at each (12 more at the first), then 48 ticks on the goal before the confirm sound: a menu choice made for the player to watch (mnAnimateSelectionToEntry). |
void | mnCommandIconLoadIntoSlot (Sint32 slot, Sint32 index) | Decodes command icon index into the VRAM cache entry slot, through a block it allocates and frees. |
void | mnIconMenuAddIcon (Sint32 icon) | Appends a command icon if fewer than ICON_MENU_MAX_ICONS are present. |
void | mnIconMenuCenter (Sint32 row, Sint32 width, Sint32 resourceBase) | Centres the icons and their label window together on tile row row. |
void | mnIconMenuLayoutIcons (Sint32 x, Sint32 y, Sint32 width, Sint32 resourceBase) | Places the icons three tiles apart from tile (x, y), then opens their label window, width + 2 tiles wide, just after them. |
static __inline__ Sint32 | mnIconMenuReadCommandPos (Sint8 *table, Sint32 index) | Reads the signed command-position mapping used by the icon menu. |
Sint32 | mnFieldMenuSelectCommand (Sint32 selection) | The field menu's row of icons: Psynergy, Djinn, Item and Status, without Djinn when the party has none. |
Sint32 | mnAnimateSelectionToEntry (Sint32 start, Sint32 command) | Opens the field command menu and animates from start to the command's icon. |
Sint32 | mnFileListSelectAction (void) | The File Screen's row of icons, from the save summaries: New Game, Continue, Copy and Erase for one or two files (starting on Continue); no New Game or Copy with three; with every file cleared no Continue, and only Erase with three such files; then Battle and Send when they are enabled. |
void | mnPasswordLevelDrawHelp (void) | An event of the password level menu: when the selection moves, lists what that level's password carries, from MsgPasswordLevel on: Gold "Level", "Djinn", "Character stats", "Items" and "Coins", Silver the first three, Bronze the first two. |
void | mnTransferMethodDrawHelp (void) | An event of the transfer method menu: when the selection moves between Password and Cable, explains the one chosen. |
Sint32 | mnIconMenuChooseSendOption (Sint32 menu) | Selects either the transfer method or the password level (enum SEND_OPTION_MENU). |
Sint32 | mnSelectShopCommand (Sint32 selection) | Selects a shop command (Buy, Sell, Artifacts, Repair), centred on the bottom row, starting on position selection. |
Sint32 | mnSelectSanctumService (Sint32 selection) | Selects a Sanctum service (Revive, Cure Poison, Repel Evil, Remove Curse), centred on the bottom row, starting on position selection. |
Sint32 | mnYesNoMenuRun (Sint32 bottom, Sint32 msg, Sint32 labelWidth, Sint32 selection) | Selects Yes or No, returning YES or NO; cancelling returns NO. |
Sint32 | mnYesNoMenuRunAt (Sint32 x, Sint32 y, Sint32 selection) | Selects Yes or No with the icons from tile (x, y) and the name window after them, returning YES or NO; cancelling returns NO. |
Sint32 | mnSelectCoinsOrMedals (Sint32 selection) | Selects Coins or Lucky Medals, centred on the bottom row, starting on position selection. |
Description
The command icon menus of the field, title and transfer screens. Part of
screens.c.
Macros in detail
TRANSFER_MODE_DRAW_HELP
#define TRANSFER_MODE_DRAW_HELP
How the transfer method's help is drawn ("Use a password to..." and "Use a Game Link cable to connect..."), and where its lines go, in pixels.
Referenced by mnTransferMethodDrawHelp().
Definition at line 6 of file screens_icon_menu.c.
TRANSFER_PASSWORD_HELP_X
#define TRANSFER_PASSWORD_HELP_X GERMAN_OR(32, PASSWORD_HELP_X)
Referenced by mnTransferMethodDrawHelp().
Definition at line 8 of file screens_icon_menu.c.
TRANSFER_PASSWORD_HELP_FIRST_Y
#define TRANSFER_PASSWORD_HELP_FIRST_Y GERMAN_OR(8, 4)
Referenced by mnTransferMethodDrawHelp().
Definition at line 9 of file screens_icon_menu.c.
TRANSFER_PASSWORD_HELP_LAST_Y
#define TRANSFER_PASSWORD_HELP_LAST_Y GERMAN_OR(24, 16)
Referenced by mnTransferMethodDrawHelp().
Definition at line 10 of file screens_icon_menu.c.
TRANSFER_CABLE_HELP_FIRST_Y
#define TRANSFER_CABLE_HELP_FIRST_Y GERMAN_OR(0, 4)
Referenced by mnTransferMethodDrawHelp().
Definition at line 11 of file screens_icon_menu.c.
TRANSFER_CABLE_HELP_LAST_Y
#define TRANSFER_CABLE_HELP_LAST_Y GERMAN_OR(32, 28)
Referenced by mnTransferMethodDrawHelp().
Definition at line 12 of file screens_icon_menu.c.
TRANSFER_CABLE_HELP_SECOND_Y
#define TRANSFER_CABLE_HELP_SECOND_Y 16
The y of the cable help's second line, in pixels, in every edition.
Referenced by mnTransferMethodDrawHelp().
Definition at line 14 of file screens_icon_menu.c.
ICON_MENU_BOTTOM_ROW
#define ICON_MENU_BOTTOM_ROW 17
The icon menus' bottom row, in tiles, where most of them stand; a Yes or No may stand at the top, row 0, instead.
Referenced by mnAnimateSelectionToEntry(), mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuAddIcon(), mnIconMenuChooseSendOption(), mnIconMenuDrawIcons(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand() and mnYesNoMenuRun().
Definition at line 18 of file screens_icon_menu.c.
ICON_ROW_LINES
#define ICON_ROW_LINES 24
The lines an icon row covers: its label window's three tiles.
Referenced by mnIconMenuDrawIcons().
Definition at line 20 of file screens_icon_menu.c.
ICON_MENU_MAX_ICONS
#define ICON_MENU_MAX_ICONS ((Sint32)ARRAY_COUNT(IconMenuStateWork->entries))
The most icons a menu shows, and so the row length of
FileListActionByPosition, which has an action for each place.
Referenced by mnFileListSelectAction() and mnIconMenuAddIcon().
Definition at line 23 of file screens_icon_menu.c.
PULSE_OVERHANG_X
#define PULSE_OVERHANG_X(scale) ((((scale) - Q_8_8(1)) * 12 + 255) / 256)
How far the selected icon overhangs its place while it pulses at the 8.8
scale: on each side, half its 24-pixel width grown by the scale, rounded
up; and past its row, half its 32-pixel height grown by the scale, rounded,
and a line more.
Referenced by mnIconMenuDrawIcons().
Definition at line 29 of file screens_icon_menu.c.
PULSE_OVERHANG_LINES
#define PULSE_OVERHANG_LINES(scale)
Referenced by mnIconMenuDrawIcons().
Definition at line 30 of file screens_icon_menu.c.
FIELD_COMMAND_LABEL_WIDTH
#define FIELD_COMMAND_LABEL_WIDTH JAPANESE_OR(5, 7)
The width of the field command menu's label window, in tiles.
Referenced by mnAnimateSelectionToEntry().
Definition at line 476 of file screens_icon_menu.c.
MODE_LABEL_X
#define MODE_LABEL_X JAPANESE_OR(8, 18)
The x of the list of what a password level carries, and the right edge of the area cleared for it, in pixels.
Referenced by mnPasswordLevelDrawHelp().
Definition at line 584 of file screens_icon_menu.c.
MODE_LABEL_RIGHT
#define MODE_LABEL_RIGHT JAPANESE_OR(80, 144)
Referenced by mnPasswordLevelDrawHelp().
Definition at line 585 of file screens_icon_menu.c.
PASSWORD_HELP_X
#define PASSWORD_HELP_X JAPANESE_OR(0, 16)
The x of the password transfer's help lines, in pixels.
Definition at line 649 of file screens_icon_menu.c.
PAIR_WIDTH
#define PAIR_WIDTH BY_LANGUAGE(7, 9, 9, 9, 10, 10)
The width of the label window under Coins and Lucky Medals, fitted to each language's text.
Referenced by mnSelectCoinsOrMedals().
Definition at line 922 of file screens_icon_menu.c.
Enumerations in detail
FILE_ACTION_ROW
enum FILE_ACTION_ROW
The File Screen's rows of icons, by the files saved, each a row of
FileListActionByPosition.
| Enumerator | Value | Description |
|---|---|---|
FILE_ROW_SOME | 0 | one or two files: New Game, Continue, Copy, Erase |
FILE_ROW_FULL | 1 | three files: Continue, Erase |
FILE_ROW_FULL_CLEARED | 2 | three files, all cleared: Erase |
FILE_ROW_CLEARED | 3 | one or two files, all cleared: New Game, Copy, Erase |
Definition at line 497 of file screens_icon_menu.c.
Functions in detail
mnIconMenuDrawIcons
void mnIconMenuDrawIcons(void)
Draws the icon menu's icons, an event of the icon menus (mnIconMenuOpen).
Each icon is a 32x32, 256-colour sprite, and one at x 0 is not drawn; the
selected one pulses, double-size, in front of the others. While a screen
transition runs, it widens window 1 over the icon row so the icons show
through.
References Sint32, state, syOAMAddSpriteAtDepth(), syOAMMatrixAllocateFromTransform(), TickCount, VramCacheEntries and WindowSpriteBounceScales.
Referenced by mnIconMenuClose() and mnIconMenuOpen().
Definition at line 38 of file screens_icon_menu.c.
mnIconMenuOpen
void *mnIconMenuOpen(void)
Allocates and clears the icon menu's state, which lives in
HEAP_SLOT_ICON_MENU until mnIconMenuClose frees it, and starts the event that
draws its icons. Every icon menu starts here.
References mnIconMenuDrawIcons(), state, syHeapSlotAllocateEWRAM() and sySetEvent().
Referenced by mnAnimateSelectionToEntry(), mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand(), mnYesNoMenuRun() and mnYesNoMenuRunAt().
Definition at line 171 of file screens_icon_menu.c.
mnIconMenuClose
void mnIconMenuClose(void)
Stops drawing the icons, closes the label window and releases each loaded
icon before freeing the icon menu's state (HEAP_SLOT_ICON_MENU), then waits a
tick.
References mnIconMenuDrawIcons(), mnWindowClose(), Sint32, state, syCloseEvent(), syHeapSlotRelease(), sySynch() and syVRAMCacheFreeEntry().
Referenced by mnAnimateSelectionToEntry(), mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand(), mnYesNoMenuRun() and mnYesNoMenuRunAt().
Definition at line 184 of file screens_icon_menu.c.
mnIconMenuRun
Sint32 mnIconMenuRun(Sint32 init)
Selects an icon position with wrapped directional input. A returns the position; B or Start returns -1. Redraws the label only after a move: the message labelBase + position when the layout set a labelBase, else the icon's command name.
References mnTextDrawMessageAsTiles(), mnWindowSpritePrepareForRedraw(), PerPush, PerRepeat, Sint32, state, sySoundPlayStub() and sySynch().
Referenced by mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand(), mnYesNoMenuRun() and mnYesNoMenuRunAt().
Definition at line 209 of file screens_icon_menu.c.
mnAbsoluteDifference
static inline Sint32 mnAbsoluteDifference(Sint32 difference, Sint32 lhs, Sint32 rhs)
Returns the distance between lhs and rhs, reusing their supplied difference.
References Sint32.
Referenced by mnIconMenuAnimateTo().
Definition at line 261 of file screens_icon_menu.c.
mnIconMenuAnimateTo
Sint32 mnIconMenuAnimateTo(Sint32 start, Sint32 goal)
Moves the selection from start to goal one icon at a time with the cursor
sound, redrawing the label each step and waiting
MenuSelectionStepDelays[icons still to go] ticks at each (12 more at the
first), then 48 ticks on the goal before the confirm sound: a menu choice
made for the player to watch (mnAnimateSelectionToEntry). Returns goal.
References MenuSelectionStepDelays, mnAbsoluteDifference(), mnTextDrawMessageAsTiles(), mnWindowSpritePrepareForRedraw(), Sint32, state, sySoundPlayStub() and sySynch().
Referenced by mnAnimateSelectionToEntry().
Definition at line 274 of file screens_icon_menu.c.
mnCommandIconLoadIntoSlot
void mnCommandIconLoadIntoSlot(Sint32 slot, Sint32 index)
Decodes command icon index into the VRAM cache entry slot, through a
block it allocates and frees.
References Sint32, syDecompressByteLZ(), syHeapAllocate(), syHeapRelease(), syResourceGetTableEntry() and syVRAMCacheLoad().
Referenced by mnIconMenuAddIcon().
Definition at line 331 of file screens_icon_menu.c.
mnIconMenuAddIcon
void mnIconMenuAddIcon(Sint32 icon)
Appends a command icon if fewer than ICON_MENU_MAX_ICONS are present. It
starts on the bottom row; mnIconMenuCenter or mnIconMenuLayoutIcons places
the row. Its VRAM cache entry is taken unchecked.
References mnCommandIconLoadIntoSlot(), Sint32, state and syVRAMCacheFindFreeEntry().
Referenced by mnAnimateSelectionToEntry(), mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand(), mnYesNoMenuRun() and mnYesNoMenuRunAt().
Definition at line 345 of file screens_icon_menu.c.
mnIconMenuCenter
void mnIconMenuCenter(Sint32 row, Sint32 width, Sint32 resourceBase)
Centres the icons and their label window together on tile row row. A
nonzero resourceBase is the first label message; otherwise each icon is
labelled by its command name. The icons stand three tiles apart and the label
window, width + 2 tiles wide and 3 tall, follows them; the centring counts
two thirds of the window's width.
References mnWindowCreate(), Sint32, state and width.
Referenced by mnAnimateSelectionToEntry(), mnFieldMenuSelectCommand(), mnFileListSelectAction(), mnIconMenuChooseSendOption(), mnSelectCoinsOrMedals(), mnSelectSanctumService(), mnSelectShopCommand() and mnYesNoMenuRun().
Definition at line 373 of file screens_icon_menu.c.
mnIconMenuLayoutIcons
void mnIconMenuLayoutIcons(Sint32 x, Sint32 y, Sint32 width, Sint32 resourceBase)
Places the icons three tiles apart from tile (x, y), then opens their label
window, width + 2 tiles wide, just after them.
References mnWindowCreate(), Sint32, state and width.
Referenced by mnYesNoMenuRunAt().
Definition at line 399 of file screens_icon_menu.c.
mnIconMenuReadCommandPos
static __inline__ Sint32 mnIconMenuReadCommandPos(Sint8 *table, Sint32 index)
Reads the signed command-position mapping used by the icon menu.
References Sint32.
Referenced by mnFieldMenuSelectCommand().
Definition at line 423 of file screens_icon_menu.c.
mnFieldMenuSelectCommand
Sint32 mnFieldMenuSelectCommand(Sint32 selection)
The field menu's row of icons: Psynergy, Djinn, Item and Status, without
Djinn when the party has none. selection is the command to start on and the
result the command chosen (FIELD_MENU_COMMAND), or -1 when cancelled; two
tables turn commands into icon positions and back.
References FieldMenuCommandByPosition, FieldMenuPositionByCommand, gmPartySumDjinnCountsStub(), mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuReadCommandPos(), mnIconMenuRun() and Sint32.
Referenced by mnFieldMenuRun().
Definition at line 432 of file screens_icon_menu.c.
mnAnimateSelectionToEntry
Sint32 mnAnimateSelectionToEntry(Sint32 start, Sint32 command)
Opens the field command menu and animates from start to the command's icon. Returns the final icon position after closing the menu.
References mnIconMenuAddIcon(), mnIconMenuAnimateTo(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnPartyStatusCloseWithMenu(), mnPartyStatusOpenAndWait() and Sint32.
Referenced by scWorldMapExplainSettingDjinn() and scWorldMapMeetFlint().
Definition at line 480 of file screens_icon_menu.c.
mnFileListSelectAction
Sint32 mnFileListSelectAction(void)
The File Screen's row of icons, from the save summaries: New Game, Continue,
Copy and Erase for one or two files (starting on Continue); no New Game or
Copy with three; with every file cleared no Continue, and only Erase with
three such files; then Battle and Send when they are enabled. Returns the
action chosen (FILE_ACTION) by its position. With no files it returns 0 at
once, and -1 when cancelled or the backup memory cannot be read.
References FileListActionByPosition, mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun(), mnSaveScanFileSummaries(), Sint32, TitleBattleOptionEnabled and TitleSendOptionEnabled.
Referenced by scInit().
Definition at line 513 of file screens_icon_menu.c.
mnPasswordLevelDrawHelp
void mnPasswordLevelDrawHelp(void)
An event of the password level menu: when the selection moves, lists what
that level's password carries, from MsgPasswordLevel on: Gold "Level",
"Djinn", "Character stats", "Items" and "Coins", Silver the first three,
Bronze the first two.
References mnTextDrawMessageAsTiles(), mnWindowClearInteriorTiles(), Sint32 and state.
Referenced by mnIconMenuChooseSendOption().
Definition at line 591 of file screens_icon_menu.c.
mnTransferMethodDrawHelp
void mnTransferMethodDrawHelp(void)
An event of the transfer method menu: when the selection moves between Password and Cable, explains the one chosen.
References mnTextDrawMessage(), mnWindowSpriteClearList(), mnWindowSpritePrepareForRedraw() and state.
Referenced by mnIconMenuChooseSendOption().
Definition at lines 658 and 687 of file screens_icon_menu.c.
mnIconMenuChooseSendOption
Sint32 mnIconMenuChooseSendOption(Sint32 menu)
Selects either the transfer method or the password level (enum
SEND_OPTION_MENU).
References mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun(), mnPasswordLevelDrawHelp(), mnTextDrawMessage(), mnTransferMethodDrawHelp(), mnWindowClose(), mnWindowCreate(), mnWindowSpritePrepareForRedraw(), Sint32, state, syCloseEvent(), sySetEvent() and sySynch().
Referenced by scInit().
Definition at line 731 of file screens_icon_menu.c.
mnSelectShopCommand
Sint32 mnSelectShopCommand(Sint32 selection)
Selects a shop command (Buy, Sell, Artifacts, Repair), centred on the bottom
row, starting on position selection.
References mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun() and Sint32.
Definition at line 837 of file screens_icon_menu.c.
mnSelectSanctumService
Sint32 mnSelectSanctumService(Sint32 selection)
Selects a Sanctum service (Revive, Cure Poison, Repel Evil, Remove Curse),
centred on the bottom row, starting on position selection.
References mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun() and Sint32.
Definition at line 854 of file screens_icon_menu.c.
mnYesNoMenuRun
Sint32 mnYesNoMenuRun(Sint32 bottom, Sint32 msg, Sint32 labelWidth, Sint32 selection)
Selects Yes or No, returning YES or NO; cancelling returns NO.
References mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun() and Sint32.
Referenced by mnSaveConfirmAndWriteLinkTallies(), mnSaveEraseSelectedFile(), mnSaveToChosenFile() and scInit().
Definition at line 870 of file screens_icon_menu.c.
mnYesNoMenuRunAt
Sint32 mnYesNoMenuRunAt(Sint32 x, Sint32 y, Sint32 selection)
Selects Yes or No with the icons from tile (x, y) and the name window after them, returning YES or NO; cancelling returns NO.
References mnIconMenuAddIcon(), mnIconMenuClose(), mnIconMenuLayoutIcons(), mnIconMenuOpen(), mnIconMenuRun() and Sint32.
Definition at line 903 of file screens_icon_menu.c.
mnSelectCoinsOrMedals
Sint32 mnSelectCoinsOrMedals(Sint32 selection)
Selects Coins or Lucky Medals, centred on the bottom row, starting on
position selection. Returns the position chosen, or -1 when cancelled.
References mnIconMenuAddIcon(), mnIconMenuCenter(), mnIconMenuClose(), mnIconMenuOpen(), mnIconMenuRun() and Sint32.
Referenced by scTolbiSpringRunSpringGame().
Definition at line 926 of file screens_icon_menu.c.