do_dialog(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

🌸 do_dialog(3) β€” the vibe ✨

okay bestie, welcome to the do_dialog(3) page, aka the Allegro manual's own basic dialog manager. It's giving "make the dialog happen" energy, and we're gonna get you all the deets without losing a single crumb. 🫢

✨ NAME ✨

do_dialog β€” the basic dialog manager function from the Allegro game programming library. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int do_dialog(DIALOG *dialog, int focus_obj);

πŸ’– DESCRIPTION πŸ’–

So, do_dialog is the basic dialog manager function. It displays a dialog β€” which is an array of dialog objects, terminated by one with a NULL dialog procedure β€” and it sets the input focus to focus_obj. If you don't want anything to have the focus, pass -1. no cap, that's the move.

Then it interprets user input and dispatches messages as they are required. It keeps doing that until one of the dialog procedures tells it to close the dialog. At that point, do_dialog returns the index of the object that caused it to exit. πŸ‘‘

OR, if ESC is pressed, it returns -1. That's the emergency exit, bestie. πŸšͺπŸ’¨

🌈 SEE ALSO 🌈


mwah πŸ’‹ that's the page, bestie. Footer sign-off: Allegro manual, version 4.4.3, page do_dialog(3). The footer didn't give a date, so we're not making one up β€” periodt. ✨

πŸ“¦ where this page comes from