Added fades for 3P4P menuing (#543)
* Added default menu transition for 3P4P options * Forgot to change the condition * formatting * Reverted change on single frame black Added comments
This commit is contained in:
parent
db01cf3d6f
commit
f70c9100b0
|
|
@ -5100,6 +5100,10 @@ void draw_fade_in(s32 arg0, s32 arg1, s32 arg2) {
|
|||
gDisplayListHead, x - (w / 2), y - (h / 2), rightEdge + ((w / 2) + x), (h / 2) + y, color->red,
|
||||
color->green, color->blue,
|
||||
0xFF - (gCurrentTransitionTime[arg0] * 0xFF / gTransitionDuration[arg0]));
|
||||
} else if ((arg0 == 4)) { // arg0 is the screenId. Why is it 4 in the Menu?
|
||||
gDisplayListHead = draw_box_wide(gDisplayListHead, x - (w / 2), y - (h / 2), (w / 2) + x, (h / 2) + y,
|
||||
color->red, color->green, color->blue,
|
||||
0xFF - (gCurrentTransitionTime[arg0] * 0xFF / gTransitionDuration[arg0]));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -5546,6 +5550,9 @@ void func_8009D77C(s32 arg0, s32 arg1, s32 arg2) {
|
|||
gDisplayListHead = draw_box_wide_pause_background(gDisplayListHead, var_t3 - temp_v1, var_t4 - temp_t8,
|
||||
rightEdge + someMath0, someMath1, temp_v0_2->red,
|
||||
temp_v0_2->green, temp_v0_2->blue, var_t2);
|
||||
} else if ((arg0 == 4)) { // arg0 is the screenId. Why is it 4 in the Menu?
|
||||
gDisplayListHead = draw_box_wide(gDisplayListHead, var_t3 - temp_v1, var_t4 - temp_t8, someMath0, someMath1,
|
||||
temp_v0_2->red, temp_v0_2->green, temp_v0_2->blue, var_t2);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue