|
|
@ -384,32 +384,41 @@ void
|
|
|
|
config_menu ()
|
|
|
|
config_menu ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int menuselect = 0;
|
|
|
|
int menuselect = 0;
|
|
|
|
while (menuselect != -1 && bman.state != GS_quit) {
|
|
|
|
|
|
|
|
menu_new ("Configuration", 400, 300);
|
|
|
|
|
|
|
|
menu_create_label ("General Option", -1, 50, 1);
|
|
|
|
|
|
|
|
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_label ("Sound", 25 , 154, 0);
|
|
|
|
|
|
|
|
menu_create_bool ("ON", 100, 150, 50, &snd.playsound, 3);
|
|
|
|
|
|
|
|
menu_create_label ("Music", 250 , 154, 0);
|
|
|
|
|
|
|
|
menu_create_bool ("ON", 325, 150, 50, &snd.playmusic, 4);
|
|
|
|
|
|
|
|
menu_create_label ("Extended Option", -1, 200, 1);
|
|
|
|
|
|
|
|
menu_create_bool ("Debug", 25, 230, 150, &debug, 5);
|
|
|
|
|
|
|
|
menu_create_bool ("Ask Playername", 250, 230, 150, &bman.askplayername, 6);
|
|
|
|
|
|
|
|
menu_create_button ("Ok", -1, 270, 150, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menu_new ("Configuration", 400, 300);
|
|
|
|
|
|
|
|
menu_create_label ("General Option", -1, 50, 1);
|
|
|
|
|
|
|
|
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_label ("Sound", 25 , 154, 0);
|
|
|
|
|
|
|
|
menu_create_bool ("ON", 100, 150, 50, &snd.playsound, 3);
|
|
|
|
|
|
|
|
menu_create_label ("Music", 250 , 154, 0);
|
|
|
|
|
|
|
|
menu_create_bool ("ON", 325, 150, 50, &snd.playmusic, 4);
|
|
|
|
|
|
|
|
menu_create_label ("Extended Option", -1, 200, 1);
|
|
|
|
|
|
|
|
menu_create_bool ("Debug", 25, 230, 150, &debug, 5);
|
|
|
|
|
|
|
|
menu_create_bool ("Ask Playername", 250, 230, 150, &bman.askplayername, 6);
|
|
|
|
|
|
|
|
menu_create_button ("Ok", -1, 270, 150, 0);
|
|
|
|
|
|
|
|
while (menuselect != -1 && bman.state != GS_quit) {
|
|
|
|
|
|
|
|
if (bman.playername[0] == '\0')
|
|
|
|
|
|
|
|
menu_focus_id (1);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
menu_focus_id (0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menu_reload ();
|
|
|
|
menuselect = menu_loop ();
|
|
|
|
menuselect = menu_loop ();
|
|
|
|
menu_delete ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (menuselect) {
|
|
|
|
switch (menuselect) {
|
|
|
|
case (0): // Back to the Main Menu
|
|
|
|
case (0): // Back to the Main Menu
|
|
|
|
menuselect = -1;
|
|
|
|
if (bman.playername[0] == '\0')
|
|
|
|
|
|
|
|
menuselect = 0;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
menuselect = -1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case (2): // Screen Options
|
|
|
|
case (2): // Screen Options
|
|
|
|
config_video ();
|
|
|
|
config_video ();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
menu_delete ();
|
|
|
|
config_write ();
|
|
|
|
config_write ();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|