Decompile hudmsgCalculatePosition

This commit is contained in:
Ryan Dwyer
2021-06-09 12:16:48 +10:00
parent 9c12bb0e99
commit b9788c4b68
15 changed files with 340 additions and 1237 deletions
+13
View File
@@ -1106,6 +1106,16 @@
#define HUDHALIGN_LEFT 1
#define HUDHALIGN_MIDDLE 2
#define HUDMSGALIGN_SCREENLEFT 0
#define HUDMSGALIGN_LEFT 1
#define HUDMSGALIGN_RIGHT 2
#define HUDMSGALIGN_XMIDDLE 3
#define HUDMSGALIGN_SCREENTOP 4
#define HUDMSGALIGN_TOP 5
#define HUDMSGALIGN_BOTTOM 6
#define HUDMSGALIGN_YMIDDLE 7
#define HUDMSGALIGN_BELOWVIEWPORT 8
#define HUDMSGFLAG_ONLYIFALIVE 0x01
#define HUDMSGFLAG_FORCEOFF 0x02 // for subtitles - turn off message immediately rather than when audio finishes
#define HUDMSGFLAG_NOCHANNEL 0x04 // not linked to audio
@@ -1126,7 +1136,10 @@
#define HUDMSGTYPE_OBJECTIVEFAILED 2
#define HUDMSGTYPE_3 3
#define HUDMSGTYPE_4 4
#define HUDMSGTYPE_5 5
#define HUDMSGTYPE_INGAMESUBTITLE 6
#define HUDMSGTYPE_7 7
#define HUDMSGTYPE_8 8
#define HUDMSGTYPE_MPSCENARIO 9
#define HUDMSGTYPE_TRAINING 10
#define HUDMSGTYPE_CUTSCENESUBTITLE 11
+7 -7
View File
@@ -4,7 +4,7 @@
#include "data.h"
#include "types.h"
u8 func0f0dcdb0(void);
u8 hudmsgsAreActive(void);
s32 hudmsgIsZoomRangeVisible(void);
Gfx *hudmsgRenderMissionTimer(Gfx *gdl, u32 arg1);
Gfx *hudmsgRenderZoomRange(Gfx *gdl, s32 arg1);
@@ -14,13 +14,13 @@ void hudmsgsHideByChannel(s32 value);
void hudmsgsInit(void);
void hudmsgRemoveAll(void);
s32 hudmsgGetNext(s32 refid);
void hudmsgCreateViaPreset(char *text, s32 type);
void func0f0ddfa4(char *text, s32 type, s32 arg2);
void hudmsgCreateViaPresetWithColour(char *text, s32 type, u8 colour);
void hudmsgCreateViaStruct(char *text, s32 type, struct hudmessageconfig *config, s32 arg3);
void hudmsgCreate(char *text, s32 type);
void hudmsgCreateWithFlags(char *text, s32 type, u32 flags);
void hudmsgCreateWithColour(char *text, s32 type, u8 colour);
void hudmsgCreateWithDuration(char *text, s32 type, struct hudmsgtype *config, s32 duration60);
u32 func0f0de160(void);
void func0f0de7fc(struct hudmessage *msg);
void hudmsgCreate(char *text, s32 type, s32 conf00, s32 conf01, s32 conf02,
void hudmsgCalculatePosition(struct hudmessage *msg);
void hudmsgCreateFromArgs(char *text, s32 type, s32 conf00, s32 conf01, s32 conf02,
struct hudmessagething *conf04, struct hudmessagething *conf08,
u32 textcolour, u32 shadowcolour,
u32 alignh, s32 conf16, u32 alignv, s32 conf18, s32 arg14, u32 flags);
+8 -8
View File
@@ -2671,10 +2671,10 @@ struct player {
/*0x050c*/ u32 unk050c;
/*0x0510*/ Mtxf bondheadmatrices[4];
/*0x0610*/ struct player0610 viewport[2];
/*0x0630*/ s16 viewx; // 320 lo-res, 640 hi-res
/*0x0632*/ s16 viewy; // 220 regardless of res
/*0x0634*/ s16 viewleft; // 0
/*0x0636*/ s16 viewtop; // 0
/*0x0630*/ s16 viewwidth; // 320 lo-res, 640 hi-res
/*0x0632*/ s16 viewheight; // 220 regardless of res
/*0x0634*/ s16 viewleft; // 0
/*0x0636*/ s16 viewtop; // 0
/*0x0638*/ struct hand hands[2];
struct gunctrl gunctrl;
/*0x15f8*/ f32 gunposamplitude;
@@ -5148,7 +5148,7 @@ struct hudmessagething {
s32 unk00;
};
struct hudmessageconfig {
struct hudmsgtype {
/*0x00*/ u8 unk00;
/*0x01*/ u8 unk01;
/*0x02*/ u8 unk02;
@@ -5187,9 +5187,9 @@ struct hudmessage {
/*0x1c4*/ u32 flags;
/*0x1c8*/ u8 alignh;
/*0x1c9*/ u8 alignv;
/*0x1cc*/ u32 unk1cc;
/*0x1d0*/ u32 unk1d0;
/*0x1d4*/ u32 unk1d4;
/*0x1cc*/ u32 xmarginextra;
/*0x1d0*/ u32 xmargin;
/*0x1d4*/ u32 ymargin;
/*0x1d8*/ u32 hash;
};