group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HomeUI.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <string>
7#include <string_view>
8
11{
12 std::string serverIp = "127.0.0.1";
13 int serverPort = 9999;
14};
15
18{
19 bool connectClicked = false;
20};
21
22namespace home_ui
23{
24
29JoinMenuResult buildJoinMenu(JoinMenuState& state, std::string_view errorMessage = {});
30
31} // namespace home_ui
Definition HomeUI.cpp:10
JoinMenuResult buildJoinMenu(JoinMenuState &state, std::string_view errorMessage)
Render the join game window and return any user action this frame.
Definition HomeUI.cpp:11
Output from a single home UI frame.
Definition HomeUI.hpp:18
bool connectClicked
True if the user pressed "Join" this frame.
Definition HomeUI.hpp:19
Mutable widget state for the server join form.
Definition HomeUI.hpp:11
int serverPort
Server port entered by the user.
Definition HomeUI.hpp:13
std::string serverIp
Server hostname or IP address entered by the user.
Definition HomeUI.hpp:12