Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
message_window.c File Reference

CARDGAME's message and menu windows, and the hand's spacing. More...

Include dependency graph for message_window.c:

Go to the source code of this file.

Functions

void CARDGAME_drawMessageFrame (CardScreen *screen, CardScreenItems *items, s16 scale, s32 x, s32 y)
 Draws the message window's frame at a scale.
 
void CARDGAME_drawMessageMark (CardScreen *screen, CardScreenItems *items, s32 x, s32 y)
 Draws sprite 0x18 of the message window.
 
static void showMessagePrompt (CardScreen *screen, CardScreenItems *items)
 Shows the message window's prompt and cursor, or hides them when it has no prompt.
 
static void showMessageText (CardScreen *screen, CardScreenItems *items)
 Shows the message window's text: an item's name, the message with its wins or opponent numbers, or nothing.
 
void CARDGAME_updateMessageWindow (CardScreen *screen, CardScreenItems *items)
 The message window: it opens at its place, shows its prompt (showMessagePrompt) and message (showMessageText) with the cursor, then closes.
 
void CARDGAME_drawMenuFrame (CardScreen *screen, CardScreenItems *items, s16 scale, s32 x, s32 y)
 Draws the menu window's frame at a scale.
 
void CARDGAME_updateMenuWindow (CardScreen *screen, CardScreenItems *items)
 A menu window (CardScreen.menuState): it opens, shows text file 0x10 with the cursor on menuRow, then closes.
 
s32 CARDGAME_getHandOffset (s32 count, s32 index)
 CardScreen.getHandOffset: how far the hand's card index is from its first: 0x2900 a card up to six cards, else count share 0xF600.
 

Detailed Description

CARDGAME's message and menu windows, and the hand's spacing.

Definition in file message_window.c.

Function Documentation

◆ CARDGAME_drawMessageFrame()

void CARDGAME_drawMessageFrame ( CardScreen *  screen,
CardScreenItems *  items,
s16  scale,
s32  x,
s32  y 
)

Draws the message window's frame at a scale.

Definition at line 6 of file message_window.c.

Referenced by CARDGAME_updateMessageWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_drawMessageMark()

void CARDGAME_drawMessageMark ( CardScreen *  screen,
CardScreenItems *  items,
s32  x,
s32  y 
)

Draws sprite 0x18 of the message window.

Definition at line 18 of file message_window.c.

Referenced by CARDGAME_updateMessageWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showMessagePrompt()

static void showMessagePrompt ( CardScreen *  screen,
CardScreenItems *  items 
)
inlinestatic

Shows the message window's prompt and cursor, or hides them when it has no prompt.

< CARDGM: the card battle's

< CARDGM: the card battle's

< what is unavailable

< CARDGM: the card battle's

Definition at line 30 of file message_window.c.

Referenced by CARDGAME_updateMessageWindow().

Here is the caller graph for this function:

◆ showMessageText()

static void showMessageText ( CardScreen *  screen,
CardScreenItems *  items 
)
inlinestatic

Shows the message window's text: an item's name, the message with its wins or opponent numbers, or nothing.

< CARDGM: the card battle's

< ITMNAM

< CARDGM: the card battle's

< CARDGM: the card battle's

< CRDDEK

Definition at line 73 of file message_window.c.

Referenced by CARDGAME_updateMessageWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_updateMessageWindow()

void CARDGAME_updateMessageWindow ( CardScreen *  screen,
CardScreenItems *  items 
)

The message window: it opens at its place, shows its prompt (showMessagePrompt) and message (showMessageText) with the cursor, then closes.

Definition at line 110 of file message_window.c.

Referenced by CARDGAME_updateScreen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_drawMenuFrame()

void CARDGAME_drawMenuFrame ( CardScreen *  screen,
CardScreenItems *  items,
s16  scale,
s32  x,
s32  y 
)

Draws the menu window's frame at a scale.

Definition at line 170 of file message_window.c.

Referenced by CARDGAME_updateMenuWindow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_updateMenuWindow()

void CARDGAME_updateMenuWindow ( CardScreen *  screen,
CardScreenItems *  items 
)

A menu window (CardScreen.menuState): it opens, shows text file 0x10 with the cursor on menuRow, then closes.

< CARDGM: the card battle's

Definition at line 183 of file message_window.c.

Referenced by CARDGAME_updateScreen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CARDGAME_getHandOffset()

s32 CARDGAME_getHandOffset ( s32  count,
s32  index 
)

CardScreen.getHandOffset: how far the hand's card index is from its first: 0x2900 a card up to six cards, else count share 0xF600.

Definition at line 234 of file message_window.c.

Referenced by CARDGAME_createScreen(), and CARDGAME_dealSprites().

Here is the caller graph for this function: