13 drawer.
setScale(scale, 0x1000, 0x1000);
24 drawer.
setScale(0x1000, 0x1000, 0x1000);
41#elif VERSION_EU || VERSION_JP
91 for (i = 0; i < 2; i++) {
152#if VERSION_EU || VERSION_JP
177 drawer.
setScale(scale, 0x1000, 0x1000);
240 step = 0xF600 / count;
CARDGAME.PRO: the card battle (mode 0x700).
s32 CARDGAME_messageWindowPositions[][2]
the message window's places (x, y), by CardScreen.message.place
GfxState GFX
GFX: the graphics state and its methods.
#define TEXT_DECK_EDITOR
CRDDEK.
#define TEXT_CARD_GAME
CARDGM: the card battle's.
#define TEXT_ITEM_NAMES
ITMNAM.
FileCache FILE_CACHE
The file cache.
void CARDGAME_updateMenuWindow(CardScreen *screen, CardScreenItems *items)
A menu window (CardScreen.menuState): it opens, shows text file 0x10 with the cursor on menuRow,...
s32 CARDGAME_getHandOffset(s32 count, s32 index)
CardScreen.getHandOffset: how far the hand's card index is from its first: 0x2900 a card up to six ca...
void CARDGAME_drawMenuFrame(CardScreen *screen, CardScreenItems *items, s16 scale, s32 x, s32 y)
Draws the menu window's frame at a scale.
void CARDGAME_drawMessageFrame(CardScreen *screen, CardScreenItems *items, s16 scale, s32 x, s32 y)
Draws the message window's frame at a scale.
void CARDGAME_drawMessageMark(CardScreen *screen, CardScreenItems *items, s32 x, s32 y)
Draws sprite 0x18 of the message window.
void CARDGAME_updateMessageWindow(CardScreen *screen, CardScreenItems *items)
The message window: it opens at its place, shows its prompt (showMessagePrompt) and message (showMess...
static void showMessagePrompt(CardScreen *screen, CardScreenItems *items)
Shows the message window's prompt and cursor, or hides them when it has no prompt.
static void showMessageText(CardScreen *screen, CardScreenItems *items)
Shows the message window's text: an item's name, the message with its wins or opponent numbers,...
#define FILE_CARDGAME_TIMS
CARDGAME's own pictures, a TIM archive.
void initSpriteDrawer(SpriteDrawer *obj)
Clears a sprite drawer to neutral (no scale, gray tint, follows the scroll), gives it its methods and...
u8 prompt
what it asks: 0 nothing, else a choice with the cursor
s16 choice
the cursor's row
u8 state
1 opening, 2 open, 4 confirmed, 5 closing
s32 place
in CARDGAME_messageWindowPositions
s32 wins
the rounds won shown
The battle screen's task items.
TextWindow * moreTexts[8]
The battle screen (created by CARDGAME_createScreen): the two panels, the cards on the table and the ...
CardMessageWindow message
void(* closeMenu)(struct CardScreen *screen)
void(* closeMessage)(struct CardScreen *screen)
s16 opponent
CardBattle.arg.
s16 opponentLevel
CardBattle.opponentLevel.
void(* setPos)()
(cursor, x, y)
void(* setVisible)()
(cursor, visible)
void *(* getEntry)(u32 fileAndIndex)
s32(* getFrameTime)(void)
Draws sprites from a sprite sheet (such as file 0x277, the menu graphics): a sheet has a table of fra...
void(* setScale)()
(x, y, z), ONE = 1.0
void(* setLayerId)()
(id, depth)
void(* draw)()
(sheet, frame, x, y)
void(* setTexture)()
(x, y)
Text helpers (initTextTools)
s32(* measure)()
(TextBuffer *, style, spacing)
void(* setPalette)(struct TextWindow *obj, u8 arg)
void(* setRightAlign)()
no prototype: callers would truncate u8 args
void(* setPos)(struct TextWindow *obj, s16 x, s16 y)
void(* setVisible)(struct TextWindow *obj, u8 arg)
#define PALETTE_WHITE
The text windows' palettes (TextWindow.palette, setPalette): rows of the font's CLUTs,...
#define PALETTE_GREY
what is unavailable
void initTextTools(TextTools *obj)
Clears a text tools object, gives it its methods and binds it.