Alchemy
Loading...
Searching...
No Matches

shortcuts.c File Reference

The area name notice, the Psynergy shortcut picker and heap block 19. More...

Go to the source code of this file.

Data Structures

struct  TimedNoticeWork
 The area name notice's fields, which live in the event work block. More...
struct  AbilityListEntry
 A Psynergy the debug shortcut picker lists: its owner and the Psynergy. More...
struct  SelectionWorkspace
 The work block of heap slot 19: two icon flags and resources and a window, among fields nothing here uses. More...

Functions

void UiTimedNotice_Create (void)
 Shows the area's name in a window near the top of the screen for 90 frames.
void UiTimedNotice_Tick (void)
 Counts the area name down, and closes it at 0.
void UiTimedNotice_CloseIfActive (void)
 Closes the area name at once, if it is shown.
s32 Item_RemoveFromInventory (s32 unused, s32 itemId)
s32 Item_ReturnTrue (void)
UNUSED void OptionMenu_StepWindowHue (s32 keys)
 Steps the window hue one step: back when keys contains LEFT, on otherwise.
void Debug_SelectAbilityPair (void)
 Lets the player pick two Psynergy shortcuts from all the party's Psynergy, showing each one's cost and description, and stores them in gGameState.firstShortcut and secondShortcut (owner << 10 | Psynergy).
s32 Party_ListPsynergy (struct AbilityListEntry *output)
 Lists every Psynergy of the party's active members as (owner, Psynergy) pairs in output and returns how many.
void Menu_FindShortcutEntries (u32 *firstIndex, u32 *secondIndex, const struct AbilityListEntry *entries)
 Finds the two Psynergy shortcuts in a list from Party_ListPsynergy, and returns their indexes (0 for one not found).
void Menu_RunSelectionHook (void)
 Runs the Psynergy shortcut picker.
UNUSED void Menu_AllocateSelectionWorkspace (void)
 Allocates the work block of heap slot 19 and clears its two icon flags.
UNUSED void Menu_ReleaseSelectionWorkspace (void)
 Closes the window of heap slot 19's work block, frees its two icons and frees the block.

Detailed Description

The area name notice, the Psynergy shortcut picker and heap block 19.

Part of window.c, the window object, compiled only through it.

Definition in file shortcuts.c.

Function Documentation

◆ UiTimedNotice_Create()

void UiTimedNotice_Create ( void )

Shows the area's name in a window near the top of the screen for 90 frames.

The event work owns the window and countdown until the scheduler closes it.

Definition at line 16 of file shortcuts.c.

Referenced by UiTimedNotice_Create().

◆ UiTimedNotice_Tick()

void UiTimedNotice_Tick ( void )

Counts the area name down, and closes it at 0.

Definition at line 42 of file shortcuts.c.

Referenced by UiTimedNotice_CloseIfActive(), UiTimedNotice_Create(), and UiTimedNotice_Tick().

◆ UiTimedNotice_CloseIfActive()

void UiTimedNotice_CloseIfActive ( void )

Closes the area name at once, if it is shown.

Definition at line 55 of file shortcuts.c.

Referenced by UiTimedNotice_CloseIfActive().

◆ Item_RemoveFromInventory()

s32 Item_RemoveFromInventory ( s32 unused,
s32 itemId )

Definition at line 65 of file shortcuts.c.

Referenced by Item_RemoveFromInventory().

◆ Item_ReturnTrue()

s32 Item_ReturnTrue ( void )

Definition at line 70 of file shortcuts.c.

Referenced by Item_ReturnTrue().

◆ OptionMenu_StepWindowHue()

UNUSED void OptionMenu_StepWindowHue ( s32 keys)

Steps the window hue one step: back when keys contains LEFT, on otherwise.

Nothing calls it.

Definition at line 75 of file shortcuts.c.

Referenced by OptionMenu_StepWindowHue().

◆ Debug_SelectAbilityPair()

void Debug_SelectAbilityPair ( void )

Lets the player pick two Psynergy shortcuts from all the party's Psynergy, showing each one's cost and description, and stores them in gGameState.firstShortcut and secondShortcut (owner << 10 | Psynergy).

This debug path seeds extra Psynergy before enumerating the party's shortcuts.

Definition at line 95 of file shortcuts.c.

Referenced by Debug_SelectAbilityPair(), and Menu_RunSelectionHook().

◆ Party_ListPsynergy()

s32 Party_ListPsynergy ( struct AbilityListEntry * output)

Lists every Psynergy of the party's active members as (owner, Psynergy) pairs in output and returns how many.

output must hold every owner's nonzero action slots; there is no capacity argument.

Definition at line 233 of file shortcuts.c.

Referenced by Debug_SelectAbilityPair(), and Party_ListPsynergy().

◆ Menu_FindShortcutEntries()

void Menu_FindShortcutEntries ( u32 * firstIndex,
u32 * secondIndex,
const struct AbilityListEntry * entries )

Finds the two Psynergy shortcuts in a list from Party_ListPsynergy, and returns their indexes (0 for one not found).

A shortcut absent from the list falls back to entry 0.

Definition at line 266 of file shortcuts.c.

Referenced by Debug_SelectAbilityPair(), and Menu_FindShortcutEntries().

◆ Menu_RunSelectionHook()

void Menu_RunSelectionHook ( void )

Runs the Psynergy shortcut picker.

Definition at line 291 of file shortcuts.c.

Referenced by Menu_RunSelectionHook().

◆ Menu_AllocateSelectionWorkspace()

UNUSED void Menu_AllocateSelectionWorkspace ( void )

Allocates the work block of heap slot 19 and clears its two icon flags.

Nothing calls it.

Definition at line 309 of file shortcuts.c.

Referenced by Menu_AllocateSelectionWorkspace().

◆ Menu_ReleaseSelectionWorkspace()

UNUSED void Menu_ReleaseSelectionWorkspace ( void )

Closes the window of heap slot 19's work block, frees its two icons and frees the block.

Nothing calls it.

Definition at line 322 of file shortcuts.c.

Referenced by Menu_ReleaseSelectionWorkspace().