Symphony Of Empires
main_menu.hpp
Go to the documentation of this file.
1
// Symphony of Empires
2
// Copyright (C) 2021, Symphony of Empires contributors
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
//
17
// ----------------------------------------------------------------------------
18
// Name:
19
// client/interface/main_menu.hpp
20
//
21
// Abstract:
22
// Does some important stuff.
23
// ----------------------------------------------------------------------------
24
25
#pragma once
26
27
#include "
client/game_state.hpp
"
28
#include "eng3d/ui/window.hpp"
29
#include "eng3d/ui/div.hpp"
30
31
namespace
UI
{
32
class
Input
;
33
class
Button;
34
}
35
36
namespace
Interface
{
37
class
MainMenuConnectServer
:
public
UI::Window
{
38
GameState
& gs;
39
public
:
40
MainMenuConnectServer
(
GameState
& gs);
41
42
UI::Input
*
ip_addr_inp
;
43
UI::Input
*
username_inp
;
44
UI::Button
*
conn_btn
;
45
};
46
47
class
MainMenu
:
public
UI::Div
{
48
public
:
49
MainMenu
(
GameState
&
gs
);
50
~MainMenu
()
override
;
51
52
GameState
&
gs
;
53
MainMenuConnectServer
*
connect_window
=
nullptr
;
54
};
55
}
GameState
Definition:
game_state.hpp:127
Input
Definition:
game_state.hpp:95
Interface::MainMenuConnectServer
Definition:
main_menu.hpp:37
Interface::MainMenuConnectServer::conn_btn
UI::Button * conn_btn
Definition:
main_menu.hpp:44
Interface::MainMenuConnectServer::username_inp
UI::Input * username_inp
Definition:
main_menu.hpp:43
Interface::MainMenuConnectServer::MainMenuConnectServer
MainMenuConnectServer(GameState &gs)
Definition:
main_menu.cpp:49
Interface::MainMenuConnectServer::ip_addr_inp
UI::Input * ip_addr_inp
Definition:
main_menu.hpp:42
Interface::MainMenu
Definition:
main_menu.hpp:47
Interface::MainMenu::gs
GameState & gs
Definition:
main_menu.hpp:52
Interface::MainMenu::~MainMenu
~MainMenu() override
Definition:
main_menu.cpp:243
Interface::MainMenu::connect_window
MainMenuConnectServer * connect_window
Definition:
main_menu.hpp:53
Interface::MainMenu::MainMenu
MainMenu(GameState &gs)
Definition:
main_menu.cpp:98
UI::Button
Button widget.
Definition:
button.hpp:32
UI::Input
Input widget for keyboard inputs.
Definition:
input.hpp:34
UI::Window
Window widget, this widget is similar to a Group widget, the key difference is that this one can be m...
Definition:
window.hpp:39
game_state.hpp
Interface
Definition:
game_state.hpp:111
UI
Definition:
game_state.hpp:117
UI::Div
A basic widget without any presets.
Definition:
div.hpp:38
game
src
client
interface
main_menu.hpp
Generated by
1.9.1