79 switch (task->
state) {
117 fade->
start(fade, 0, 30);
GameState GAME
The save data, the game mode and the methods.
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
#define TEXT_NAME_ENTRY
NAMEDT: the keyboard's.
#define TEXT_DIGIMON_NAMING
DGNMET: STDGNAME's.
FileCache FILE_CACHE
The file cache.
#define SCREEN_LAYER
The layer over the whole screen that most modes create first and draw their menus on (FIELDSTG and ST...
Heap HEAP
The functions that return what a call left in v0 (allocMemHigh, findTask) and the ones that take othe...
STDGNAME.PRO: the screen where the partners are renamed.
#define STDGNAME_FILE_KEYBOARD
#define STDGNAME_FILE_IMAGES
#define STDGNAME_SPRITES
sprite bank
ScreenFade * STDGNAME_createFader(void)
void initSpriteDrawer(SpriteDrawer *obj)
Clears a sprite drawer to neutral (no scale, gray tint, follows the scroll), gives it its methods and...
ScreenFuncs STDGNAME_funcs
style: the text style of the partners' names in the menu (STDGNAME_showMenuWindow)
s32(* isLoading)(s32 file)
void(* request)(s32 file)
void *(* getEntry)(u32 fileAndIndex)
struct PartnerStats *(* getPartnerStats)(s32 partner)
void(* requestMode)(s32 mode, s32 arg)
s32(* getPartyMember)(u32 index)
s32 fieldMode
where the menu returns to
void(* zero)(void *ptr, s32 size)
void(* close)(NameEntry *task)
void(* getName)(NameEntry *task, char *out)
Task * awaited
never set: the screen would wait in TASK_DONE until it ends
Fades the whole screen to black and back with a subtractive rectangle.
void(* start)(struct ScreenFade *fade, s32 fadeIn, s32 frames)
TASK_DONE when done.
void(* fadeOut)(struct ScreenTask *task)
void(* nextState)(struct ScreenTask *task)
void(* setState)(struct ScreenTask *task, s32 state)
void(* setSubstate)(struct ScreenTask *task, s32 substate)
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(* draw)()
(sheet, frame, x, y)
void(* setTexture)()
(x, y)
Uploads TIM images to VRAM (initTimLoader); acts on TIM_LOADER.
void(* setImagePos)()
(x, y)
void(* loadArchive)()
(archive): each image 64 halfwords to the right
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
void initTimLoader(TimLoader *obj)
Clears a TIM loader, gives it its methods and binds it.