diff --git a/Src/gui/menu_messages.c b/Src/gui/menu_messages.c index 2736dd8..ffda2e6 100644 --- a/Src/gui/menu_messages.c +++ b/Src/gui/menu_messages.c @@ -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, diff --git a/Src/gui/menu_messages.hh b/Src/gui/menu_messages.hh index 4027383..b39c8a9 100644 --- a/Src/gui/menu_messages.hh +++ b/Src/gui/menu_messages.hh @@ -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[]; diff --git a/Src/gui/network_menu.cpp b/Src/gui/network_menu.cpp index 2c358bc..12b67ff 100644 --- a/Src/gui/network_menu.cpp +++ b/Src/gui/network_menu.cpp @@ -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;