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
10
struct
JoinMenuState
11
{
12
std::string
serverIp
=
"127.0.0.1"
;
13
int
serverPort
= 9999;
14
};
15
17
struct
JoinMenuResult
18
{
19
bool
connectClicked
=
false
;
20
};
21
22
namespace
home_ui
23
{
24
29
JoinMenuResult
buildJoinMenu
(
JoinMenuState
& state, std::string_view errorMessage = {});
30
31
}
// namespace home_ui
home_ui
Definition
HomeUI.cpp:10
home_ui::buildJoinMenu
JoinMenuResult buildJoinMenu(JoinMenuState &state, std::string_view errorMessage)
Render the join game window and return any user action this frame.
Definition
HomeUI.cpp:11
JoinMenuResult
Output from a single home UI frame.
Definition
HomeUI.hpp:18
JoinMenuResult::connectClicked
bool connectClicked
True if the user pressed "Join" this frame.
Definition
HomeUI.hpp:19
JoinMenuState
Mutable widget state for the server join form.
Definition
HomeUI.hpp:11
JoinMenuState::serverPort
int serverPort
Server port entered by the user.
Definition
HomeUI.hpp:13
JoinMenuState::serverIp
std::string serverIp
Server hostname or IP address entered by the user.
Definition
HomeUI.hpp:12
src
client
menus
home
ui
HomeUI.hpp
Generated by
1.16.1