Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
create_name_windows.inc.c
Go to the documentation of this file.
1/* Creates the name entry's windows: the title, the name, the keyboard's three
2 tabs, the button labels and the message */
4 s32 i;
5
6 windows->title = createTextWindow(task->layer, 1, 0x20, 0x1A);
7 windows->title->setPalette(windows->title, PALETTE_GREEN);
8 windows->name = createTextWindow(task->layer, 1, 0x4B, 0x40);
9 windows->name->setSpacing(windows->name, 0x13, 0);
10 windows->name->style = &OVL_NAME(nameStyle);
11 for (i = 0; i < 3; i++) {
12 windows->tabs[i] = createTextWindow(task->layer, 1, 0x2F + i * 0x4E, 0x5B);
13 windows->tabs[i]->setDepth(windows->tabs[i], task->depth - 1);
14 windows->tabs[i]->setLines(windows->tabs[i], 7);
15 windows->tabs[i]->setSpacing(windows->tabs[i], 0xE, 0x12);
16 windows->tabs[i]->style = &OVL_NAME(nameStyle);
17 }
18 windows->leftLabel = createTextWindow(task->layer, 1, 0xCE, 0xC6);
19 windows->rightLabel = createTextWindow(task->layer, 1, 0xE1, 0xC6);
20 windows->l1Label = createTextWindow(task->layer, 1, 0x13, 0x62);
21 windows->l1Label->setDepth(windows->l1Label, task->depth - 1);
22 windows->r1Label = createTextWindow(task->layer, 1, 0x123, 0x62);
23 windows->r1Label->setDepth(windows->r1Label, task->depth - 1);
24 windows->message = createTextWindow(task->layer, 1, 0x3E, 0x72);
25}
#define OVL_NAME(name)
The name of this overlay's copy of a function of src/shared/.
Definition battle_mode.h:26
signed int s32
Definition common.h:11
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...
A name entry: the keyboard, the name typed so far and the panels that open and close.
Definition name_entry.h:95
#define PALETTE_GREEN
Definition text.h:116
TextWindow * createTextWindow(s16 layerId, s16 style, s16 x, s16 y)
A text window on a layer, in a font style, at (x, y)