Decompile gasRender

This commit is contained in:
Ryan Dwyer
2022-09-16 20:52:10 +10:00
parent 572688668e
commit 15c067fe36
27 changed files with 275 additions and 807 deletions
+2 -2
View File
@@ -627,7 +627,7 @@ s32 mpPlacementMenuHandler(s32 operation, struct menuitem *item, union handlerda
{
if (operation == MENUOP_GETCOLOUR) {
if (g_PlayerConfigsArray[g_MpPlayerNum].base.placement == 0) { // winner
data->label.colour2 = colourBlend(data->label.colour2, 0xffff00ff, func0f006b08(40) * 255);
data->label.colour2 = colourBlend(data->label.colour2, 0xffff00ff, menuGetSinOscFrac(40) * 255);
}
}
@@ -708,7 +708,7 @@ s32 mpPlayerTitleMenuHandler(s32 operation, struct menuitem *item, union handler
{
if (operation == MENUOP_GETCOLOUR) {
if (g_PlayerConfigsArray[g_MpPlayerNum].title != g_PlayerConfigsArray[g_MpPlayerNum].newtitle) {
data->label.colour2 = colourBlend(data->label.colour2, 0xffff00ff, func0f006b08(40) * 255);
data->label.colour2 = colourBlend(data->label.colour2, 0xffff00ff, menuGetSinOscFrac(40) * 255);
}
}
+1 -1
View File
@@ -1209,7 +1209,7 @@ Gfx *mpRenderModalText(Gfx *gdl)
#endif
if (g_MpSetup.paused == MPPAUSEMODE_PAUSED) {
s32 red = (s32) ((1.0f - var80061630) * 20.0f * 255.0f) % 255;
s32 red = (s32) ((1.0f - g_20SecIntervalFrac) * 20.0f * 255.0f) % 255;
s32 stack2;
gdl = text0f153628(gdl);
+3 -3
View File
@@ -730,7 +730,7 @@ bool scenarioHighlightProp(struct prop *prop, s32 *colour)
colour[0] = 0;
colour[1] = 0xcd;
colour[2] = 0xff;
colour[3] = func0f006b08(20) * 255;
colour[3] = menuGetSinOscFrac(20) * 255;
return true;
}
}
@@ -769,7 +769,7 @@ bool scenarioHighlightProp(struct prop *prop, s32 *colour)
colour[0] = tmp >> 24 & 0xff;
colour[1] = tmp >> 16 & 0xff;
colour[2] = tmp >> 8 & 0xff;
colour[3] = pulse ? (s32)(func0f006b08(20) * 128) : 75;
colour[3] = pulse ? (s32)(menuGetSinOscFrac(20) * 128) : 75;
return true;
}
@@ -777,7 +777,7 @@ bool scenarioHighlightProp(struct prop *prop, s32 *colour)
colour[0] = 0;
colour[1] = 0xcd;
colour[2] = 0xff;
colour[3] = func0f006b08(20) * 205;
colour[3] = menuGetSinOscFrac(20) * 205;
return true;
}
}