update_menu(3alleg4)

πŸ’– update_menu β€” the Allegro manual, but make it make sense πŸ’–

okay so bestie, we're in update_menu(3alleg4) territory β€” that's section 3 of the Allegro game programming library's manual, and this one is a low level little cutie. not the glow-up function, the plumbing function. iykyk 🫢


✨ NAME ✨

update_menu β€” a low level function to update a menu player, from the Allegro game programming library. she's behind the scenes, she's doing the work, she's not asking for credit πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

int update_menu(MENU_PLAYER *player);

like. one line in, one int out. iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” update_menu() updates the status of a menu object that came back from init_menu(). that's it, that's the job.

it returns TRUE if the menu is still active, or FALSE if it has terminated. that's your vibe check right there: TRUE means keep going, FALSE means the menu said bye πŸ‘‹

and when you get that FALSE back? it is up to you, bestie. nobody's coming to save you. you either call shutdown_menu() or you just… keep executing. your call, your main character moment, your responsibility. no cap. 😭

not me making you read the return value and actually do something about it πŸ™ˆ

⭐ SEE ALSO ⭐


and that's the whole page, fr fr. this was Allegro β€” version 4.4.3 β€” serving you update_menu(3alleg4) realness. stay hydrated, read your return values, and don't forget to shutdown_menu() πŸ’œβœ¨