Skip to content

Commit

Permalink
Tweak multiplay options menu text
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 21, 2024
1 parent b215da0 commit ab41ae4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3315,8 +3315,10 @@ void startMultiplayOptionsMenu()
grid->place({1, 1, false}, row, addMargin(makeTextButton(FRONTEND_GAME_PORT_R, std::to_string(NETgetGameserverPort()), WBUT_DISABLE))); // FUTURE TODO: Make this an input field or similar and allow editing (although reject ports <= 1024)
row.start++;

// Enable Port Mapping
grid->place({0}, row, addMargin(makeTextButton(FRONTEND_PORT_MAPPING, _("Enable Port Mapping"), WBUT_SECONDARY)));
// Port Mapping
auto portMappingTitle = makeTextButton(FRONTEND_PORT_MAPPING, _("Port Mapping"), WBUT_SECONDARY);
portMappingTitle->setTip(_("Use PCP, NAT-PMP, or UPnP to help configure your router / firewall to allow connections while hosting."));
grid->place({0}, row, addMargin(portMappingTitle));
grid->place({1, 1, false}, row, addMargin(makeTextButton(FRONTEND_PORT_MAPPING_R, multiplayOptionsPortMappingString(), WBUT_SECONDARY)));
row.start++;

Expand Down

0 comments on commit ab41ae4

Please sign in to comment.