mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Helpful dialogues and error messages
This commit is contained in:
parent
3610fc19f5
commit
2fa2832bc3
@ -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,
|
||||
|
@ -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[];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user