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

STCRDDEK: the deck editor, where the player builds the three decks from the cards they own and renames them on the keyboard (name_entry.h). More...

Include dependency graph for deck_editor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DeckFuncs
 The screen's helpers. More...
 
struct  DeckEditor
 The deck being edited. More...
 
struct  CardLine
 A line of the list of the cards owned. More...
 
struct  DeckEditorChildren
 
struct  DeckCards
 Draws the deck's cards, appearing one per frame. More...
 
struct  DeckIdle
 A task that waits for triangle; nothing creates it. More...
 
struct  DeckRow
 A deck's row on the screen: its name and how many cards of each kind it has. More...
 
struct  DeckScreenChildren
 
struct  DeckScreen
 The screen's controller: the three decks to choose from. More...
 

Macros

#define OVL_NAME(name)   STCRDDEK_##name
 The name of this overlay's copy of a function or type of src/shared/.
 
#define NAME_ENTRY_HAS_UNUSED98   0
 The overlay's NameEntry and the name entry's files (name_entry.h)
 
#define NAME_ENTRY_HAS_HIDE   0
 
#define NAME_ENTRY_SPRITES   STCRDDEK_KEY_SPRITES
 
#define NAME_ENTRY_FILE_KEYBOARD   STCRDDEK_FILE_KEYBOARD
 
#define STCRDDEK_FILE_SPRITES   0x63E
 
#define STCRDDEK_FILE_IMAGES   0x642
 
#define STCRDDEK_FILE_CARDS   0x7F6
 
#define STCRDDEK_FILE_KEYBOARD   0x771
 
#define STCRDDEK_FILE_KEY_SPRITES   0x770
 
#define STCRDDEK_SPRITES   (STCRDDEK_FILE_SPRITES << 16)
 sprite bank
 
#define STCRDDEK_IMAGES   (STCRDDEK_FILE_IMAGES << 16)
 TIM archive.
 
#define STCRDDEK_KEY_SPRITES   (STCRDDEK_FILE_KEY_SPRITES << 16)
 the keyboard's and partners' sprites
 

Functions

void STCRDDEK_updateScene (Task *task, DeckScreen **child)
 scene.c
 
void STCRDDEK_startFader (ScreenFade *task, s32 fadeIn, s32 duration)
 
void STCRDDEK_drawFader (ScreenFade *task)
 
void STCRDDEK_updateFader (ScreenFade *task)
 
ScreenFade * STCRDDEK_createFader (void)
 
void STCRDDEK_drawDeckCards (DeckCards *task)
 deck_cards.c
 
void STCRDDEK_loadNextCard (DeckCards *task)
 Shows one more of the deck's cards, loading its image into its cell of VRAM; TASK_DONE once all 40 are shown.
 
void STCRDDEK_updateDeckCards (DeckCards *task)
 The deck cards' task: shows one more card each frame, then keeps drawing all 40 until the editor kills it.
 
DeckCards * STCRDDEK_createDeckCards (DeckEditor *editor)
 Creates the deck's cards (task) on the editor's grid.
 
void STCRDDEK_createEditorWindows (DeckEditor *task, DeckEditorChildren *children)
 editor.c
 
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.
 
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.
 
void STCRDDEK_startTween (PanelAnim *fade, s32 fadeIn)
 name_entry.c
 
s32 STCRDDEK_updateTween (PanelAnim *fade)
 
void STCRDDEK_createNameWindows (NameEntry *task, NameEntryWindows *windows)
 
void STCRDDEK_showNameWindows (NameEntry *task, NameEntryWindows *windows, s32 show)
 
void STCRDDEK_drawKeyboard (NameEntry *task)
 
void STCRDDEK_updateKeyboard (NameEntry *task, NameEntryWindows *windows)
 
void STCRDDEK_updateNameEntry (NameEntry *task, NameEntryWindows *windows)
 
void STCRDDEK_setNameVram (NameEntry *task, s32 x, s32 y)
 
void STCRDDEK_setName (NameEntry *task, char *name)
 
void STCRDDEK_getName (NameEntry *task, char *out)
 
void STCRDDEK_closeNameEntry (NameEntry *task)
 
NameEntry * STCRDDEK_createNameEntry (char *text)
 Creates the name entry (task) to rename a deck, starting from its name: up to 10 characters.
 
void STCRDDEK_setScrollBarX (ScrollBar *bar, s32 x, s32 width)
 scroll_bar.c
 
void STCRDDEK_setScrollBarRange (ScrollBar *bar, s32 top, s32 bottom)
 
void STCRDDEK_setScrollBarCount (ScrollBar *bar, s32 pageSize, s32 count)
 
void STCRDDEK_setScrollBarPos (ScrollBar *bar, s32 pos)
 
void STCRDDEK_updateScrollBar (ScrollBar *bar)
 
ScrollBar * STCRDDEK_createScrollBar (void)
 
void STCRDDEK_createScreenWindows (DeckScreen *task, DeckScreenChildren *children)
 screen.c
 
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.
 
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)
 
void STCRDDEK_startFade (PanelAnim *fade, s32 fadeIn)
 
s32 STCRDDEK_updateFade (PanelAnim *fade)
 
void STCRDDEK_startLerp (MenuLerp *lerp, s32 from, s32 to, s32 frames)
 
s32 STCRDDEK_updateLerp (MenuLerp *lerp)
 

Variables

s32 STCRDDEK_cursorCluts []
 STCRDDEK's data (data/stcrddek.c), in its order.
 
Glyph STCRDDEK_glyphs []
 the name's font
 
Glyph STCRDDEK_icons []
 
KeyTabs STCRDDEK_keyPagesJp []
 the European version reads these two for language 0
 
KeyPage STCRDDEK_keyCharsJp []
 
KeyTabs STCRDDEK_keyPages []
 
KeyPage STCRDDEK_keyChars []
 
TextStyle STCRDDEK_nameStyle
 
s32 STCRDDEK_nameAnims [][7]
 
BigKey STCRDDEK_bigKeys []
 
s32 STCRDDEK_keyArrowCluts []
 
DeckFuncs STCRDDEK_funcs
 
NameKeyboard STCRDDEK_keyboard
 

Detailed Description

STCRDDEK: the deck editor, where the player builds the three decks from the cards they own and renames them on the keyboard (name_entry.h).

Its modules are in src/cardgame/deck_editor/, and the functions below are by module, in the order they link.

Definition in file deck_editor.h.

Macro Definition Documentation

◆ OVL_NAME

#define OVL_NAME (   name)    STCRDDEK_##name

The name of this overlay's copy of a function or type of src/shared/.

Definition at line 12 of file deck_editor.h.

◆ NAME_ENTRY_HAS_UNUSED98

#define NAME_ENTRY_HAS_UNUSED98   0

The overlay's NameEntry and the name entry's files (name_entry.h)

Definition at line 15 of file deck_editor.h.

◆ NAME_ENTRY_HAS_HIDE

#define NAME_ENTRY_HAS_HIDE   0

Definition at line 16 of file deck_editor.h.

◆ NAME_ENTRY_SPRITES

#define NAME_ENTRY_SPRITES   STCRDDEK_KEY_SPRITES

Definition at line 17 of file deck_editor.h.

◆ NAME_ENTRY_FILE_KEYBOARD

#define NAME_ENTRY_FILE_KEYBOARD   STCRDDEK_FILE_KEYBOARD

Definition at line 18 of file deck_editor.h.

◆ STCRDDEK_FILE_SPRITES

#define STCRDDEK_FILE_SPRITES   0x63E

Definition at line 28 of file deck_editor.h.

◆ STCRDDEK_FILE_IMAGES

#define STCRDDEK_FILE_IMAGES   0x642

Definition at line 29 of file deck_editor.h.

◆ STCRDDEK_FILE_CARDS

#define STCRDDEK_FILE_CARDS   0x7F6

Definition at line 30 of file deck_editor.h.

◆ STCRDDEK_FILE_KEYBOARD

#define STCRDDEK_FILE_KEYBOARD   0x771

Definition at line 31 of file deck_editor.h.

◆ STCRDDEK_FILE_KEY_SPRITES

#define STCRDDEK_FILE_KEY_SPRITES   0x770

Definition at line 32 of file deck_editor.h.

◆ STCRDDEK_SPRITES

#define STCRDDEK_SPRITES   (STCRDDEK_FILE_SPRITES << 16)

sprite bank

Definition at line 34 of file deck_editor.h.

◆ STCRDDEK_IMAGES

#define STCRDDEK_IMAGES   (STCRDDEK_FILE_IMAGES << 16)

TIM archive.

Definition at line 35 of file deck_editor.h.

◆ STCRDDEK_KEY_SPRITES

#define STCRDDEK_KEY_SPRITES   (STCRDDEK_FILE_KEY_SPRITES << 16)

the keyboard's and partners' sprites

Definition at line 36 of file deck_editor.h.

Function Documentation

◆ STCRDDEK_updateScene()

void STCRDDEK_updateScene ( Task *  task,
DeckScreen **  child 
)

scene.c

◆ STCRDDEK_startFader()

void STCRDDEK_startFader ( ScreenFade *  task,
s32  fadeIn,
s32  duration 
)

◆ STCRDDEK_drawFader()

void STCRDDEK_drawFader ( ScreenFade *  task)

◆ STCRDDEK_updateFader()

void STCRDDEK_updateFader ( ScreenFade *  task)

◆ STCRDDEK_createFader()

ScreenFade * STCRDDEK_createFader ( void  )

Referenced by STCRDDEK_stepScreen().

Here is the caller graph for this function:

◆ STCRDDEK_drawDeckCards()

void STCRDDEK_drawDeckCards ( DeckCards *  task)

deck_cards.c

deck_cards.c

< sprite bank

Definition at line 7 of file deck_cards.c.

Referenced by STCRDDEK_updateDeckCards().

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

◆ STCRDDEK_loadNextCard()

void STCRDDEK_loadNextCard ( DeckCards *  task)

Shows one more of the deck's cards, loading its image into its cell of VRAM; TASK_DONE once all 40 are shown.

Definition at line 39 of file deck_cards.c.

Referenced by STCRDDEK_updateDeckCards().

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

◆ STCRDDEK_updateDeckCards()

void STCRDDEK_updateDeckCards ( DeckCards *  task)

The deck cards' task: shows one more card each frame, then keeps drawing all 40 until the editor kills it.

Definition at line 59 of file deck_cards.c.

Referenced by STCRDDEK_createDeckCards().

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

◆ STCRDDEK_createDeckCards()

DeckCards * STCRDDEK_createDeckCards ( DeckEditor *  editor)

Creates the deck's cards (task) on the editor's grid.

Definition at line 78 of file deck_cards.c.

Referenced by STCRDDEK_openEditor().

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

◆ STCRDDEK_createEditorWindows()

void STCRDDEK_createEditorWindows ( DeckEditor *  task,
DeckEditorChildren *  children 
)

editor.c

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_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:

◆ STCRDDEK_startTween()

void STCRDDEK_startTween ( PanelAnim *  fade,
s32  fadeIn 
)

name_entry.c

◆ STCRDDEK_updateTween()

s32 STCRDDEK_updateTween ( PanelAnim *  fade)

◆ STCRDDEK_createNameWindows()

void STCRDDEK_createNameWindows ( NameEntry *  task,
NameEntryWindows *  windows 
)

◆ STCRDDEK_showNameWindows()

void STCRDDEK_showNameWindows ( NameEntry *  task,
NameEntryWindows *  windows,
s32  show 
)

◆ STCRDDEK_drawKeyboard()

void STCRDDEK_drawKeyboard ( NameEntry *  task)

◆ STCRDDEK_updateKeyboard()

void STCRDDEK_updateKeyboard ( NameEntry *  task,
NameEntryWindows *  windows 
)

◆ STCRDDEK_updateNameEntry()

void STCRDDEK_updateNameEntry ( NameEntry *  task,
NameEntryWindows *  windows 
)

Referenced by STCRDDEK_createNameEntry().

Here is the caller graph for this function:

◆ STCRDDEK_setNameVram()

void STCRDDEK_setNameVram ( NameEntry *  task,
s32  x,
s32  y 
)

Referenced by STCRDDEK_createNameEntry().

Here is the caller graph for this function:

◆ STCRDDEK_setName()

void STCRDDEK_setName ( NameEntry *  task,
char *  name 
)

Referenced by STCRDDEK_createNameEntry().

Here is the caller graph for this function:

◆ STCRDDEK_getName()

void STCRDDEK_getName ( NameEntry *  task,
char *  out 
)

Referenced by STCRDDEK_createNameEntry().

Here is the caller graph for this function:

◆ STCRDDEK_closeNameEntry()

void STCRDDEK_closeNameEntry ( NameEntry *  task)

Referenced by STCRDDEK_createNameEntry().

Here is the caller graph for this function:

◆ STCRDDEK_createNameEntry()

NameEntry * STCRDDEK_createNameEntry ( char *  text)

Creates the name entry (task) to rename a deck, starting from its name: up to 10 characters.

Definition at line 20 of file name_entry.c.

Referenced by STCRDDEK_openChosen().

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

◆ STCRDDEK_setScrollBarX()

void STCRDDEK_setScrollBarX ( ScrollBar *  bar,
s32  x,
s32  width 
)

scroll_bar.c

◆ STCRDDEK_setScrollBarRange()

void STCRDDEK_setScrollBarRange ( ScrollBar *  bar,
s32  top,
s32  bottom 
)

◆ STCRDDEK_setScrollBarCount()

void STCRDDEK_setScrollBarCount ( ScrollBar *  bar,
s32  pageSize,
s32  count 
)

◆ STCRDDEK_setScrollBarPos()

void STCRDDEK_setScrollBarPos ( ScrollBar *  bar,
s32  pos 
)

◆ STCRDDEK_updateScrollBar()

void STCRDDEK_updateScrollBar ( ScrollBar *  bar)

◆ STCRDDEK_createScrollBar()

ScrollBar * STCRDDEK_createScrollBar ( void  )

Referenced by STCRDDEK_showCardListCursor().

Here is the caller graph for this function:

◆ STCRDDEK_createScreenWindows()

void STCRDDEK_createScreenWindows ( DeckScreen *  task,
DeckScreenChildren *  children 
)

screen.c

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_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.

◆ STCRDDEK_startFade()

void STCRDDEK_startFade ( PanelAnim *  fade,
s32  fadeIn 
)

◆ STCRDDEK_updateFade()

s32 STCRDDEK_updateFade ( PanelAnim *  fade)

◆ STCRDDEK_startLerp()

void STCRDDEK_startLerp ( MenuLerp *  lerp,
s32  from,
s32  to,
s32  frames 
)

◆ STCRDDEK_updateLerp()

s32 STCRDDEK_updateLerp ( MenuLerp *  lerp)

Variable Documentation

◆ STCRDDEK_cursorCluts

s32 STCRDDEK_cursorCluts[]
extern

STCRDDEK's data (data/stcrddek.c), in its order.

STCRDDEK's data (data/stcrddek.c), in its order.

Definition at line 6 of file stcrddek.c.

Referenced by STCRDDEK_drawEditor().

◆ STCRDDEK_glyphs

Glyph STCRDDEK_glyphs[]
extern

the name's font

the name's font

Definition at line 246 of file stcrddek.c.

◆ STCRDDEK_icons

Glyph STCRDDEK_icons[]
extern

Definition at line 597 of file stcrddek.c.

◆ STCRDDEK_keyPagesJp

KeyTabs STCRDDEK_keyPagesJp[]
extern

the European version reads these two for language 0

Definition at line 715 of file stcrddek.c.

◆ STCRDDEK_keyCharsJp

KeyPage STCRDDEK_keyCharsJp[]
extern

Definition at line 720 of file stcrddek.c.

◆ STCRDDEK_keyPages

KeyTabs STCRDDEK_keyPages[]
extern

Definition at line 749 of file stcrddek.c.

◆ STCRDDEK_keyChars

KeyPage STCRDDEK_keyChars[]
extern

Definition at line 752 of file stcrddek.c.

◆ STCRDDEK_nameStyle

TextStyle STCRDDEK_nameStyle
extern

Definition at line 763 of file stcrddek.c.

◆ STCRDDEK_nameAnims

s32 STCRDDEK_nameAnims[][7]
extern

Definition at line 768 of file stcrddek.c.

◆ STCRDDEK_bigKeys

BigKey STCRDDEK_bigKeys[]
extern

Definition at line 774 of file stcrddek.c.

◆ STCRDDEK_keyArrowCluts

s32 STCRDDEK_keyArrowCluts[]
extern

Definition at line 777 of file stcrddek.c.

◆ STCRDDEK_funcs

◆ STCRDDEK_keyboard

NameKeyboard STCRDDEK_keyboard
extern

Definition at line 785 of file stcrddek.c.