18#ifndef HEADER_ONLINE_SCREEN_HPP
19#define HEADER_ONLINE_SCREEN_HPP
21#include "guiengine/screen.hpp"
28namespace GUIEngine {
class CheckBoxWidget;
class ListWidget;
29 class ButtonWidget;
class IconButtonWidget; }
40 core::stringw m_online_string;
42 core::stringw m_login_string;
52 std::shared_ptr<Server> m_entered_server;
61 virtual void onUpdate(
float delta) OVERRIDE;
71 const
int playerID) OVERRIDE;
74 virtual
void init() OVERRIDE;
79 void setEnteredServerName(const core::stringw& name)
Declares a class to be a singleton.
Definition: screen.hpp:59
Represents a single GUI screen.
Definition: screen.hpp:97
Handles the networking main menu.
Definition: online_screen.hpp:36
GUIEngine::IconButtonWidget * m_online
Keep the widget to avoid looking it up every frame.
Definition: online_screen.hpp:48
GUIEngine::ButtonWidget * m_user_id
Keep the widget to to the user name.
Definition: online_screen.hpp:45
virtual void onUpdate(float delta) OVERRIDE
optional callback you can override to be notified at every frame.
Definition: online_screen.cpp:108
virtual bool onEscapePressed() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_screen.cpp:239
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_screen.cpp:82
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_screen.cpp:67
virtual void beforeAddingWidget() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_screen.cpp:76
core::stringw m_entered_server_name
Save the previous successfully connected server name.
Definition: online_screen.hpp:55
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_screen.cpp:149
Definition: server.hpp:44
Describes a IPv4 or IPv6 address in sockaddr_in(6) format, suitable in using with sendto.
Definition: socket_address.hpp:47
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33