Helpful dialogues and error messages

This commit is contained in:
simon.kagstrom 2010-02-21 13:16:04 +00:00
parent 3610fc19f5
commit 2fa2832bc3
3 changed files with 40 additions and 1 deletions

View File

@ -35,6 +35,28 @@ const char *network_unset_name_dlg[8] = {
NULL
};
const char *network_need_connection[8] = {
/*00*/ "You need to be connected",
/*01*/ "to the C64 network to",
/*02*/ "use this feature",
/*03*/ "#",
/*04*/ "#",
/*05*/ "#",
/*06*/ "^|OK",
NULL
};
const char *network_need_peer[8] = {
/*00*/ "You need to be connected",
/*01*/ "to a peer on the network",
/*02*/ "to use this feature",
/*03*/ "#",
/*04*/ "#",
/*05*/ "#",
/*06*/ "^|OK",
NULL
};
const char *broken_theme_dlg[8] = {
/*00*/ "The selected theme cannot be",
/*01*/ "loaded, probably some file",
@ -271,6 +293,10 @@ const char **network_menu_help[9] = {
"you are playing with. You",
"must be connected to use",
"this feature.",
" ",
"You can also press F10 on",
"the keyboard to activate",
"this.",
NULL,
},
NULL,

View File

@ -15,6 +15,8 @@ extern const char *game_info_menu_messages[];
extern const char **network_menu_help[];
extern const char *network_port_dialogue_messages[];
extern const char *network_unset_name_dlg[];
extern const char *network_need_connection[];
extern const char *network_need_peer[];
extern const char *broken_theme_dlg[];
extern const char *select_analogue_dlg[];
extern const char *game_info_bad_year_dlg[];

View File

@ -81,9 +81,20 @@ public:
Gui::gui->exitMenu();
break;
case 6:
printf("Send message NYI\n"); // FIXME! Send message
if (TheC64->network_connection_type == NONE)
Gui::gui->pushDialogueBox(new DialogueBox(network_need_connection));
else
printf("Send message NYI\n"); // FIXME! Send message
break;
case 7:
if (TheC64->network_connection_type != MASTER &&
TheC64->network_connection_type != CLIENT)
Gui::gui->pushDialogueBox(new DialogueBox(network_need_peer));
else
{
Gui::gui->exitMenu();
TheC64->TheDisplay->TypeNetworkMessage();
}
break;
default:
break;