|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: configuration.c,v 1.53 2004/04/03 14:48:42 stpohle Exp $
|
|
|
|
|
/* $Id: configuration.c,v 1.54 2004/04/03 15:47:13 stpohle Exp $
|
|
|
|
|
* configuration */
|
|
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
@ -12,6 +12,7 @@
|
|
|
|
|
#include "sound.h"
|
|
|
|
|
#include "menu.h"
|
|
|
|
|
#include "keyb.h"
|
|
|
|
|
#include "player.h"
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
config_init (int argc, char **argv)
|
|
|
|
@ -90,14 +91,14 @@ config_init (int argc, char **argv)
|
|
|
|
|
draw_logo ();
|
|
|
|
|
bman.playername[LEN_PLAYERNAME - 1] = 0;
|
|
|
|
|
bman.playername[0] = 0;
|
|
|
|
|
config_menu ();
|
|
|
|
|
player_menu ();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
ReadPrgArgs (argc, argv);
|
|
|
|
|
gfx_init ();
|
|
|
|
|
draw_logo ();
|
|
|
|
|
if (bman.askplayername)
|
|
|
|
|
config_menu ();
|
|
|
|
|
player_menu ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
snd_init ();
|
|
|
|
@ -496,15 +497,16 @@ config_menu ()
|
|
|
|
|
while (menuselect != -1 && bman.state != GS_quit) {
|
|
|
|
|
menu_new ("Configuration", 400, 300);
|
|
|
|
|
menu_create_label ("General Option", -1, 50, 1, COLOR_brown);
|
|
|
|
|
menu_create_entry ("Name", -1, 85, 200, bman.playername, LEN_PLAYERNAME, MENU_entrytext, 1);
|
|
|
|
|
menu_create_button ("Video Setup", -1, 120, 200, 2);
|
|
|
|
|
menu_create_button ("Playermenu", 25, 85, 150, 1);
|
|
|
|
|
menu_create_button ("Keyboard", 225, 85, 150, 2);
|
|
|
|
|
menu_create_button ("Video Setup", -1, 120, 200, 3);
|
|
|
|
|
menu_create_label ("Sound", 25, 154, 0, COLOR_brown);
|
|
|
|
|
menu_create_bool ("ON", 100, 150, 50, &snd.playsound, 3);
|
|
|
|
|
menu_create_bool ("ON", 100, 150, 50, &snd.playsound, 4);
|
|
|
|
|
menu_create_label ("Music", 250, 154, 0, COLOR_brown);
|
|
|
|
|
menu_create_bool ("ON", 325, 150, 50, &snd.playmusic, 4);
|
|
|
|
|
menu_create_bool ("ON", 325, 150, 50, &snd.playmusic, 5);
|
|
|
|
|
menu_create_label ("Extended Option", -1, 200, 1, COLOR_brown);
|
|
|
|
|
menu_create_bool ("Debug", 25, 230, 150, &debug, 5);
|
|
|
|
|
menu_create_bool ("Ask Playername", 250, 230, 150, &bman.askplayername, 6);
|
|
|
|
|
menu_create_bool ("Debug", 25, 230, 150, &debug, 6);
|
|
|
|
|
menu_create_bool ("Ask Playername", 250, 230, 150, &bman.askplayername, 7);
|
|
|
|
|
menu_create_button ("Ok", -1, 270, 150, 0);
|
|
|
|
|
if (bman.playername[0] == '\0')
|
|
|
|
|
menu_focus_id (1);
|
|
|
|
@ -522,7 +524,13 @@ config_menu ()
|
|
|
|
|
else
|
|
|
|
|
menuselect = -1;
|
|
|
|
|
break;
|
|
|
|
|
case (2): // Screen Options
|
|
|
|
|
case (1): // player screen
|
|
|
|
|
player_menu ();
|
|
|
|
|
break;
|
|
|
|
|
case (2): // keyboard settings
|
|
|
|
|
keyb_config ();
|
|
|
|
|
break;
|
|
|
|
|
case (3): // Screen Options
|
|
|
|
|
config_video ();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|