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

The deck screen: the three decks and the options to edit or rename one; the files it loads; and the panels' openings and moves. More...

Include dependency graph for screen.c:

Go to the source code of this file.

Functions

void STCRDDEK_createScreenWindows (DeckScreen *task, DeckScreenChildren *children)
 The title, each deck's name and six counts, the two options and the cursor, then every window from the title on takes the cursor's depth.
 
void STCRDDEK_showDeckRow (DeckScreen *task, DeckScreenChildren *children, s32 deck, s32 show)
 Shows a deck's row: its name and how many cards of each kind it has, or hides it.
 
void STCRDDEK_drawScreen (DeckScreen *task)
 Draws the screen: the background scrolling diagonally, the title panel, the decks' rows, the options' panel and the frame on the deck under the cursor (glowing until it is chosen), as they open.
 
void STCRDDEK_countCardKinds (DeckScreen *task)
 Counts how many cards of each kind (their color) each of the three decks has.
 
static void STCRDDEK_chooseDeck (DeckScreen *task, DeckScreenChildren *children)
 Up/down choose one of the three decks; cross offers what to do with it, triangle leaves the screen.
 
static void STCRDDEK_openDeckOptions (DeckScreen *task, DeckScreenChildren *children)
 Once the options' panel has opened: shows edit folder and change name, the cursor on edit.
 
static void STCRDDEK_chooseDeckOption (DeckScreen *task, DeckScreenChildren *children)
 Up/down choose to edit the deck or to rename it; cross closes the decks' rows to open it, triangle goes back to the decks.
 
static void STCRDDEK_startClosingRows (DeckScreen *task, DeckScreenChildren *children)
 Closes the decks' rows, from the last, to open the editor or the name entry (step set): the cursor stays frozen on the chosen option.
 
static void STCRDDEK_closeFirstRow (DeckScreen *task, DeckScreenChildren *children)
 Once the second deck's row has closed: hides the options (the title, step unset) and closes the first deck's row.
 
static void STCRDDEK_openChosen (DeckScreen *task, DeckScreenChildren *children)
 Once the rows have closed: opens the editor or the name entry for the chosen deck and waits for it; after the fade out of triangle (step unset), ends the screen.
 
void STCRDDEK_stepScreen (DeckScreen *task, DeckScreenChildren *children)
 The screen's states: opens the title and the decks' rows; cross on a deck offers to edit or rename it, closing the rows to open the editor or the name entry; triangle fades the screen out to leave.
 
void STCRDDEK_updateScreen (DeckScreen *task, DeckScreenChildren *children)
 The screen's task: loads its files and creates its windows, then runs it; waits for the editor or the name entry (saving the deck's new name), then opens again; returns to the previous mode when it ends.
 
DeckScreen * STCRDDEK_createScreen (void)
 Creates the deck screen (task)
 
void STCRDDEK_loadFiles (void)
 Loads the screen's textures and requests the card images, the card texts and the keyboard.
 
s32 STCRDDEK_filesLoading (void)
 Whether the texts or the keyboard are still loading (the card images aren't waited for)
 

Detailed Description

The deck screen: the three decks and the options to edit or rename one; the files it loads; and the panels' openings and moves.

Definition in file screen.c.

Function Documentation

◆ STCRDDEK_createScreenWindows()

void STCRDDEK_createScreenWindows ( DeckScreen *  task,
DeckScreenChildren *  children 
)

The title, each deck's name and six counts, the two options and the cursor, then every window from the title on takes the cursor's depth.

screen.c

Definition at line 8 of file screen.c.

Referenced by STCRDDEK_updateScreen().

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

◆ STCRDDEK_showDeckRow()

void STCRDDEK_showDeckRow ( DeckScreen *  task,
DeckScreenChildren *  children,
s32  deck,
s32  show 
)

Shows a deck's row: its name and how many cards of each kind it has, or hides it.

Definition at line 36 of file screen.c.

Referenced by STCRDDEK_closeFirstRow(), STCRDDEK_startClosingRows(), and STCRDDEK_stepScreen().

Here is the caller graph for this function:

◆ STCRDDEK_drawScreen()

void STCRDDEK_drawScreen ( DeckScreen *  task)

Draws the screen: the background scrolling diagonally, the title panel, the decks' rows, the options' panel and the frame on the deck under the cursor (glowing until it is chosen), as they open.

< sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< sprite bank

< sprite bank

Definition at line 56 of file screen.c.

Referenced by STCRDDEK_updateScreen().

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

◆ STCRDDEK_countCardKinds()

void STCRDDEK_countCardKinds ( DeckScreen *  task)

Counts how many cards of each kind (their color) each of the three decks has.

Definition at line 116 of file screen.c.

Referenced by STCRDDEK_createScreen(), and STCRDDEK_stepScreen().

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

◆ STCRDDEK_chooseDeck()

static void STCRDDEK_chooseDeck ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Up/down choose one of the three decks; cross offers what to do with it, triangle leaves the screen.

< SYSTEM06

< SYSTEM07

< SYSTEM01

Definition at line 135 of file screen.c.

Referenced by STCRDDEK_stepScreen().

Here is the caller graph for this function:

◆ STCRDDEK_openDeckOptions()

static void STCRDDEK_openDeckOptions ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Once the options' panel has opened: shows edit folder and change name, the cursor on edit.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 161 of file screen.c.

Referenced by STCRDDEK_stepScreen().

Here is the caller graph for this function:

◆ STCRDDEK_chooseDeckOption()

static void STCRDDEK_chooseDeckOption ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Up/down choose to edit the deck or to rename it; cross closes the decks' rows to open it, triangle goes back to the decks.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 174 of file screen.c.

Referenced by STCRDDEK_stepScreen().

Here is the caller graph for this function:

◆ STCRDDEK_startClosingRows()

static void STCRDDEK_startClosingRows ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Closes the decks' rows, from the last, to open the editor or the name entry (step set): the cursor stays frozen on the chosen option.

< what is unavailable

Definition at line 198 of file screen.c.

Referenced by STCRDDEK_stepScreen().

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

◆ STCRDDEK_closeFirstRow()

static void STCRDDEK_closeFirstRow ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Once the second deck's row has closed: hides the options (the title, step unset) and closes the first deck's row.

Definition at line 211 of file screen.c.

Referenced by STCRDDEK_stepScreen().

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

◆ STCRDDEK_openChosen()

static void STCRDDEK_openChosen ( DeckScreen *  task,
DeckScreenChildren *  children 
)
inlinestatic

Once the rows have closed: opens the editor or the name entry for the chosen deck and waits for it; after the fade out of triangle (step unset), ends the screen.

Definition at line 233 of file screen.c.

Referenced by STCRDDEK_stepScreen().

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

◆ STCRDDEK_stepScreen()

void STCRDDEK_stepScreen ( DeckScreen *  task,
DeckScreenChildren *  children 
)

The screen's states: opens the title and the decks' rows; cross on a deck offers to edit or rename it, closing the rows to open the editor or the name entry; triangle fades the screen out to leave.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 249 of file screen.c.

Referenced by STCRDDEK_updateScreen().

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

◆ STCRDDEK_updateScreen()

void STCRDDEK_updateScreen ( DeckScreen *  task,
DeckScreenChildren *  children 
)

The screen's task: loads its files and creates its windows, then runs it; waits for the editor or the name entry (saving the deck's new name), then opens again; returns to the previous mode when it ends.

Definition at line 370 of file screen.c.

Referenced by STCRDDEK_createScreen().

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

◆ STCRDDEK_createScreen()

DeckScreen * STCRDDEK_createScreen ( void  )

Creates the deck screen (task)

Definition at line 428 of file screen.c.

Here is the call graph for this function:

◆ STCRDDEK_loadFiles()

void STCRDDEK_loadFiles ( void  )

Loads the screen's textures and requests the card images, the card texts and the keyboard.

< TIM archive

< CARDNM

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< NAMEDT: the keyboard's

Definition at line 439 of file screen.c.

Here is the call graph for this function:

◆ STCRDDEK_filesLoading()

s32 STCRDDEK_filesLoading ( void  )

Whether the texts or the keyboard are still loading (the card images aren't waited for)

< CARDNM

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< NAMEDT: the keyboard's

Definition at line 458 of file screen.c.