26 if (panel->
step > 0) {
27 if (panel->
level > ONE) {
32 }
else if (panel->
level < 0) {
65 for (i = 0; i < task->
count; i++) {
72 for (j = 0; j < 3; j++) {
75 for (i = 0; i < 5; i++) {
79 for (i = 0; i < 5; i++) {
99 for (i = 0; i < 5; i++) {
108 for (i = 0; i < 5; i++) {
115 for (i = 0; i < 5; i++) {
133 return value >= 0x270;
138 { 6, 7, 8, 9, 10, 0 },
139 { 6, 7, 8, 9, 10, 11 },
208 if (prev != task->
cursor) {
308 for (j = 0; j <= task->
substate; j++) {
330 switch (task->
state) {
381 if (task->
step == 0) {
394 for (i = 0, y = 0x11, y2 = 0x25; i < 3; i++) {
GfxState GFX
GFX: the graphics state and its methods.
GameState GAME
The save data, the game mode and the methods.
Cursor * createCursor(s16 layerId, s32 depth, s16 x, s16 y)
A menu cursor on a layer at (x, y)
#define TEXT_STATUS
STATUS: the field menu's and STSTATUS's.
#define FILE_MENU_SPRITES
Files the engine loads by number.
FileCache FILE_CACHE
The file cache.
long open(char *name, unsigned long mode)
The kernel's file functions (libapi.h); the sim: device is the PC's.
struct FieldMenuChoice FIELD_MENU_CHOICE
menu/field_menu.c's
#define MODE_NEW_GAME
Game modes (GameState: mode >> 8 is the overlay) that more than their own overlay asks for.
#define MODE_STATUS
STSTATUS: the field menu's screens (FIELD_MENU_CHOICE)
#define STAT_LEVEL
Indices of a partner's stats (PartnerStats.stats, computeStats, setStat)
#define STRETCH_SPRITE(sprite, level, x, y)
#define PAD_PRESSED(button)
One button of pad 1: newly pressed, auto-repeated while held, or held.
#define PAD_REPEATED(button)
SoundState SOUND
rsin and rcos (libgte) read rsin_tbl[a - 0x800] and the like: their addresses before the table fall i...
#define SOUND_MENU_CLOSE
SYSTEM04.
#define SOUND_SELECT
Sounds the overlays share, with SOUNDTST's names.
#define SOUND_MENU_OPEN
SYSTEM03.
#define SOUND_MENU_CANCEL
SYSTEM01.
#define SOUND_CURSOR
SYSTEM02: a cursor moves.
void initSpriteDrawer(SpriteDrawer *obj)
Clears a sprite drawer to neutral (no scale, gray tint, follows the scroll), gives it its methods and...
void(* setPos)()
(cursor, x, y)
void(* setVisible)()
(cursor, visible)
void *(* getEntry)(u32 fileAndIndex)
struct PartnerStats *(* getPartnerStats)(s32 partner)
void(* computeStats)(s32 partner, union PartnerTotals *out)
void(* requestMode)(s32 mode, s32 arg)
s32(* getPartyMember)(u32 index)
s8 items[0x193]
counts, up to 99
s32 fieldMode
where the menu returns to
Opens or closes a menu panel: level goes 0 -> ONE in duration frames (or back at twice the speed),...
A partner Digimon from its name on (Partner.info), as getPartnerStats gives it.
short(* playSound)(s32 id)
returns the voice of a key-on
Draws sprites from a sprite sheet (such as file 0x277, the menu graphics): a sheet has a table of fra...
void(* setLayerId)()
(id, depth)
void(* setFollowScroll)()
(on)
void(* setClutRow)()
(row)
void(* draw)()
(sheet, frame, x, y)
void(* setTexture)()
(x, y)
void(* setPalette)(struct TextWindow *obj, u8 arg)
void(* setRightAlign)()
no prototype: callers would truncate u8 args
void(* setVisible)(struct TextWindow *obj, u8 arg)
Where a window goes, and the string it shows.
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
#define PALETTE_GREY
what is unavailable
TextWindow * createTextWindow(s16 layerId, s16 style, s16 x, s16 y)
A text window on a layer, in a font style, at (x, y)
computeStats' result: the stats with the equipment added, by STAT_* or by name.