|
SSBM Decomp
|
#include "mncharsel.h"#include <melee/ft/forward.h>#include <sysdolphin/baselib/forward.h>#include <math.h>#include "inlines.h"#include "mnmain.h"#include "mnmainrule.h"#include "mnname.h"#include "mnnamenew.h"#include "types.h"#include <melee/gm/gm_1601.h>#include <melee/gm/gm_unsplit.h>#include <melee/gm/gmmain_lib.h>#include <melee/gm/types.h>#include <melee/lb/lb_00B0.h>#include <melee/lb/lb_013B.h>#include <melee/lb/lbarchive.h>#include <melee/lb/lbaudio_ax.h>#include <melee/lb/lbcardgame.h>#include <melee/lb/lbcardnew.h>#include <melee/lb/lbdvd.h>#include <melee/lb/lblanguage.h>#include <melee/lb/lbspdisplay.h>#include <melee/lb/types.h>#include <sysdolphin/baselib/aobj.h>#include <sysdolphin/baselib/cobj.h>#include <sysdolphin/baselib/controller.h>#include <sysdolphin/baselib/dobj.h>#include <sysdolphin/baselib/fog.h>#include <sysdolphin/baselib/gobj.h>#include <sysdolphin/baselib/gobjgxlink.h>#include <sysdolphin/baselib/gobjobject.h>#include <sysdolphin/baselib/gobjproc.h>#include <sysdolphin/baselib/gobjuserdata.h>#include <sysdolphin/baselib/jobj.h>#include <sysdolphin/baselib/lobj.h>#include <sysdolphin/baselib/memory.h>#include <sysdolphin/baselib/mobj.h>#include <sysdolphin/baselib/random.h>#include <sysdolphin/baselib/sislib.h>Data Structures | |
| struct | MnSelectChrModels |
| struct | MnSelectChrDataTable |
| struct | CSSCursorData |
| struct | CSSCharModel |
Macros | |
| #define | ICONROWHT_TOP_TOP 20.0F |
| Can't be enum bc float, but reused values. | |
| #define | ICONROWHT_MID_TOP 13.0F |
| #define | ICONROWHT_BTM_TOP 6.0F |
| #define | ICONROWHT_BTM_BTM (-1.0F) |
| #define | ICONROWY_TOP 20.2F |
| Where each icon row is drawn, as opposed to the bounds it is hit-tested against above. | |
| #define | ICONROWY_BTM 5.8F |
| #define | ICONBNDS_COL0_L (-30.0F) |
| Can't be enum bc float, but reused values. | |
| #define | ICONBNDS_COL1_L (-24.4F) |
| #define | ICONBNDS_COL2_L (-17.4F) |
| #define | ICONBNDS_COL3_L (-10.4F) |
| #define | ICONBNDS_COL4_L (-3.4F) |
| #define | ICONBNDS_COL5_L 3.6F |
| #define | ICONBNDS_COL6_L 10.6F |
| #define | ICONBNDS_COL7_L 17.6F |
| #define | ICONBNDS_COL8_L 24.4F |
| #define | ICONBNDS_COL8_R 30.2F |
| #define | show_kos(x, y) |
Functions | |
| TextKerning * | mnCharSel_8025BC20 (TextKerning *arg0, u32 arg1) |
| void | mnCharSel_8025BD30 (void) |
| static f32 | loadStickValue (const s8 *value) |
| static void | getStickDelta (int port, f32 *dx, f32 *dy) |
| static void | drawTimeText (HSD_Text *x, HSD_Text *y, int hours, int minutes, int seconds, int microseconds) |
| static u32 | getClassicHighscore (u8 hud) |
| static u32 | getAdventureHighscore (u8 hud) |
| static u32 | getAllStarHighscore (u8 hud) |
| static f32 | toMeters (f32 cm) |
| Centimetres to metres, truncated to one decimal place. | |
| static f32 | toFeet (f32 cm) |
| Centimetres to feet, truncated to one decimal place. | |
| static HSD_JObj * | inline3 (int i, float x) |
| void | mnCharSel_8025C020 (int arg0) |
| void | mnCharSel_8025D1C4 (int port, int mode) |
| static void | sethidden (HSD_JObj *jobj, bool hidden) |
| static HSD_JObj * | animateJoint (HSD_JObj *root, u8 joint, u32 mask, f32 frame) |
| static HSD_JObj * | animateJointPadded (HSD_JObj *root, u8 joint, u32 mask, f32 frame) |
| static HSD_JObj * | animateJointLeadingPad (HSD_JObj *root, u8 joint, u32 mask, f32 frame) |
| void | mnCharSel_8025D5AC (int door, int frame, bool hidden) |
| static bool | isDuplicateCostumeWith (int door, CSSData *css, u8 door_count) |
| static CSSData * | loadCSSValue (CSSData *volatile *css) |
| static bool | equalU8 (u8 lhs, u8 rhs) |
| static bool | isDuplicateCostumeCached (int door) |
| Variant of isDuplicateCostume that reads the base door's icon and costume once before the scan. | |
| static bool | isDuplicateCostumeExact (int door) |
| static bool | isDuplicateCostume (int door) |
| bool | mnCharSel_8025DAA0 (int door) |
| static void | pickUniqueCostume (int door) |
| static s32 | getHandicapValue (int port) |
| void | mnCharSel_8025DB34 (u8 arg0) |
| void | mnCharSel_8025EE8C (u8 idx) |
| static void | updateStockIcons (struct CSSDoorsData2 *stock_data, HSD_JObj **stock_jobj, s32 i) |
| void | fn_8025F0E0 (HSD_GObj *gobj) |
| void | fn_8025FAC0 (HSD_GObj *gobj) |
| void | fn_8025FB2C (HSD_GObj *gobj) |
| static s32 | getIconOffset (u32 icon_idx) |
| static s32 | getPlayerForDoor (u8 door) |
| void | mnCharSel_8025FB50 (u8 door, s32 arg1) |
| s32 | mnCharSel_8025FDEC (u8 door) |
| void | mnCharSel_CostumeChange (int door, u32 input) |
| static void | updateCursorDisplay (HSD_JObj *jobj, struct CSSCursorData *cursor, HSD_JObj **state_jobj, HSD_JObj **color_jobj) |
| static void | updateGrabbedSlider (struct CSSCursorData *cursor, CSSDoor *door, s32 door_idx, u32 trigger, HSD_JObj **slider_jobj, Point3d *pos, bool is_handicap) |
| static void | cycleTeam (struct CSSCursorData *cursor, CSSDoor *dp, s32 di) |
| Advances the door's team colour when the cursor clicks its team box. | |
| void | mnCharSel_CursorThink (HSD_GObj *gobj) |
| static int | getDoorCount (CSSData *css) |
| static void | animateCharModel (HSD_JObj *jobj, f32 frame) |
| void | fn_80262648 (HSD_GObj *gobj) |
| void | fn_80262F44 (HSD_GObj *gobj) |
| void | fn_80263354 (HSD_GObj *gobj) |
| void | fn_802633B0 (HSD_GObj *gobj) |
| void | mnCharSel_80264070 (void) |
| void | fn_8026407C (HSD_GObj *gobj) |
| s32 | mnCharSel_802640A0 (void) |
| void | mnCharSel_Scene_OnEnter (void *arg0) |
| void | mnCharSel_Scene_OnFrame (void) |
| void | mnCharSel_Scene_OnExit (void *unused) |
| #define ICONROWHT_TOP_TOP 20.0F |
Can't be enum bc float, but reused values.
| #define ICONROWHT_MID_TOP 13.0F |
| #define ICONROWHT_BTM_TOP 6.0F |
| #define ICONROWHT_BTM_BTM (-1.0F) |
| #define ICONROWY_TOP 20.2F |
Where each icon row is drawn, as opposed to the bounds it is hit-tested against above.
| #define ICONROWY_BTM 5.8F |
| #define ICONBNDS_COL0_L (-30.0F) |
Can't be enum bc float, but reused values.
| #define ICONBNDS_COL1_L (-24.4F) |
| #define ICONBNDS_COL2_L (-17.4F) |
| #define ICONBNDS_COL3_L (-10.4F) |
| #define ICONBNDS_COL4_L (-3.4F) |
| #define ICONBNDS_COL5_L 3.6F |
| #define ICONBNDS_COL6_L 10.6F |
| #define ICONBNDS_COL7_L 17.6F |
| #define ICONBNDS_COL8_L 24.4F |
| #define ICONBNDS_COL8_R 30.2F |
| #define show_kos | ( | x, | |
| y ) |
| TextKerning * mnCharSel_8025BC20 | ( | TextKerning * | arg0, |
| u32 | arg1 ) |
| void mnCharSel_8025BD30 | ( | void | ) |
|
inlinestatic |
|
inlinestatic |
| void mnCharSel_8025C020 | ( | int | arg0 | ) |
| void mnCharSel_8025D1C4 | ( | int | port, |
| int | mode ) |
| void mnCharSel_8025D5AC | ( | int | door, |
| int | frame, | ||
| bool | hidden ) |
|
inlinestatic |
Variant of isDuplicateCostume that reads the base door's icon and costume once before the scan.
|
inlinestatic |
|
inlinestatic |
| bool mnCharSel_8025DAA0 | ( | int | door | ) |
|
inlinestatic |
|
inlinestatic |
| void mnCharSel_8025DB34 | ( | u8 | arg0 | ) |
| void mnCharSel_8025EE8C | ( | u8 | idx | ) |
|
inlinestatic |
| void fn_8025F0E0 | ( | HSD_GObj * | gobj | ) |
| void fn_8025FAC0 | ( | HSD_GObj * | gobj | ) |
| void fn_8025FB2C | ( | HSD_GObj * | gobj | ) |
| void mnCharSel_CostumeChange | ( | int | door, |
| u32 | input ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Advances the door's team colour when the cursor clicks its team box.
| void mnCharSel_CursorThink | ( | HSD_GObj * | gobj | ) |
|
inlinestatic |
| void fn_80262648 | ( | HSD_GObj * | gobj | ) |
| void fn_80262F44 | ( | HSD_GObj * | gobj | ) |
| void fn_80263354 | ( | HSD_GObj * | gobj | ) |
| void fn_802633B0 | ( | HSD_GObj * | gobj | ) |
| void mnCharSel_80264070 | ( | void | ) |
| void fn_8026407C | ( | HSD_GObj * | gobj | ) |
| s32 mnCharSel_802640A0 | ( | void | ) |
| void mnCharSel_Scene_OnEnter | ( | void * | arg0 | ) |
| void mnCharSel_Scene_OnFrame | ( | void | ) |
| void mnCharSel_Scene_OnExit | ( | void * | unused | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
number of (open? valid?) CSS doors
|
static |
::CSSPendingSceneChangeKind
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Nametag list think callback - handles scrolling through nametag list.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |