Re: [AD] Overloading Alert

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Daniel Schlyder wrote:

Chris:
Hmm.. perhaps we could modify allegro_message to use a popup GUI dialog
when in a gfx mode?

I like the idea, but...

#define BUTTON_TEXT "\some-special-escape-sequence"
allegro_message("This is a message box\nPh34r" BUTTON_TEXT "Click Me!");

...YUCK! :)

Why not just add allegro_message_ex(), with separate parameters for message
and button text, and deprecate allegro_message()?

I personally don't like the idea of adding anything to allegro_message(). It would only encourage its use beyond being a last ditch effort to show something to the user when you can't set a video mode.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/