From db04bfb989a5ebbd1f57e9983a2bb819c3ce4d67 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 21 Dec 2025 20:02:10 -0700 Subject: hehehehe over designed interaction menu --- src/ui.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 84a8f75..41f4591 100644 --- a/src/ui.c +++ b/src/ui.c @@ -158,10 +158,10 @@ void updateInteractionMenu(InteractionMenu* menu, Game* game) resizeInteractionMenu(menu, &game->settings); } - /* if (!menu->visible) */ - /* { */ - /* return; */ - /* } */ + if (!menu->visible) + { + return; + } // Draw background. Color background = DARKGRAY; @@ -187,7 +187,8 @@ void updateInteractionMenu(InteractionMenu* menu, Game* game) // Draw items. for (int index = 0; index < menu->itemCount; ++index) { - DrawText(TextFormat("%d: ", index + 1), position.x, position.y, fontSize, WHITE); + DrawText(TextFormat("%d: ", index + 1), position.x, position.y, fontSize, + WHITE); DrawText(TextFormat(" %s", menu->items[index]), position.x, position.y, fontSize, GREEN); position.y += fontSize; -- cgit v1.2.3