From a5443e22bfce9ac00fdc6e746e17eb4aa68565f2 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 23 Dec 2025 16:56:36 -0700 Subject: More menu shit --- src/entities/ron.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/entities') 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; -- cgit v1.2.3