group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
MainMenuUI.hpp File Reference

ImGui widget for the main menu server join form. More...

#include "menus/host/ui/HostConfigUI.hpp"
#include "network/DiscoveryClient.hpp"
#include "network/discovery/GlobalDiscoveryProtocol.hpp"
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for MainMenuUI.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JoinMenuState
 Mutable widget state for the server join form. More...
struct  JoinMenuResult
 Output from a single main menu UI frame. More...

Namespaces

namespace  main_menu_ui

Enumerations

enum class  ServerBrowserTab { LocalListing , GlobalListing , DirectConnect , HostConfig }
 Tabs available on the server browser screen. More...

Functions

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.

Detailed Description

ImGui widget for the main menu server join form.

Enumeration Type Documentation

◆ ServerBrowserTab

enum class ServerBrowserTab
strong

Tabs available on the server browser screen.

Enumerator
LocalListing 
GlobalListing 
DirectConnect 
HostConfig