d_radio_proc(3alleg4)
π d_radio_proc π
okay bestie, welcome to the Allegro manual β section 3alleg4, the lil corner of the docs where the dialog magic lives β¨
β¨ NAME β¨
d_radio_proc β the dialog procedure that implements a radio button object, bestie. It's part of the Allegro game programming library π
β¨ SYNOPSIS β¨
#include <allegro.h>
int d_radio_proc(int msg, DIALOG *d, int c);
β¨ DESCRIPTION β¨
So it's a radio button object, periodt. π«Ά
Here's the tea: a dialog can contain any number of radio button groups β like, go off, have as many as you want. And when you select a radio button, it causes the other buttons within the same group to be deselected. That's the whole vibe: one winner per group, no sharing, main character energy only π
Now the fields, because details matter:
- The
dpfield points to the text string π¬ d1specifies the group number β this is how the buttons know who their siblings are π§d2is the button style, and the options are:0= circle β1= square π¦
That's it, that's the whole thing. Simple, iconic, ate π
β¨ SEE ALSO β¨
exgui(3alleg4)β go peek at it, iykyk π
and that's the page, bestie!! π this lil writeup is from the Allegro manual, version 4.4.3 β slay, mwah, take care of urself and ur radio groups πππ¦πΈβππ
π¦ 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