Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
equip_panel.c File Reference

The third object of STSTATUS.PRO (see card_screen.c), the fifth screen's panel of STSTATUS_createEquipPanel: its rodata starts at 0x800826CC (USA). More...

#include "menus/field_menu.h"
Include dependency graph for equip_panel.c:

Go to the source code of this file.

Functions

void STSTATUS_createEquipWindows (EquipPanel *panel, EquipPanelWindows *windows)
 Creates the equipment panel's windows: the six slots, the list of items that fit the chosen one, their counts, the help and the slot's item.
 
void STSTATUS_showEquipment (EquipPanel *panel, EquipPanelWindows *windows, s32 show)
 The partner's equipment, or the slots' names where it has none.
 
void STSTATUS_showEquipItem (EquipPanel *panel, EquipPanelWindows *windows, s32 item)
 An item's name and, for slots 2 and 3, its kind (none: string 0x51)
 
void STSTATUS_showEquipList (EquipPanel *panel, EquipPanelWindows *windows, s32 show)
 Fills the list of the items that fit the slot.
 
void STSTATUS_showSlotItem (EquipPanel *panel, EquipPanelWindows *windows, s32 show)
 The item in the slot being changed, or the slot's name if it's empty.
 
void STSTATUS_drawEquipPanel (EquipPanel *panel)
 Draws the equipment panels: the partner's equipment, the list of items that fit the slot and the slot's item.
 
static void STSTATUS_openEquipTitle (EquipPanel *panel, EquipPanelWindows *windows)
 Once the title's panel is in, shows the title and starts the slots' panel.
 
static void STSTATUS_openEquipSlots (EquipPanel *panel, EquipPanelWindows *windows)
 Once the slots' panel is in, shows the equipment and the slot cursor.
 
static void STSTATUS_chooseEquipSlot (EquipPanel *panel, EquipPanelWindows *windows)
 Choosing a slot: up and down move the cursor, cross lists the owned items for the slot ("none" first, then those the partner can equip, then the others), triangle closes the panel.
 
static void STSTATUS_closeEquipSlots (EquipPanel *panel, EquipPanelWindows *windows)
 Starts closing the slots' panel for the item list.
 
static void STSTATUS_openSlotItem (EquipPanel *panel)
 Once the title's panel is closed, starts the slot's item panel.
 
static void STSTATUS_openEquipList (EquipPanel *panel, EquipPanelWindows *windows)
 Once the slot's item panel is in, shows the slot's item and starts the list's panel.
 
static void STSTATUS_enterEquipList (EquipPanel *panel, EquipPanelWindows *windows)
 Once the list's panel is in, shows the list, its cursor, the stats with the slot emptied and, past 8 items, the scroll bar.
 
static void STSTATUS_chooseEquipItem (EquipPanel *panel, EquipPanelWindows *windows)
 Choosing the item: up and down move the cursor, L1 and R1 scroll a page, the stats show the item's effect, cross equips it, triangle goes back.
 
static void STSTATUS_closeEquipList (EquipPanel *panel, EquipPanelWindows *windows)
 Starts closing the list's panel.
 
static void STSTATUS_closeSlotItem (EquipPanel *panel, EquipPanelWindows *windows)
 Once the list's panel is closed, starts closing the slot's item panel.
 
static void STSTATUS_closeEquipPanel (EquipPanel *panel, EquipPanelWindows *windows)
 Starts closing the panel: the slots' panel, the equipment and the cursor.
 
static void STSTATUS_closeEquipTitle (EquipPanel *panel, EquipPanelWindows *windows)
 Once the slots' panel is closed, starts closing the title's panel.
 
void STSTATUS_runEquipPanel (EquipPanel *panel, EquipPanelWindows *windows)
 The equipment panel's steps: a slot is chosen, then an item from the list of those that fit it, the ones the partner can equip first.
 
void STSTATUS_updateEquipPanel (EquipPanel *panel, EquipPanelWindows *windows)
 The equipment panel's task: creates its windows, then runs and draws it; when killed it clears the fifth screen's unk70.
 
EquipPanel * STSTATUS_createEquipPanel (StatsScreen *screen)
 Creates the fifth screen's equipment panel (task) for its chosen party member.
 

Variables

s32 STSTATUS_slotStrings []
 The strings of the empty equipment slots.
 
s32 STSTATUS_kindStrings []
 The strings of the item kinds (WeaponData.kind), from 1.
 
s32 STSTATUS_slotLists []
 The item list of each equipment slot.
 

Detailed Description

The third object of STSTATUS.PRO (see card_screen.c), the fifth screen's panel of STSTATUS_createEquipPanel: its rodata starts at 0x800826CC (USA).

Definition in file equip_panel.c.

Function Documentation

◆ STSTATUS_createEquipWindows()

void STSTATUS_createEquipWindows ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)

Creates the equipment panel's windows: the six slots, the list of items that fit the chosen one, their counts, the help and the slot's item.

equip_panel.c

Definition at line 8 of file equip_panel.c.

Referenced by STSTATUS_updateEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_showEquipment()

void STSTATUS_showEquipment ( EquipPanel *  panel,
EquipPanelWindows *  windows,
s32  show 
)

The partner's equipment, or the slots' names where it has none.

< ITMNAM

< STATUS: the field menu's and STSTATUS's

Definition at line 32 of file equip_panel.c.

Referenced by STSTATUS_closeEquipPanel(), STSTATUS_closeEquipSlots(), and STSTATUS_openEquipSlots().

Here is the caller graph for this function:

◆ STSTATUS_showEquipItem()

void STSTATUS_showEquipItem ( EquipPanel *  panel,
EquipPanelWindows *  windows,
s32  item 
)

An item's name and, for slots 2 and 3, its kind (none: string 0x51)

< ITMINF

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 55 of file equip_panel.c.

Referenced by STSTATUS_chooseEquipItem(), and STSTATUS_showEquipList().

Here is the caller graph for this function:

◆ STSTATUS_showEquipList()

void STSTATUS_showEquipList ( EquipPanel *  panel,
EquipPanelWindows *  windows,
s32  show 
)

Fills the list of the items that fit the slot.

< STATUS: the field menu's and STSTATUS's

< what is unavailable

< ITMNAM

< STATUS: the field menu's and STSTATUS's

< STATUS: the field menu's and STSTATUS's

Definition at line 72 of file equip_panel.c.

Referenced by STSTATUS_chooseEquipItem(), STSTATUS_closeEquipList(), and STSTATUS_enterEquipList().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_showSlotItem()

void STSTATUS_showSlotItem ( EquipPanel *  panel,
EquipPanelWindows *  windows,
s32  show 
)

The item in the slot being changed, or the slot's name if it's empty.

< STATUS: the field menu's and STSTATUS's

< ITMNAM

< STATUS: the field menu's and STSTATUS's

Definition at line 123 of file equip_panel.c.

Referenced by STSTATUS_closeSlotItem(), and STSTATUS_openEquipList().

Here is the caller graph for this function:

◆ STSTATUS_drawEquipPanel()

void STSTATUS_drawEquipPanel ( EquipPanel *  panel)

Draws the equipment panels: the partner's equipment, the list of items that fit the slot and the slot's item.

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

< GTE regards 4096 as 1.0

Definition at line 144 of file equip_panel.c.

Referenced by STSTATUS_updateEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_openEquipTitle()

static void STSTATUS_openEquipTitle ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the title's panel is in, shows the title and starts the slots' panel.

< STATUS: the field menu's and STSTATUS's

Definition at line 248 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the caller graph for this function:

◆ STSTATUS_openEquipSlots()

static void STSTATUS_openEquipSlots ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the slots' panel is in, shows the equipment and the slot cursor.

Definition at line 257 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_chooseEquipSlot()

static void STSTATUS_chooseEquipSlot ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Choosing a slot: up and down move the cursor, cross lists the owned items for the slot ("none" first, then those the partner can equip, then the others), triangle closes the panel.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 268 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the caller graph for this function:

◆ STSTATUS_closeEquipSlots()

static void STSTATUS_closeEquipSlots ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Starts closing the slots' panel for the item list.

Definition at line 314 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_openSlotItem()

static void STSTATUS_openSlotItem ( EquipPanel *  panel)
inlinestatic

Once the title's panel is closed, starts the slot's item panel.

Definition at line 324 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the caller graph for this function:

◆ STSTATUS_openEquipList()

static void STSTATUS_openEquipList ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the slot's item panel is in, shows the slot's item and starts the list's panel.

Definition at line 333 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_enterEquipList()

static void STSTATUS_enterEquipList ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the list's panel is in, shows the list, its cursor, the stats with the slot emptied and, past 8 items, the scroll bar.

Definition at line 344 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_chooseEquipItem()

static void STSTATUS_chooseEquipItem ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Choosing the item: up and down move the cursor, L1 and R1 scroll a page, the stats show the item's effect, cross equips it, triangle goes back.

< SYSTEM02: a cursor moves

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

Definition at line 363 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_closeEquipList()

static void STSTATUS_closeEquipList ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Starts closing the list's panel.

Definition at line 462 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_closeSlotItem()

static void STSTATUS_closeSlotItem ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the list's panel is closed, starts closing the slot's item panel.

Definition at line 470 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_closeEquipPanel()

static void STSTATUS_closeEquipPanel ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Starts closing the panel: the slots' panel, the equipment and the cursor.

Definition at line 479 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_closeEquipTitle()

static void STSTATUS_closeEquipTitle ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)
inlinestatic

Once the slots' panel is closed, starts closing the title's panel.

Definition at line 487 of file equip_panel.c.

Referenced by STSTATUS_runEquipPanel().

Here is the caller graph for this function:

◆ STSTATUS_runEquipPanel()

void STSTATUS_runEquipPanel ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)

The equipment panel's steps: a slot is chosen, then an item from the list of those that fit it, the ones the partner can equip first.

Definition at line 497 of file equip_panel.c.

Referenced by STSTATUS_updateEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_updateEquipPanel()

void STSTATUS_updateEquipPanel ( EquipPanel *  panel,
EquipPanelWindows *  windows 
)

The equipment panel's task: creates its windows, then runs and draws it; when killed it clears the fifth screen's unk70.

Definition at line 556 of file equip_panel.c.

Referenced by STSTATUS_createEquipPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ STSTATUS_createEquipPanel()

EquipPanel * STSTATUS_createEquipPanel ( StatsScreen *  screen)

Creates the fifth screen's equipment panel (task) for its chosen party member.

Definition at line 581 of file equip_panel.c.

Referenced by STSTATUS_openStatusPanel().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ STSTATUS_slotStrings

s32 STSTATUS_slotStrings[]
Initial value:
= {
65, 66, 67, 77,
68, 68,
}

The strings of the empty equipment slots.

the strings of the empty equipment slots

Definition at line 592 of file equip_panel.c.

Referenced by STSTATUS_showEquipList(), STSTATUS_showEquipment(), and STSTATUS_showSlotItem().

◆ STSTATUS_kindStrings

s32 STSTATUS_kindStrings[]
Initial value:
= {
67, 77, 79, 65,
66, 68, 80, 68,
}

The strings of the item kinds (WeaponData.kind), from 1.

the strings of the item kinds, from 1

Definition at line 597 of file equip_panel.c.

Referenced by STSTATUS_showEquipItem().

◆ STSTATUS_slotLists

s32 STSTATUS_slotLists[]
Initial value:
= {
6, 7, 5, 5,
4, 4,
}

The item list of each equipment slot.

the item list of each equipment slot

Definition at line 602 of file equip_panel.c.

Referenced by STSTATUS_chooseEquipSlot().