aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities/ron.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-12-23 23:56:36 +0000
committernathan <nathansmith@disroot.org>2025-12-23 23:56:36 +0000
commita5443e22bfce9ac00fdc6e746e17eb4aa68565f2 (patch)
tree8e38ce63353df35c0ff7a8f42c8c6f85fe169247 /src/entities/ron.c
parentbdeb4f943fc351daeec22b4ef71d551342dc5a01 (diff)
downloadFindThings-a5443e22bfce9ac00fdc6e746e17eb4aa68565f2.tar.gz
FindThings-a5443e22bfce9ac00fdc6e746e17eb4aa68565f2.tar.bz2
FindThings-a5443e22bfce9ac00fdc6e746e17eb4aa68565f2.zip
More menu shit
Diffstat (limited to 'src/entities/ron.c')
-rw-r--r--src/entities/ron.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/entities/ron.c b/src/entities/ron.c
index d01f25a..5c0eedb 100644
--- a/src/entities/ron.c
+++ b/src/entities/ron.c
@@ -16,6 +16,13 @@ void updateRon(Entity* entity, Game* game)
DrawModel(game->assets.models[RON_MODEL], entity->position, 1.0, WHITE);
}
+InteractionCommand handleRonMenu(Entity* entity, Game* game, int index)
+{
+ setInteractionChat(&game->interactionChat,
+ TextFormat("You selected test %d", index + 1));
+ return INTERACTION_TALK;
+}
+
InteractionCommand interactWithRon(Entity* entity, Game* game,
Selection selection)
{
@@ -40,10 +47,12 @@ InteractionCommand interactWithRon(Entity* entity, Game* game,
return INTERACTION_SHOW_MENU;
case SELECTION_LEAVE:
return INTERACTION_END;
+ case SELECTION_NEXT_MESSAGE:
+ return INTERACTION_END;
default:
if (selection >= SELECTION_MENU_ITEM && selection < SELECTION_LEAVE)
{
- printf("%d\n", getInteractionMenuIndex(selection));
+ return handleRonMenu(entity, game, getInteractionMenuIndex(selection));
}
return INTERACTION_DO_NOTHING;