group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
main_menu_ui Namespace Reference

Functions

JoinMenuResult buildJoinMenu (JoinMenuState &state, std::string_view errorMessage, const std::vector< DiscoveryClient::DiscoveredServer > &localServers, const std::vector< net::discovery::ServerInfo > &globalServers, std::string_view browserError, bool browserRefreshing, bool directConnectDisabled, const HostConfigUIInputs &hostInputs)
 Render the join game window and return any user action this frame.

Function Documentation

◆ buildJoinMenu()

JoinMenuResult main_menu_ui::buildJoinMenu ( JoinMenuState & state,
std::string_view errorMessage,
const std::vector< DiscoveryClient::DiscoveredServer > & localServers,
const std::vector< net::discovery::ServerInfo > & globalServers,
std::string_view browserError,
bool browserRefreshing,
bool directConnectDisabled,
const HostConfigUIInputs & hostInputs )

Render the join game window and return any user action this frame.

Parameters
statePersistent widget state (IP/port fields).
errorMessageOptional error string displayed in red below the form.
localServersLAN-discovered servers shown in the local browser table.
globalServersDirectory-discovered servers shown in the global browser table.
browserErrorOptional global-browser error displayed beside the refresh button.
browserRefreshingTrue while a global-browser refresh is in flight.
Returns
Actions the caller should apply (join, host, or refresh request).
Here is the call graph for this function:
Here is the caller graph for this function: