Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
update_name_entry.inc.c
Go to the documentation of this file.
1/* The name entry's task: loads the keyboard's images and picks its pages,
2 then runs and draws the keyboard */
4 TimLoader loader;
5
6 switch (task->state) {
7 case TASK_INIT:
8 default:
9 task->nextState(task);
10 initTimLoader(&loader);
11 loader.setImagePos(task->vramX, task->vramY);
14 OVL_NAME(keyboard).pageCount = 3;
15 OVL_NAME(keyboard).tabTexts = OVL_NAME(keyPagesJp);
16 OVL_NAME(keyboard).pages = OVL_NAME(keyCharsJp);
17 } else {
18 OVL_NAME(keyboard).pageCount = 1;
19 OVL_NAME(keyboard).tabTexts = OVL_NAME(keyPages);
20 OVL_NAME(keyboard).pages = OVL_NAME(keyChars);
21 }
22 task->unusedBC.duration = 10;
23 task->messageScale.duration = 10;
24 task->keyboardScale.duration = 10;
25 OVL_NAME(createNameWindows)(task, windows);
26 break;
27 case TASK_RUN:
28 OVL_NAME(updateKeyboard)(task, windows);
30 break;
31 case TASK_DONE:
32 case TASK_KILL:
33 break;
34 }
35}
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition battle_mode.h:26
void createNameWindows(NameEntry *task, NameEntryWindows *windows)
Creates the name entry's windows: the title, the name, the keyboard's three tabs, the button labels a...
#define NAME_ENTRY_FILE_KEYBOARD
Definition deck_editor.h:18
void drawKeyboard(NameEntry *task)
Draws the keyboard, the cursor, the partner and the name entry's panels.
#define TASK_RUN
Definition task.h:35
#define TASK_KILL
Definition task.h:37
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
Definition task.h:34
#define TASK_DONE
Definition task.h:36
FileCache FILE_CACHE
The file cache.
Definition file_cache.c:7
#define NAME_ENTRY_JAPANESE
The Japanese keyboard (three pages) is for language 0 of the European version, the Japanese version's...
Definition name_entry.h:34
void *(* getEntry)(u32 fileAndIndex)
Definition file.h:96
A name entry: the keyboard, the name typed so far and the panels that open and close.
Definition name_entry.h:95
Uploads TIM images to VRAM (initTimLoader); acts on TIM_LOADER.
Definition gfx.h:325
void(* setImagePos)()
(x, y)
Definition gfx.h:336
void(* loadArchive)()
(archive): each image 64 halfwords to the right
Definition gfx.h:338
void initTimLoader(TimLoader *obj)
Clears a TIM loader, gives it its methods and binds it.
Definition tim_loader.c:119
void updateKeyboard(NameEntry *task, NameEntryWindows *windows)
The keyboard's input: moving the cursor, turning the pages and typing the name.
void updateNameEntry(NameEntry *task, NameEntryWindows *windows)
The name entry's task: loads the keyboard's images and picks its pages, then runs and draws the keybo...