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 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] = { const char *broken_theme_dlg[8] = {
/*00*/ "The selected theme cannot be", /*00*/ "The selected theme cannot be",
/*01*/ "loaded, probably some file", /*01*/ "loaded, probably some file",
@ -271,6 +293,10 @@ const char **network_menu_help[9] = {
"you are playing with. You", "you are playing with. You",
"must be connected to use", "must be connected to use",
"this feature.", "this feature.",
" ",
"You can also press F10 on",
"the keyboard to activate",
"this.",
NULL, NULL,
}, },
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_menu_help[];
extern const char *network_port_dialogue_messages[]; extern const char *network_port_dialogue_messages[];
extern const char *network_unset_name_dlg[]; 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 *broken_theme_dlg[];
extern const char *select_analogue_dlg[]; extern const char *select_analogue_dlg[];
extern const char *game_info_bad_year_dlg[]; extern const char *game_info_bad_year_dlg[];

View File

@ -81,9 +81,20 @@ public:
Gui::gui->exitMenu(); Gui::gui->exitMenu();
break; break;
case 6: case 6:
if (TheC64->network_connection_type == NONE)
Gui::gui->pushDialogueBox(new DialogueBox(network_need_connection));
else
printf("Send message NYI\n"); // FIXME! Send message printf("Send message NYI\n"); // FIXME! Send message
break; break;
case 7: 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; break;
default: default:
break; break;