diff --git a/menu_messages.cpp b/menu_messages.cpp index 2bf1e5f..70113cc 100644 --- a/menu_messages.cpp +++ b/menu_messages.cpp @@ -15,7 +15,18 @@ const char **exit_dialogue_messages = (const char*[]){ const char **network_port_dialogue_messages = (const char*[]){ /*00*/ "Please supply a number as", - /*01*/ "network port", + /*01*/ "network port.", + /*02*/ "#", /* Empty line */ + /*03*/ "#", + /*04*/ "#", + /*05*/ "#", + /*06*/ "^|OK", + NULL +}; + +const char **network_unset_name_dlg = (const char*[]){ + /*00*/ "Please setup a name to use", + /*01*/ "on network connections.", /*02*/ "#", /* Empty line */ /*03*/ "#", /*04*/ "#", diff --git a/menu_messages.hh b/menu_messages.hh index 90bcf31..333c8e0 100644 --- a/menu_messages.hh +++ b/menu_messages.hh @@ -11,5 +11,6 @@ extern const char **options_menu_help[]; /* The menu messages are dynamically generated */ extern const char **network_menu_help[]; extern const char **network_port_dialogue_messages; +extern const char **network_unset_name_dlg; #endif diff --git a/network_menu.cpp b/network_menu.cpp index e514765..7a9ae90 100644 --- a/network_menu.cpp +++ b/network_menu.cpp @@ -63,6 +63,15 @@ public: Gui::gui->kv->activate(); Gui::gui->kv->registerListener(this); break; + case 4: + if ( strncmp(Gui::gui->np->NetworkName, "Unset", strlen("Unset")) == 0) + Gui::gui->pushDialogueBox(new DialogueBox(network_unset_name_dlg)); + else + printf("Connect NYI\n"); // FIXME! Do the actual connect + break; + case 6: + printf("Send message NYI\n"); // FIXME! Send message + break; default: break; }