Decompile creditsDrawSlide

This commit is contained in:
Ryan Dwyer
2022-06-26 21:10:43 +10:00
parent 24baee631b
commit 2d2bc50182
6 changed files with 549 additions and 2579 deletions
+13 -11
View File
@@ -683,17 +683,19 @@
#define COVERFLAG_0100 0x0100
// L/C/R = left/centered/right
// big/med/sml is the font size
#define CREDITSTYLE_R_BIG_R_MED 1
#define CREDITSTYLE_C_BIG 2
#define CREDITSTYLE_C_MED 3
#define CREDITSTYLE_04 4
#define CREDITSTYLE_C_SML 5
#define CREDITSTYLE_L_BIG 7
#define CREDITSTYLE_R_MED 9
#define CREDITSTYLE_11 11
#define CREDITSTYLE_12 12
#define CREDITSTYLE_C_BIG_C_BIG 10
// SM/MD/LG = small/medium/large
#define CREDITSTYLE_CORETEAM 1 // LG C, MD R
#define CREDITSTYLE_HEADING1 2 // LG C, LG C
#define CREDITSTYLE_NAME1 3 // LG C, LG C
#define CREDITSTYLE_ASSISTANT 4 // MD C, MD C
#define CREDITSTYLE_COPYRIGHT 5 // SM C, SM C
#define CREDITSTYLE_UNUSED_06 6 // MD C, SM C
#define CREDITSTYLE_HEADING2 7 // LG L, LG L
#define CREDITSTYLE_UNUSED_08 8 // LG R, LG R
#define CREDITSTYLE_NAME2 9 // MD R, MD R
#define CREDITSTYLE_RAREDESIGNS 10 // LG C, LG C
#define CREDITSTYLE_SUPERVISOR 11 // MD L, MD R
#define CREDITSTYLE_EDITOR 12 // MD C, MD C
#define CREDITSTYLE_TERMINATOR 20
#define CROUCHPOS_SQUAT 0
+7 -7
View File
@@ -906,25 +906,25 @@ struct creditsdata {
void func0f137430(struct gfxvtx *vertices, f32 arg1, f32 arg2, f32 arg3, f32 arg4, f32 arg5, f32 arg6);
void creditsInitVertices(struct gfxvtx *vertices, s32 z);
void func0f137874(struct gfxvtx *vertices, u32 *colours, s32 arg2, s32 alpha, s32 arg4);
Gfx *creditsRenderBackgroundLayer(Gfx *gdl, u8 type, u8 layernum, f32 arg3, u32 alpha, s32 arg5);
Gfx *creditsDrawBackgroundLayer(Gfx *gdl, u8 type, u8 layernum, f32 arg3, u32 alpha, s32 arg5);
void creditsCopyBackgroundLayer(s32 srcindex, s32 dstindex, bool move);
Gfx *creditsRenderBackground(Gfx *gdl);
Gfx *creditsDrawBackground(Gfx *gdl);
f32 func0f1382e0(f32 range);
void creditsCreatePendingBgLayers(u32 mask);
Gfx *creditsClearFramebuffer(Gfx *gdl, u32 colour);
void creditsResetSprites(void);
void creditsTickSprites(void);
void creditsGetSpritePos(struct coord *pos, struct creditssprite *sprite, s32 spritenum);
Gfx *creditsRenderSprites(Gfx *gdl);
u32 func0f1399d0(void);
u32 func0f139d9c(void);
Gfx *creditsDrawSprites(Gfx *gdl);
Gfx *func0f1399d0(Gfx *gdl, s32 x, s32 y, char *text, struct fontchar *chars, struct font *font, f32 opacity, f32 speed, f32 spread);
Gfx *func0f139d9c(Gfx *gdl, s32 x, s32 y, char *text, struct fontchar *chars, struct font *font, f32 transfrac, s32 hdir, s32 vdir, s32 stretch);
void creditsResetSlides(void);
struct credit *creditGetByRow(s32 row);
void creditsTickSlide(void);
Gfx *func0f13a3ec(Gfx *gdl);
Gfx *creditsDrawSlide(Gfx *gdl);
void credits0f13ae04(Mtxf *mtx);
void creditsTick(void);
Gfx *creditsRender(Gfx *gdl);
Gfx *creditsDraw(Gfx *gdl);
void creditsReset(void);
void creditsRequestAltTitle(void);
+1 -2
View File
@@ -3476,8 +3476,7 @@ struct bootbufferthing {
struct credit {
u8 more : 1;
u8 notranin : 1;
u8 notranout : 1;
u8 retain : 2;
u8 durationindex : 2;
u8 style;
u16 text1;