SSBM Decomp
Loading...
Searching...
No Matches
mnstagesw.c File Reference

Data Structures

struct  MnStageSwData

Macros

#define NUM_STAGES   29

Functions

static void mnStageSw_8023593C (HSD_GObj *gobj)
 Sync stage toggle states from user data to unlock system.
static void mnStageSw_802359C8 (MnStageSwData *data)
static s32 mnStageSw_80235C58 (u8 arg0)
static void mnStageSw_80235DC8 (u8 *user_data, s32 buttons)
static void fn_80235F80 (HSD_GObj *gobj)
static void mnStageSw_80236178 (HSD_GObj *gobj, u8 idx)
 Position stage icon JObj based on index Uses stored reference JObjs to calculate X/Y position.
static HSD_JObjmnStageSw_802364A0 (HSD_GObj *gobj, u8 idx)
 Get JObj for stage icon at given index Navigates JObj tree stored in gobj->user_data (idx < 15) or gobj->x34_unk (idx >= 15).
static void mnStageSw_80236548 (HSD_GObj *gobj, u8 arg1, u8 arg2)
static void fn_80236998 (HSD_GObj *gobj)
static HSD_GObjmnStageSw_80236CBC (s8 arg0)
static void mnStageSw_80236178_noinline (HSD_GObj *gobj, u8 idx)
static HSD_JObjmnStageSw_802364A0_noinline (HSD_GObj *gobj, u8 idx)
void mnStageSw_80237410 (void)

Variables

static u8 mnStageSw_803ED4C4 [NUM_STAGES]
 Stage switch toggle indices - maps menu position to internal stage ID.
static u8 mnStageSw_stageIcons [NUM_STAGES]
 Stage switch icon indices.
static HSD_GObjmnStageSw_804D6BF0
static s8 mnStageSw_804D6BF4
AnimLoopSettings mnStageSw_803ED488 [5]
u8 mn_804D6BB5
StaticModelDesc MenMainConSs_Top
StaticModelDesc MenMainCursorSs_Top

Macro Definition Documentation

◆ NUM_STAGES

#define NUM_STAGES   29

Function Documentation

◆ mnStageSw_8023593C()

void mnStageSw_8023593C ( HSD_GObj * gobj)
static

Sync stage toggle states from user data to unlock system.

For each stage, if it's unlocked, set its enable state from user_data[i+2]. Stack padding required to match original frame size. Pragma prevents inlining - function is called from fn_80235F80, not inlined.

◆ mnStageSw_802359C8()

void mnStageSw_802359C8 ( MnStageSwData * data)
static

◆ mnStageSw_80235C58()

s32 mnStageSw_80235C58 ( u8 arg0)
static

◆ mnStageSw_80235DC8()

void mnStageSw_80235DC8 ( u8 * user_data,
s32 buttons )
static

◆ fn_80235F80()

void fn_80235F80 ( HSD_GObj * gobj)
static

◆ mnStageSw_80236178()

void mnStageSw_80236178 ( HSD_GObj * gobj,
u8 idx )
static

Position stage icon JObj based on index Uses stored reference JObjs to calculate X/Y position.

◆ mnStageSw_802364A0()

HSD_JObj * mnStageSw_802364A0 ( HSD_GObj * gobj,
u8 idx )
static

Get JObj for stage icon at given index Navigates JObj tree stored in gobj->user_data (idx < 15) or gobj->x34_unk (idx >= 15).

◆ mnStageSw_80236548()

void mnStageSw_80236548 ( HSD_GObj * gobj,
u8 arg1,
u8 arg2 )
static

◆ fn_80236998()

void fn_80236998 ( HSD_GObj * gobj)
static

◆ mnStageSw_80236CBC()

HSD_GObj * mnStageSw_80236CBC ( s8 arg0)
static

◆ mnStageSw_80236178_noinline()

void mnStageSw_80236178_noinline ( HSD_GObj * gobj,
u8 idx )
static

◆ mnStageSw_802364A0_noinline()

HSD_JObj * mnStageSw_802364A0_noinline ( HSD_GObj * gobj,
u8 idx )
static

◆ mnStageSw_80237410()

void mnStageSw_80237410 ( void )

Variable Documentation

◆ mnStageSw_803ED4C4

u8 mnStageSw_803ED4C4[NUM_STAGES]
static
Initial value:
= {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x0B, 0x0A, 0x18, 0x1A, 0x1C, 0x0C, 0x0D, 0x0E, 0x0F, 0x10,
0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x19, 0x1B,
}

Stage switch toggle indices - maps menu position to internal stage ID.

◆ mnStageSw_stageIcons

u8 mnStageSw_stageIcons[NUM_STAGES]
static
Initial value:
= {
0x08, 0x09, 0x11, 0x0A, 0x0C, 0x06, 0x0B, 0x07, 0x0E, 0x0D,
0x1D, 0x17, 0x0F, 0x10, 0x12, 0x13, 0x14, 0x15, 0x1A, 0x1B,
0x1C, 0x16, 0x18, 0x1F, 0x20, 0x21, 0x22, 0x23, 0x24,
}

Stage switch icon indices.

◆ mnStageSw_804D6BF0

HSD_GObj* mnStageSw_804D6BF0
static

◆ mnStageSw_804D6BF4

s8 mnStageSw_804D6BF4
static

◆ mnStageSw_803ED488

AnimLoopSettings mnStageSw_803ED488[5]
extern

◆ mn_804D6BB5

u8 mn_804D6BB5
extern

◆ MenMainConSs_Top

StaticModelDesc MenMainConSs_Top
extern

◆ MenMainCursorSs_Top

StaticModelDesc MenMainCursorSs_Top
extern