update_menu(3)
π update_menu(3) π
ok so bestie, welcome to the Allegro manual β yes, the Allegro game programming library, the whole reason we're here. This page is all about update_menu, a low level function to update a menu player. Low level means it's giving backstage-pass energy, not front-row-seat energy, but trust, it's important. π
β¨ NAME β¨
update_menu β the low level function that updates a menu player. Part of the Allegro game programming library. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int update_menu(MENU_PLAYER *player);
π¦ DESCRIPTION π¦
So here's the tea, bestie: update_menu() updates the status of a menu object β and that menu object is one that came back to you from init_menu(). You don't just summon it out of thin air, okay? It's a whole relationship. π«Ά
It returns TRUE if the menu is still active (she's alive, she's thriving, keep going), or FALSE if it has terminated (she's done, she said goodbye, she logged off). π
And here's the part you actually need to pay attention to: if it hands you back FALSE, then it's up to you to call shutdown_menu() β or to just continue execution. Your call, your main character moment, but the function is NOT doing it for you. No cap. π
fr fr, that FALSE return is your cue to act. Nobody's coming to clean up for you. π
π SEE ALSO π
and that's the whole page, periodt. This little icon was brought to you by Allegro, version 4.4.3 β mwah, love her, thanks for everything. Now go call shutdown_menu() when she tells you to. β¨π¦π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms