2023-12-19 08:54:50 -06:00
|
|
|
#include "global.h"
|
|
|
|
|
2024-04-02 18:20:08 -05:00
|
|
|
void func_fade_80084370(s32 arg0) {
|
2023-12-19 08:54:50 -06:00
|
|
|
Graphics_FillRectangle(&gMasterDisp, 0, 0, arg0, SCREEN_HEIGHT, 0, 0, 0, 255);
|
|
|
|
Graphics_FillRectangle(&gMasterDisp, SCREEN_WIDTH - arg0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 255);
|
|
|
|
}
|
|
|
|
|
2024-04-02 18:20:08 -05:00
|
|
|
void func_fade_800843FC(s32 arg0) {
|
2023-12-19 08:54:50 -06:00
|
|
|
Graphics_FillRectangle(&gMasterDisp, 0, 0, SCREEN_WIDTH, arg0, 0, 0, 0, 255);
|
|
|
|
Graphics_FillRectangle(&gMasterDisp, 0, SCREEN_HEIGHT - arg0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0, 0, 255);
|
|
|
|
}
|
|
|
|
|
2024-04-02 18:20:08 -05:00
|
|
|
void func_fade_80084488(s32 arg0) {
|
2023-12-19 08:54:50 -06:00
|
|
|
s32 var_s1;
|
|
|
|
|
|
|
|
RCP_SetupDL_12();
|
|
|
|
Matrix_Push(&gGfxMatrix);
|
2024-04-15 18:38:19 -05:00
|
|
|
Matrix_Translate(gGfxMatrix, 0.0f, 0.0f, -150.0f, MTXF_NEW);
|
2023-12-19 08:54:50 -06:00
|
|
|
for (var_s1 = 0; var_s1 < MIN(360, arg0 * 15); var_s1 += 15) {
|
|
|
|
gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 0, 0, 0, MIN((arg0 - (var_s1 / 15)) * 15, 255));
|
|
|
|
Matrix_Push(&gGfxMatrix);
|
2024-04-15 18:38:19 -05:00
|
|
|
Matrix_RotateZ(gGfxMatrix, var_s1 * M_DTOR, MTXF_APPLY);
|
|
|
|
Matrix_Scale(gGfxMatrix, 0.53f, 1.0f, 1.0f, MTXF_APPLY);
|
2023-12-19 08:54:50 -06:00
|
|
|
Matrix_SetGfxMtx(&gMasterDisp);
|
|
|
|
gSPDisplayList(gMasterDisp++, D_Gfx_800D9688);
|
|
|
|
Matrix_Pop(&gGfxMatrix);
|
|
|
|
}
|
|
|
|
Matrix_Pop(&gGfxMatrix);
|
|
|
|
}
|
|
|
|
|
2024-04-25 17:01:25 -05:00
|
|
|
void func_fade_80084688(s32 fade, s32 progress) {
|
|
|
|
if (progress != 0) {
|
|
|
|
switch (fade) {
|
2023-12-19 08:54:50 -06:00
|
|
|
case 0:
|
2024-04-25 17:01:25 -05:00
|
|
|
func_fade_80084488(progress);
|
2023-12-19 08:54:50 -06:00
|
|
|
break;
|
|
|
|
case 1:
|
2024-04-25 17:01:25 -05:00
|
|
|
func_fade_80084370(progress);
|
2023-12-19 08:54:50 -06:00
|
|
|
break;
|
|
|
|
case 2:
|
2024-04-25 17:01:25 -05:00
|
|
|
func_fade_800843FC(progress);
|
2023-12-19 08:54:50 -06:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
(void) "そのような フェード は ない (%d)\n"; // There is no such fade
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|