group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MainMenuUI.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
9
10#include <string>
11#include <string_view>
12#include <vector>
13
22
32
44
45namespace main_menu_ui
46{
47
57 std::string_view errorMessage,
58 const std::vector<DiscoveryClient::DiscoveredServer>& localServers,
59 const std::vector<net::discovery::ServerInfo>& globalServers,
60 std::string_view browserError,
61 bool browserRefreshing,
62 bool directConnectDisabled,
63 const HostConfigUIInputs& hostInputs);
64
65} // namespace main_menu_ui
Shared wire helpers for global server browser and NAT assist.
ImGui widget for local server hosting controls.
ServerBrowserTab
Tabs available on the server browser screen.
Definition MainMenuUI.hpp:16
@ LocalListing
Definition MainMenuUI.hpp:17
@ GlobalListing
Definition MainMenuUI.hpp:18
@ DirectConnect
Definition MainMenuUI.hpp:19
IScreen implementation for local server launch settings.
Definition HostConfig.hpp:21
Definition MainMenuUI.cpp:12
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.
Definition MainMenuUI.cpp:149
User actions emitted by the host-configuration UI for one frame.
Definition HostConfigUI.hpp:25
Inputs needed to render the host-configuration UI for one frame.
Definition HostConfigUI.hpp:13
Output from a single main menu UI frame.
Definition MainMenuUI.hpp:35
HostConfigResult hostConfig
Actions emitted by the host-config tab.
Definition MainMenuUI.hpp:42
int globalServerIndex
Index of a discovered server to join, or -1.
Definition MainMenuUI.hpp:41
bool returnToTitleScreenClicked
True if the user pressed "Return to Title Screen" this frame.
Definition MainMenuUI.hpp:39
bool connectClicked
True if the user pressed "Join" this frame.
Definition MainMenuUI.hpp:36
bool localRefreshClicked
True if the user requested a LAN browser refresh.
Definition MainMenuUI.hpp:37
bool refreshClicked
True if the user requested a global browser refresh.
Definition MainMenuUI.hpp:38
int localServerIndex
Index of a discovered local server to join, or -1.
Definition MainMenuUI.hpp:40
Mutable widget state for the server join form.
Definition MainMenuUI.hpp:25
std::string serverAddress
Server address entered by the user.
Definition MainMenuUI.hpp:26
ServerBrowserTab activeTab
Currently selected browser tab.
Definition MainMenuUI.hpp:27
std::string joiningLabel
Target label shown while joining.
Definition MainMenuUI.hpp:30
bool joining
True while an outbound join attempt is in progress.
Definition MainMenuUI.hpp:29
bool applyInitialTabSelection
True when the active tab should be forced selected once.
Definition MainMenuUI.hpp:28