|
Digimon World 3 decomp
The European version, SLES_039.36
|
CARDGAME's screen background, numbers, gauges and windows. More...
#include "cardgame/card_battle.h"Go to the source code of this file.
Functions | |
| void | CARDGAME_drawBackground (CardScreen *screen) |
| Draws the scrolling background, which fades in through its palettes (fadeState 1) and then stays. | |
| void | CARDGAME_drawNumber (CardNumber *number, s32 scaled) |
| Draws a number with the TIM archive's digits, seven pixels apart, without leading zeros unless asked; scaled about its pivot when scaled. | |
| void | CARDGAME_drawGauge (CardScreen *screen, CardScreenItems *items, s32 index, CardGauge *p) |
| Draws a gauge at its place (CARDGAME_gaugePositions), at its scale. | |
| void | CARDGAME_updateGauge (CardScreen *screen, CardScreenItems *items, s32 index, CardGauge *p) |
| Grows (state 1), holds (2) or shrinks (3) a gauge, and draws it. | |
| void | CARDGAME_updateGauges (CardScreen *screen, CardScreenItems *items) |
| Runs and draws the three gauges. | |
| static void | drawWindowCount (CardWindow *window) |
| Draws the number in a type 3 window: its low four bits, and the sprite for its high bits. | |
| void | CARDGAME_drawWindowFrame (CardScreen *screen, CardScreenItems *items, CardWindow *window) |
| Draws a window's frame (CARDGAME_windowLayouts), scaled while it opens, and its count. | |
| void | CARDGAME_drawWindowNumbers (CardScreen *screen, CardScreenItems *items, CardWindow *window) |
| Puts a window's two numbers (numbers) on its texts, right aligned. | |
| void | CARDGAME_drawWindowText (CardScreen *screen, CardWindow *window, TextWindow *text, s32 file, s32 index) |
| Puts a window's string value of file on text, or hides text when it has none. | |
| void | CARDGAME_drawCenteredText (CardScreen *screen, CardScreenItems *items, CardWindow *window, TextWindow *text, s32 file) |
| Puts a window's string value of file on text, centred on the screen (string 0x1F in palette 3), or hides text. | |
| void | CARDGAME_updateWindow (CardScreen *screen, CardScreenItems *items, CardWindow *window, s32 index) |
| Opens (state 1), shows (2) or closes (3) window index, each its own way. | |
| void | CARDGAME_updateWindows (CardScreen *screen, CardScreenItems *items) |
| Runs and draws the six windows. | |
CARDGAME's screen background, numbers, gauges and windows.
Definition in file windows.c.
| void CARDGAME_drawBackground | ( | CardScreen * | screen | ) |
Draws the scrolling background, which fades in through its palettes (fadeState 1) and then stays.
Definition at line 7 of file windows.c.
Referenced by CARDGAME_updateScreen().
| void CARDGAME_drawNumber | ( | CardNumber * | number, |
| s32 | scaled | ||
| ) |
Draws a number with the TIM archive's digits, seven pixels apart, without leading zeros unless asked; scaled about its pivot when scaled.
Definition at line 41 of file windows.c.
Referenced by CARDGAME_drawPanel(), drawCardNumbers(), and drawWindowCount().
| void CARDGAME_drawGauge | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| s32 | index, | ||
| CardGauge * | p | ||
| ) |
Draws a gauge at its place (CARDGAME_gaugePositions), at its scale.
Definition at line 66 of file windows.c.
Referenced by CARDGAME_updateGauge().
| void CARDGAME_updateGauge | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| s32 | index, | ||
| CardGauge * | p | ||
| ) |
Grows (state 1), holds (2) or shrinks (3) a gauge, and draws it.
Definition at line 78 of file windows.c.
Referenced by CARDGAME_updateGauges().
| void CARDGAME_updateGauges | ( | CardScreen * | screen, |
| CardScreenItems * | items | ||
| ) |
Runs and draws the three gauges.
Definition at line 105 of file windows.c.
Referenced by CARDGAME_updateScreen().
|
inlinestatic |
Draws the number in a type 3 window: its low four bits, and the sprite for its high bits.
Definition at line 115 of file windows.c.
Referenced by CARDGAME_drawWindowFrame().
| void CARDGAME_drawWindowFrame | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| CardWindow * | window | ||
| ) |
Draws a window's frame (CARDGAME_windowLayouts), scaled while it opens, and its count.
Definition at line 142 of file windows.c.
Referenced by CARDGAME_updateWindow().
| void CARDGAME_drawWindowNumbers | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| CardWindow * | window | ||
| ) |
Puts a window's two numbers (numbers) on its texts, right aligned.
Definition at line 181 of file windows.c.
Referenced by CARDGAME_updateWindow().
| void CARDGAME_drawWindowText | ( | CardScreen * | screen, |
| CardWindow * | window, | ||
| TextWindow * | text, | ||
| s32 | file, | ||
| s32 | index | ||
| ) |
Puts a window's string value of file on text, or hides text when it has none.
Definition at line 196 of file windows.c.
Referenced by CARDGAME_updateWindow().
| void CARDGAME_drawCenteredText | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| CardWindow * | window, | ||
| TextWindow * | text, | ||
| s32 | file | ||
| ) |
Puts a window's string value of file on text, centred on the screen (string 0x1F in palette 3), or hides text.
Definition at line 207 of file windows.c.
Referenced by CARDGAME_updateWindow().
| void CARDGAME_updateWindow | ( | CardScreen * | screen, |
| CardScreenItems * | items, | ||
| CardWindow * | window, | ||
| s32 | index | ||
| ) |
Opens (state 1), shows (2) or closes (3) window index, each its own way.
< CARDGM: the card battle's
< CARDNM
< CARDGM: the card battle's
< CARDGM: the card battle's
< CARDGM: the card battle's
< CARDNM
< CARDGM: the card battle's
< CARDGM: the card battle's
< CARDGM: the card battle's
< CARDST
Definition at line 228 of file windows.c.
Referenced by CARDGAME_updateWindows().
| void CARDGAME_updateWindows | ( | CardScreen * | screen, |
| CardScreenItems * | items | ||
| ) |
Runs and draws the six windows.
Definition at line 322 of file windows.c.
Referenced by CARDGAME_updateScreen().