src/window/window_shortcuts.c
The window that shows the area's name, and removing an item from the party's inventory. More…
Included by window.c.
Functions
| Name | Description | |
|---|---|---|
void | mnAreaNameWindowUpdate (void) | Counts the area name down, and closes it at 0. |
void | mnAreaNameWindowShow (void) | Shows the area's name in a window near the top of the screen for AREA_NAME_WINDOW_TICKS, kept in the field state until mnAreaNameWindowUpdate closes it. |
void | mnAreaNameWindowHide (void) | Closes the area name at once, if it is shown. |
void | gmPartyInventoryRemoveStub (Sint32 item) | Removes one itemId from whoever carries it first. |
Sint32 | mnItemRemoveFromInventory (Sint32 unused, Sint32 itemId) | Removes itemId from the party's inventory and returns 0. |
Description
The window that shows the area's name, and removing an item from the party's
inventory. Part of window.c.
Functions in detail
mnAreaNameWindowUpdate
void mnAreaNameWindowUpdate(void)
Counts the area name down, and closes it at 0.
References mnWindowClose() and syCloseEvent().
Referenced by mnAreaNameWindowHide() and mnAreaNameWindowShow().
Definition at lines 4 and 37 of file window_shortcuts.c.
mnAreaNameWindowShow
void mnAreaNameWindowShow(void)
Shows the area's name in a window near the top of the screen for
AREA_NAME_WINDOW_TICKS, kept in the field state until mnAreaNameWindowUpdate
closes it.
References fdAreaGetNameIndexStub(), MainRoutineStateWork, mnAreaNameWindowUpdate(), mnTextDrawMessage(), mnTextGetMessageSize(), mnWindowCreate(), Sint32 and sySetEvent().
Definition at line 9 of file window_shortcuts.c.
mnAreaNameWindowHide
void mnAreaNameWindowHide(void)
Closes the area name at once, if it is shown.
References mnAreaNameWindowUpdate(), mnWindowClose() and syCloseEvent().
Definition at line 52 of file window_shortcuts.c.
mnItemRemoveFromInventory
Sint32 mnItemRemoveFromInventory(Sint32 unused, Sint32 itemId)
Removes itemId from the party's inventory and returns 0.
References gmPartyInventoryRemoveStub() and Sint32.
Definition at line 67 of file window_shortcuts.c.