|
Digimon World 3 decomp
The European version, SLES_039.36
|
The mode's main task, the lab, which runs the main menu and its screens; its files and helpers; and the overlay's tables. More...
#include "menus/digimon_lab.h"#include "shared/start_fade.inc.c"#include "shared/update_fade.inc.c"#include "shared/start_lerp.inc.c"#include "shared/update_lerp.inc.c"Go to the source code of this file.
Functions | |
| void | STGDGLAB_runLab (Lab *lab, LabChildren *children) |
| Creates the main menu and opens the screen it picks, back to the menu when the screen closes; once the menu is gone, ends the lab after the fade out. | |
| void | STGDGLAB_packParty (Lab *lab) |
| Counts the party and moves its members to the first places of GAME.party. | |
| void | STGDGLAB_updateLab (Lab *lab, LabChildren *children) |
| The mode's main task: loads the files and packs the party, then runs the lab (STGDGLAB_runLab) and draws sprite 0x37 sliding diagonally; when killed it goes back to the field (GAME.fieldMode) | |
| s32 | STGDGLAB_openLabMenu (Lab *lab) |
| Lab.openMenu: opens the main menu's page again; 1 if the menu was running. | |
| s32 | STGDGLAB_closeLabMenu (Lab *lab) |
| Lab.closeMenu: closes the main menu's page; 1 if the menu was running. | |
| s32 | STGDGLAB_labMenuRunning (Lab *lab) |
| Lab.menuOpen: 1 when the main menu's task is running (its page not fading) | |
| void | STGDGLAB_fadeOutLab (Lab *lab) |
| Lab.fadeOut: fades the screen out in 0x1E frames, as the lab is left. | |
| Lab * | STGDGLAB_createLab (void) |
| Creates the mode's main task, the lab. | |
| void | STGDGLAB_loadFiles (void) |
| Loads the lab's textures and requests its strings: the lab's and the Digimon's and skills' names and descriptions. | |
| s32 | STGDGLAB_filesLoading (void) |
| Whether the lab's strings are still loading. | |
| s32 | STGDGLAB_getItemSprite (s32 id) |
| The sprite of a recipe's id (STGDGLAB_entries), 0 for an id not there. | |
| s32 | STGDGLAB_getItemB (s32 id) |
| The third value (b) of a recipe's id in STGDGLAB_entries, 0 for an id not there; LabFuncs.getB, which nothing in the overlay calls. | |
Variables | |
| Task *(* | STGDGLAB_screens [])(Lab *lab) |
| The main menu's screens. | |
| PartnerAnim | STGDGLAB_partnerAnims [] |
| The partners' animation frames, -1 ends. | |
| LabWindowPos | STGDGLAB_layout [] |
| Where the windows go: the five stats' labels, their values and the name. | |
| LabEntry | STGDGLAB_entries [] |
| The items of the recipes, up to id 0: their sprite (STGDGLAB_getItemSprite) and STGDGLAB_getItemB's value. | |
| LabRecipe | STGDGLAB_recipes0 [] |
| The recipes of each table (STGDGLAB_data.recipes), by row and column. | |
| LabRecipe | STGDGLAB_recipes1 [] |
| LabRecipe | STGDGLAB_recipes2 [] |
| LabRecipe | STGDGLAB_recipes3 [] |
| LabRecipe | STGDGLAB_recipes4 [] |
| LabRecipe | STGDGLAB_recipes5 [] |
| LabRecipe | STGDGLAB_recipes6 [] |
| LabRecipe | STGDGLAB_recipes7 [] |
| LabData | STGDGLAB_data |
The mode's main task, the lab, which runs the main menu and its screens; its files and helpers; and the overlay's tables.
Definition in file lab.c.
| void STGDGLAB_runLab | ( | Lab * | lab, |
| LabChildren * | children | ||
| ) |
Creates the main menu and opens the screen it picks, back to the menu when the screen closes; once the menu is gone, ends the lab after the fade out.
Definition at line 8 of file lab.c.
Referenced by STGDGLAB_updateLab().
| void STGDGLAB_packParty | ( | Lab * | lab | ) |
Counts the party and moves its members to the first places of GAME.party.
Definition at line 42 of file lab.c.
Referenced by STGDGLAB_createLab(), and STGDGLAB_updateLab().
| void STGDGLAB_updateLab | ( | Lab * | lab, |
| LabChildren * | children | ||
| ) |
The mode's main task: loads the files and packs the party, then runs the lab (STGDGLAB_runLab) and draws sprite 0x37 sliding diagonally; when killed it goes back to the field (GAME.fieldMode)
Definition at line 68 of file lab.c.
Referenced by STGDGLAB_createLab().
Lab.openMenu: opens the main menu's page again; 1 if the menu was running.
Definition at line 112 of file lab.c.
Referenced by STGDGLAB_createLab().
Lab.closeMenu: closes the main menu's page; 1 if the menu was running.
Definition at line 124 of file lab.c.
Referenced by STGDGLAB_createLab().
Lab.menuOpen: 1 when the main menu's task is running (its page not fading)
Definition at line 136 of file lab.c.
Referenced by STGDGLAB_createLab().
| void STGDGLAB_fadeOutLab | ( | Lab * | lab | ) |
Lab.fadeOut: fades the screen out in 0x1E frames, as the lab is left.
Definition at line 147 of file lab.c.
Referenced by STGDGLAB_createLab().
| Lab * STGDGLAB_createLab | ( | void | ) |
| void STGDGLAB_loadFiles | ( | void | ) |
| s32 STGDGLAB_filesLoading | ( | void | ) |
The third value (b) of a recipe's id in STGDGLAB_entries, 0 for an id not there; LabFuncs.getB, which nothing in the overlay calls.
The main menu's screens.
Definition at line 234 of file lab.c.
Referenced by STGDGLAB_runLab().
| PartnerAnim STGDGLAB_partnerAnims[] |
The partners' animation frames, -1 ends.
| LabWindowPos STGDGLAB_layout[] |
Where the windows go: the five stats' labels, their values and the name.
| LabEntry STGDGLAB_entries[] |
The items of the recipes, up to id 0: their sprite (STGDGLAB_getItemSprite) and STGDGLAB_getItemB's value.
the items of the recipes
Definition at line 264 of file lab.c.
Referenced by STGDGLAB_getItemB(), and STGDGLAB_getItemSprite().
| LabRecipe STGDGLAB_recipes0[] |
The recipes of each table (STGDGLAB_data.recipes), by row and column.
to STGDGLAB_recipes7, by table
| LabRecipe STGDGLAB_recipes1[] |
| LabRecipe STGDGLAB_recipes2[] |
| LabRecipe STGDGLAB_recipes3[] |
| LabRecipe STGDGLAB_recipes4[] |
| LabRecipe STGDGLAB_recipes5[] |
| LabRecipe STGDGLAB_recipes6[] |
| LabRecipe STGDGLAB_recipes7[] |
| LabData STGDGLAB_data |
Definition at line 611 of file lab.c.
Referenced by changeRecipeRow(), checkRecipes(), closeMenuPage(), closeMessage(), loadSlotScreen(), openSlotOption(), pickRecipeId(), pickSlotOption(), putPickedEntry(), showMenuOptions(), showMenuPageLabel(), showMenuPageTitle(), showMenuTitle(), showPartyTitle(), showRecipeName(), showRecipeTitle(), STGDGLAB_closeEntryList(), STGDGLAB_closeMenu(), STGDGLAB_drawMenu(), STGDGLAB_drawPartyScreen(), STGDGLAB_drawRecipeScreen(), STGDGLAB_findRecipe(), STGDGLAB_hasRecipeId(), STGDGLAB_openMenu(), STGDGLAB_pickSkill(), STGDGLAB_runEntryList(), STGDGLAB_runMenu(), STGDGLAB_runPartyScreen(), STGDGLAB_runSlotScreen(), STGDGLAB_showMenuPage(), STGDGLAB_showPartyPage(), STGDGLAB_updateEntryPanel(), STGDGLAB_updateLab(), STGDGLAB_updateMenu(), STGDGLAB_updateRecipeScreen(), STGDGLAB_updateSkillPanel(), and waitMenuPageClosed().