Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
name_entry.c
Go to the documentation of this file.
1/* The keyboard for the partner's new name: the name entry STPLNMET and
2 STCRDDEK share */
3
5
6#define START_FADE OVL_NAME(startTween)
8#define UPDATE_FADE OVL_NAME(updateTween)
19
20/* Creates the name entry (task) for a partner, starting from the name given;
21 up to 8 characters (5 in language 0, in the European version) */
22NameEntry *STDGNAME_createNameEntry(char *name, s32 partner) {
24
27 task->layer = SCREEN_LAYER;
28 task->depth = 3;
29 task->mode = 1;
30 task->partner = partner;
31#if VERSION_US
32 task->maxLength = 8;
33#elif VERSION_EU || VERSION_JP
34 /* a name of language 0 is shorter */
35 if (LANGUAGE == 0) {
36 task->maxLength = 5;
37 } else {
38 task->maxLength = 8;
39 }
40#endif
41 STDGNAME_setName(task, name);
42 STDGNAME_setNameVram(task, 0x280, 0x100);
43 return task;
44}
signed int s32
Definition common.h:11
s32 LANGUAGE
The European version's settings, in the small data (.sdata) between file/file_table....
Definition eu_settings.c:13
#define SCREEN_LAYER
The layer over the whole screen that most modes create first and draw their menus on (FIELDSTG and ST...
Definition gfx.h:45
NameEntry * STDGNAME_createNameEntry(char *name, s32 partner)
Creates the name entry (task) for a partner, starting from the name given; up to 8 characters (5 in l...
Definition name_entry.c:22
STDGNAME.PRO: the screen where the partners are renamed.
void STDGNAME_getName(NameEntry *task, char *out)
void STDGNAME_setName(NameEntry *task, char *name)
void STDGNAME_updateNameEntry(NameEntry *task, NameEntryWindows *windows)
void STDGNAME_setNameVram(NameEntry *task, s32 x, s32 y)
void STDGNAME_closeNameEntry(NameEntry *task)
A name entry: the keyboard, the name typed so far and the panels that open and close.
Definition name_entry.h:95
void(* close)(NameEntry *task)
Definition name_entry.h:129
s32 maxLength
Definition name_entry.h:109
void(* getName)(NameEntry *task, char *out)
Definition name_entry.h:125
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
Definition task.c:105