mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-17 21:03:21 -04:00
Decompile gasRender
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user