popup_dialog(3alleg4)
β¨ popup_dialog β¨
okay bestie, gather round, because we're talking about popup_dialog from the Allegro manual β the Allegro game programming library π this one is a total diva and honestly? she deserves it π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int popup_dialog(DIALOG *dialog, int focus_obj);
π DESCRIPTION π
So you already know and love do_dialog(), right? Well popup_dialog() is literally that, but with main character energy β¨ It stores what's on the screen before it draws the dialog, and then puts it right back when the dialog closes β like it was never even there. no cap. the screen is untouched, the vibe is immaculate π¦
Here's the part you actually need to remember though: the screen area that gets saved is calculated from the dimensions of the first object in the dialog π so every other object in that dialog needs to lie within that first one. like, all of them. tucked in. inside the box. if your other objects are wandering outside those bounds, that's not it, that's a problem π
π SEE ALSO π
do_dialog(3alleg4)β the original, the blueprint, the moment π
mwah, that's the whole page π this one's from Allegro, version 4.4.3, and yeah β that's the same popup_dialog(3alleg4) you came here for. go make something cute with it ππβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms