Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Official Feature Votes => Topic started by: jitspoe on January 05, 2008, 11:38:38 PM

Title: Feature: Message Box Dialogs
Post by: jitspoe on January 05, 2008, 11:38:38 PM
Sometimes it's useful, when executing commands  from a GUI, for example, to have the response come up in a dialog message box instead of being displayed at the console.

http://dplogin.com/dplogin/featurevote/feature.php?id=10027
Title: Re: Feature: Message Box Dialogs
Post by: webhead on January 06, 2008, 12:06:25 AM
what sort of GUI commands are you talking about?
Title: Re: Feature: Message Box Dialogs
Post by: Cobo on January 06, 2008, 12:22:34 AM
Oh this sounds nice, perhaps you could even have the option to use a built in command like MessageBox "Title" "Hello World" or making them with a script.
Title: Re: Feature: Message Box Dialogs
Post by: jitspoe on January 06, 2008, 03:13:03 AM
what sort of GUI commands are you talking about?
Things like the remote admin menu.

Some examples:

safe_cprintf(ent, PRINT_DIALOG, "You must be an OP to use this command.\n");
safe_cprintf(self, PRINT_DIALOG, "You are already on this team!\n");
safe_cprintf(self, PRINT_DIALOG, "Invalid team\n");
safe_cprintf(ent, PRINT_DIALOG, "Server does not have this map (%s).\n", mapname);
Title: Re: Feature: Message Box Dialogs
Post by: webhead on January 06, 2008, 03:22:22 AM
ah ok. +1 for making things a little more polished. :)
Title: Re: Feature: Message Box Dialogs
Post by: Cobo on January 06, 2008, 03:32:05 AM
Things like the remote admin menu.

Some examples:

safe_cprintf(ent, PRINT_DIALOG, "You must be an OP to use this command.\n");
safe_cprintf(self, PRINT_DIALOG, "You are already on this team!\n");
safe_cprintf(self, PRINT_DIALOG, "Invalid team\n");
safe_cprintf(ent, PRINT_DIALOG, "Server does not have this map (%s).\n", mapname);
Hm, I thought you were going to add like a console command.
Title: Re: Feature: Message Box Dialogs
Post by: sk89q on January 06, 2008, 01:43:59 PM
With this, besides making some of the messages in dialogs, I think some of them need to be rewritten to be more informative.