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

The deck editor: the list of the cards owned, and the deck being built; and an idle task nothing creates. More...

Include dependency graph for editor.c:

Go to the source code of this file.

Functions

void STCRDDEK_createEditorWindows (DeckEditor *task, DeckEditorChildren *children)
 Creates the editor's windows: the title, the deck's name and counts of each kind, the hint, the card under the cursor's name, numbers and text, the list's lines and cursor, the same for the list's card, and the message.
 
void STCRDDEK_showEditorWindows (DeckEditor *task, DeckEditorChildren *children, s32 show)
 Shows the title, the deck's name and counts of each kind, the hint (taking turns with another one) and the card under the cursor's name, with its numbers or its text while the info panel is open; or hides them.
 
void STCRDDEK_showCardList (DeckEditor *task, DeckEditorChildren *children, s32 show)
 Shows the eight lines of the list of the cards owned from listTop (each card's name and how many are not in the deck), or hides them.
 
void STCRDDEK_showListCard (DeckEditor *task, DeckEditorChildren *children, s32 show)
 Shows the list's card under the cursor: its name and its numbers or its text, or hides them.
 
void STCRDDEK_buildCardList (DeckEditor *task)
 Lists the cards owned but not in the deck: owned holds each card's copies left over, list the cards that have some (listCount of them)
 
void STCRDDEK_drawEditor (DeckEditor *task)
 Draws the editor: the cursor on the deck's grid, the info panel, the deck's panel, the list of the cards owned with their icons and scroll arrows, the list card's panel and the message's panel, as they open.
 
static void STCRDDEK_moveDeckCursor (DeckEditor *task, DeckEditorChildren *children)
 The cursor on the deck's grid (9 columns, the last row 4): the pad moves it, R1 opens or closes the card's info panel, cross goes on to the list of the cards owned, triangle leaves and circle sorts the deck.
 
static void STCRDDEK_toggleCardInfo (DeckEditor *task, DeckEditorChildren *children)
 Opens or closes the info panel of the card under the cursor.
 
static void STCRDDEK_openCardList (DeckEditor *task, DeckEditorChildren *children)
 Leaves the deck's grid for the list of the cards owned: fills the list and keeps its cursor on a card, closes the grid's panels and opens the list's.
 
static void STCRDDEK_showCardListCursor (DeckEditor *task, DeckEditorChildren *children)
 Once the list card's panel has opened: adds a scroll bar to a list longer than a page and shows the cursor and the card under it.
 
static void STCRDDEK_chooseListCard (DeckEditor *task, DeckEditorChildren *children)
 The cursor on the list of the cards owned: L1/R1 turn a page, up/down move it (scrolling the list); cross puts the card in the deck's slot unless the deck already has four of it (a message), triangle goes back to the grid.
 
static void STCRDDEK_closeCardList (DeckEditor *task, DeckEditorChildren *children)
 Hides the list, its card and its cursor and closes their panels, and ends the scroll bar.
 
static void STCRDDEK_startSort (DeckEditor *task, DeckEditorChildren *children)
 Before sorting the deck: closes the grid's panels and hides its windows.
 
static void STCRDDEK_sortDeck (DeckEditor *task, DeckEditorChildren *children)
 Sorts the deck's 40 cards by id, then shows the grid again.
 
static void STCRDDEK_closeEditor (DeckEditor *task, DeckEditorChildren *children)
 Leaving: ends the deck's cards and closes the grid's panels and windows.
 
static void STCRDDEK_openEditor (DeckEditor *task, DeckEditorChildren *children)
 Once the grid's panel has opened: shows the deck's windows, fills the list of the cards owned and starts laying out the deck's cards.
 
void STCRDDEK_stepEditor (DeckEditor *task, DeckEditorChildren *children)
 The editor's states: picks a card of the deck (R1 its info panel, circle sorts the deck, triangle leaves), then a card of the list to take its place (L1/R1 a page, triangle back), refusing with a message one the deck has 4 of.
 
void STCRDDEK_updateEditor (DeckEditor *task, DeckEditorChildren *children)
 The editor's task: creates its windows, then runs and draws it.
 
DeckEditor * STCRDDEK_createEditor (DeckScreen *screen, s32 deck)
 Creates the editor (task) of one of GAME.decks.
 
void STCRDDEK_initIdle (DeckIdle *task, void *children)
 Left empty.
 
void STCRDDEK_drawIdle (DeckIdle *task)
 Only sets up a sprite drawer.
 
void STCRDDEK_stepIdle (DeckIdle *task, void *children)
 Ends the idle task on triangle.
 
void STCRDDEK_updateIdle (DeckIdle *task, void *children)
 A task that waits for triangle, then ends; nothing creates it.
 
DeckIdle * STCRDDEK_createIdle (void *parent)
 Creates the idle task; nothing calls it.
 

Detailed Description

The deck editor: the list of the cards owned, and the deck being built; and an idle task nothing creates.

Definition in file editor.c.

Function Documentation

◆ STCRDDEK_createEditorWindows()

void STCRDDEK_createEditorWindows ( DeckEditor *  task,
DeckEditorChildren *  children 
)

Creates the editor's windows: the title, the deck's name and counts of each kind, the hint, the card under the cursor's name, numbers and text, the list's lines and cursor, the same for the list's card, and the message.

editor.c

Definition at line 9 of file editor.c.

Referenced by STCRDDEK_updateEditor().

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

◆ STCRDDEK_showEditorWindows()

void STCRDDEK_showEditorWindows ( DeckEditor *  task,
DeckEditorChildren *  children,
s32  show 
)

Shows the title, the deck's name and counts of each kind, the hint (taking turns with another one) and the card under the cursor's name, with its numbers or its text while the info panel is open; or hides them.

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDNM

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 54 of file editor.c.

Referenced by STCRDDEK_closeEditor(), STCRDDEK_moveDeckCursor(), STCRDDEK_openCardList(), STCRDDEK_openEditor(), STCRDDEK_startSort(), STCRDDEK_stepEditor(), and STCRDDEK_toggleCardInfo().

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

◆ STCRDDEK_showCardList()

void STCRDDEK_showCardList ( DeckEditor *  task,
DeckEditorChildren *  children,
s32  show 
)

Shows the eight lines of the list of the cards owned from listTop (each card's name and how many are not in the deck), or hides them.

< CARDNM

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 130 of file editor.c.

Referenced by STCRDDEK_chooseListCard(), STCRDDEK_closeCardList(), and STCRDDEK_stepEditor().

Here is the caller graph for this function:

◆ STCRDDEK_showListCard()

void STCRDDEK_showListCard ( DeckEditor *  task,
DeckEditorChildren *  children,
s32  show 
)

Shows the list's card under the cursor: its name and its numbers or its text, or hides them.

< CARDNM

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CARDST

< CRDSHP: STCRDSHP's, and STCRDDEK's

< CRDSHP: STCRDSHP's, and STCRDDEK's

Definition at line 158 of file editor.c.

Referenced by STCRDDEK_chooseListCard(), STCRDDEK_closeCardList(), and STCRDDEK_showCardListCursor().

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

◆ STCRDDEK_buildCardList()

void STCRDDEK_buildCardList ( DeckEditor *  task)

Lists the cards owned but not in the deck: owned holds each card's copies left over, list the cards that have some (listCount of them)

Definition at line 209 of file editor.c.

Referenced by STCRDDEK_openCardList(), STCRDDEK_openEditor(), and STCRDDEK_startSort().

Here is the caller graph for this function:

◆ STCRDDEK_drawEditor()

void STCRDDEK_drawEditor ( DeckEditor *  task)

Draws the editor: the cursor on the deck's grid, the info panel, the deck's panel, the list of the cards owned with their icons and scroll arrows, the list card's panel and the message's panel, 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

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< 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

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< sprite bank

< 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

Definition at line 234 of file editor.c.

Referenced by STCRDDEK_updateEditor().

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

◆ STCRDDEK_moveDeckCursor()

static void STCRDDEK_moveDeckCursor ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

The cursor on the deck's grid (9 columns, the last row 4): the pad moves it, R1 opens or closes the card's info panel, cross goes on to the list of the cards owned, triangle leaves and circle sorts the deck.

< SYSTEM06

< SYSTEM06

< SYSTEM07

< SYSTEM01

< SYSTEM01

Definition at line 371 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_toggleCardInfo()

static void STCRDDEK_toggleCardInfo ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Opens or closes the info panel of the card under the cursor.

Definition at line 427 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_openCardList()

static void STCRDDEK_openCardList ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Leaves the deck's grid for the list of the cards owned: fills the list and keeps its cursor on a card, closes the grid's panels and opens the list's.

Definition at line 444 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_showCardListCursor()

static void STCRDDEK_showCardListCursor ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Once the list card's panel has opened: adds a scroll bar to a list longer than a page and shows the cursor and the card under it.

Definition at line 468 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_chooseListCard()

static void STCRDDEK_chooseListCard ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

The cursor on the list of the cards owned: L1/R1 turn a page, up/down move it (scrolling the list); cross puts the card in the deck's slot unless the deck already has four of it (a message), triangle goes back to the grid.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 487 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_closeCardList()

static void STCRDDEK_closeCardList ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Hides the list, its card and its cursor and closes their panels, and ends the scroll bar.

Definition at line 573 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_startSort()

static void STCRDDEK_startSort ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Before sorting the deck: closes the grid's panels and hides its windows.

Definition at line 586 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_sortDeck()

static void STCRDDEK_sortDeck ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Sorts the deck's 40 cards by id, then shows the grid again.

Definition at line 600 of file editor.c.

Referenced by STCRDDEK_stepEditor().

Here is the caller graph for this function:

◆ STCRDDEK_closeEditor()

static void STCRDDEK_closeEditor ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Leaving: ends the deck's cards and closes the grid's panels and windows.

Definition at line 618 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_openEditor()

static void STCRDDEK_openEditor ( DeckEditor *  task,
DeckEditorChildren *  children 
)
inlinestatic

Once the grid's panel has opened: shows the deck's windows, fills the list of the cards owned and starts laying out the deck's cards.

Definition at line 632 of file editor.c.

Referenced by STCRDDEK_stepEditor().

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

◆ STCRDDEK_stepEditor()

void STCRDDEK_stepEditor ( DeckEditor *  task,
DeckEditorChildren *  children 
)

The editor's states: picks a card of the deck (R1 its info panel, circle sorts the deck, triangle leaves), then a card of the list to take its place (L1/R1 a page, triangle back), refusing with a message one the deck has 4 of.

< what is unavailable

< CRDSHP: STCRDSHP's, and STCRDDEK's

< SYSTEM07

Definition at line 645 of file editor.c.

Referenced by STCRDDEK_updateEditor().

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

◆ STCRDDEK_updateEditor()

void STCRDDEK_updateEditor ( DeckEditor *  task,
DeckEditorChildren *  children 
)

The editor's task: creates its windows, then runs and draws it.

Definition at line 762 of file editor.c.

Referenced by STCRDDEK_createEditor().

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

◆ STCRDDEK_createEditor()

DeckEditor * STCRDDEK_createEditor ( DeckScreen *  screen,
s32  deck 
)

Creates the editor (task) of one of GAME.decks.

Definition at line 785 of file editor.c.

Referenced by STCRDDEK_openChosen().

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

◆ STCRDDEK_initIdle()

void STCRDDEK_initIdle ( DeckIdle *  task,
void *  children 
)

Left empty.

Definition at line 796 of file editor.c.

Referenced by STCRDDEK_updateIdle().

Here is the caller graph for this function:

◆ STCRDDEK_drawIdle()

void STCRDDEK_drawIdle ( DeckIdle *  task)

Only sets up a sprite drawer.

Definition at line 800 of file editor.c.

Referenced by STCRDDEK_updateIdle().

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

◆ STCRDDEK_stepIdle()

void STCRDDEK_stepIdle ( DeckIdle *  task,
void *  children 
)

Ends the idle task on triangle.

Definition at line 808 of file editor.c.

Referenced by STCRDDEK_updateIdle().

Here is the caller graph for this function:

◆ STCRDDEK_updateIdle()

void STCRDDEK_updateIdle ( DeckIdle *  task,
void *  children 
)

A task that waits for triangle, then ends; nothing creates it.

Definition at line 815 of file editor.c.

Referenced by STCRDDEK_createIdle().

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

◆ STCRDDEK_createIdle()

DeckIdle * STCRDDEK_createIdle ( void *  parent)

Creates the idle task; nothing calls it.

Definition at line 833 of file editor.c.

Here is the call graph for this function: