aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-22 03:02:10 +0000
committernathan <nathansmith@disroot.org>2025-12-22 03:02:10 +0000
commitdb04bfb989a5ebbd1f57e9983a2bb819c3ce4d67 (patch)
tree370c02d05800b9f856aa3a867da90e7ebd0f3a2b /src/ui.c
parentdabcd8342e77d4bfac4f7bc5cee8643121d379f7 (diff)
downloadFindThings-db04bfb989a5ebbd1f57e9983a2bb819c3ce4d67.tar.gz
FindThings-db04bfb989a5ebbd1f57e9983a2bb819c3ce4d67.tar.bz2
FindThings-db04bfb989a5ebbd1f57e9983a2bb819c3ce4d67.zip
hehehehe over designed interaction menu
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c11
1 files changed, 6 insertions, 5 deletions
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;