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

The panel that fills up while a card operation runs. More...

Include dependency graph for panel.c:

Go to the source code of this file.

Functions

void STGMCARD_resetPanel (MemCardPanel *panel)
 Empties the panel and stops it (panel->reset)
 
void STGMCARD_startPanel (MemCardPanel *panel, s32 substate, s32 duration)
 Starts the panel (panel->start): substate 1 opens it to 95% over duration frames while a card operation runs, 2 opens it fully and sets done.
 
void STGMCARD_setPanelTopColor (MemCardPanel *panel, u8 r, u8 g, u8 b)
 Sets the color of the panel's gradient at its top (panel->setTopColor)
 
void STGMCARD_setPanelBottomColor (MemCardPanel *panel, u8 r, u8 g, u8 b)
 Sets the color of the panel's gradient at its bottom (panel->setBottomColor)
 
void STGMCARD_setPanelPos (MemCardPanel *panel, s32 x, s32 y)
 Moves the panel (panel->setPos)
 
void STGMCARD_updatePanel (MemCardPanel *panel)
 The panel's task: opens it by scaling it horizontally, then draws it as a gradient with a sprite.
 
MemCardPanel * STGMCARD_createPanel (s32 x, s32 y, s32 w, s32 h)
 Creates a gradient panel (task) at x, y, w by h, empty until started.
 

Detailed Description

The panel that fills up while a card operation runs.

Definition in file panel.c.

Function Documentation

◆ STGMCARD_resetPanel()

void STGMCARD_resetPanel ( MemCardPanel *  panel)

Empties the panel and stops it (panel->reset)

panel.c

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 6 of file panel.c.

Referenced by STGMCARD_createPanel(), and STGMCARD_updatePanel().

Here is the caller graph for this function:

◆ STGMCARD_startPanel()

void STGMCARD_startPanel ( MemCardPanel *  panel,
s32  substate,
s32  duration 
)

Starts the panel (panel->start): substate 1 opens it to 95% over duration frames while a card operation runs, 2 opens it fully and sets done.

Definition at line 20 of file panel.c.

Referenced by STGMCARD_createPanel().

Here is the caller graph for this function:

◆ STGMCARD_setPanelTopColor()

void STGMCARD_setPanelTopColor ( MemCardPanel *  panel,
u8  r,
u8  g,
u8  b 
)

Sets the color of the panel's gradient at its top (panel->setTopColor)

Definition at line 27 of file panel.c.

Referenced by STGMCARD_createPanel().

Here is the caller graph for this function:

◆ STGMCARD_setPanelBottomColor()

void STGMCARD_setPanelBottomColor ( MemCardPanel *  panel,
u8  r,
u8  g,
u8  b 
)

Sets the color of the panel's gradient at its bottom (panel->setBottomColor)

Definition at line 35 of file panel.c.

Referenced by STGMCARD_createPanel().

Here is the caller graph for this function:

◆ STGMCARD_setPanelPos()

void STGMCARD_setPanelPos ( MemCardPanel *  panel,
s32  x,
s32  y 
)

Moves the panel (panel->setPos)

Definition at line 43 of file panel.c.

Referenced by STGMCARD_createPanel().

Here is the caller graph for this function:

◆ STGMCARD_updatePanel()

void STGMCARD_updatePanel ( MemCardPanel *  panel)

The panel's task: opens it by scaling it horizontally, then draws it as a gradient with a sprite.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 50 of file panel.c.

Referenced by STGMCARD_createPanel().

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

◆ STGMCARD_createPanel()

MemCardPanel * STGMCARD_createPanel ( s32  x,
s32  y,
s32  w,
s32  h 
)

Creates a gradient panel (task) at x, y, w by h, empty until started.

Definition at line 147 of file panel.c.

Referenced by STGMCARD_pickPort().

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