Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
show_name_windows.inc.c
Go to the documentation of this file.
1/* Shows the name entry's windows with their texts, or hides them */
3 s32 i;
4
5 if (show != 0) {
6 windows->title->setString(windows->title, FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)), 1);
7 windows->name->setText(windows->name, task->name);
8 windows->name->setPalette(windows->name, PALETTE_BLUE);
9 for (i = 0; i < 3; i++) {
10 windows->tabs[i]->setString(windows->tabs[i], FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)),
11 OVL_NAME(keyboard).tabTexts[task->page].texts[i]);
12 windows->tabs[i]->setPalette(windows->tabs[i], PALETTE_BLUE);
13 }
14 windows->leftLabel->setString(windows->leftLabel, FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)), 0xD);
15 windows->leftLabel->setPalette(windows->leftLabel, PALETTE_BLUE);
16 windows->rightLabel->setString(windows->rightLabel, FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)), 0xE);
17 windows->rightLabel->setPalette(windows->rightLabel, PALETTE_BLUE);
18 if (OVL_NAME(keyboard).pageCount >= 2) {
19 windows->l1Label->setString(windows->l1Label, FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)), 0x10);
20 windows->l1Label->setPalette(windows->l1Label, PALETTE_BLUE);
21 windows->r1Label->setString(windows->r1Label, FILE_CACHE.load(TEXT_FILE(TEXT_NAME_ENTRY)), 0x11);
22 windows->r1Label->setPalette(windows->r1Label, PALETTE_BLUE);
23 }
24 } else {
25 windows->title->setVisible(windows->title, 0);
26 windows->name->setVisible(windows->name, 0);
27 for (i = 0; i < 3; i++) {
28 windows->tabs[i]->setVisible(windows->tabs[i], 0);
29 }
30 windows->leftLabel->setVisible(windows->leftLabel, 0);
31 windows->rightLabel->setVisible(windows->rightLabel, 0);
32 windows->l1Label->setVisible(windows->l1Label, 0);
33 windows->r1Label->setVisible(windows->r1Label, 0);
34 }
35}
#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
#define TEXT_NAME_ENTRY
NAMEDT: the keyboard's.
Definition file.h:219
#define TEXT_FILE(file)
Definition file.h:190
FileCache FILE_CACHE
The file cache.
Definition file_cache.c:7
void showNameWindows(NameEntry *task, NameEntryWindows *windows, s32 show)
Shows the name entry's windows with their texts, or hides them.
void *(* load)(u32 file)
Definition file.h:92
A name entry: the keyboard, the name typed so far and the panels that open and close.
Definition name_entry.h:95
#define PALETTE_BLUE
a light blue: what is highlighted or current
Definition text.h:113