From f70c9100b080a655fc71e4033206a5eef3844521 Mon Sep 17 00:00:00 2001 From: Varuuna Date: Wed, 24 Sep 2025 00:24:59 +0200 Subject: [PATCH] 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 --- src/menu_items.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/menu_items.c b/src/menu_items.c index 10aecd04b..c36758792 100644 --- a/src/menu_items.c +++ b/src/menu_items.c @@ -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; }