adime_d_button_proc(3)
π adime_d_button_proc π
okay bestie, so this one lives in the Adime API Reference, and it's the glow-up version of a button β same energy as Allegro's own button proc but with that extra 3d-ish sparkle β¨
β¨ NAME β¨
adime_d_button_proc β the 3d-ified dialog button procedure, fr fr π
πΈ SYNOPSIS πΈ
#include <adime.h>
int adime_d_button_proc(int msg, DIALOG *d, int c)
π DESCRIPTION π
So it's similar to Allegro's d_button_proc(), except it's serving 3d-ish style β it's giving depth, it's giving dimension, it's giving main character button energy π
But heads up, it also behaves a little differently, and this is the part where you gotta pay attention bestie:
Unliked_button_proc(), theD_EXITflag has <b>no effect</b> here. Don't even try it. It literally does nothing. π
Instead, you set the d1 field to one of three constants, and that's what tells the button how to act:
ADIME_BUTTON_TOGGLEβ the button is basically a check box now ποΈ like, when you click it, it toggles back and forth between being in and being out. Vibes on, vibes off.ADIME_BUTTON_EXITβ click it and boom, the button exits the dialog πͺ bye bestie, the dialog is done.ADIME_BUTTON_CALLBACKβ if you hand it a callback function in thedp2field, that function gets called every single time the button is clicked π₯ This callback needs to have the form:
int my_callback(DIALOG *d)
and its return value gets passed straight back to the dialog manager π«Ά that's the whole loop, that's the cycle, that's iconic.
lowkey that's the whole page?? it's a short one but every word ate π
so yeah β this was adime_d_button_proc(3) from the Adime docs, and the whole thing is chilling at version 2.2.1 β catch you in the next manpage bestie, mwah ππ
π¦ where this page comes from
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms