19#ifndef HEADER_SERVER_INFO_DIALOG_HPP
20#define HEADER_SERVER_INFO_DIALOG_HPP
22#include "guiengine/modaldialog.hpp"
29 class IconButtonWidget;
45 bool m_self_destroy, m_join_server;
47 const std::shared_ptr<Server> m_server;
62 video::ITexture* m_bookmark_icon;
64 video::ITexture* m_remove_icon;
66 void updateBookmarkStatus(
bool change_bookmark);
72 GUIEngine::EventPropagation
processEvent(
const std::string& eventSource);
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
A text field widget.
Definition: text_box_widget.hpp:53
Dialog that allows a user to sign in.
Definition: server_info_dialog.hpp:42
GUIEngine::TextBoxWidget * m_password
Specify server password if needed.
Definition: server_info_dialog.hpp:60
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: server_info_dialog.cpp:233
GUIEngine::IconButtonWidget * m_cancel_widget
The cancel button.
Definition: server_info_dialog.hpp:55
GUIEngine::EventPropagation processEvent(const std::string &eventSource)
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: server_info_dialog.cpp:193
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: server_info_dialog.cpp:241
virtual void beforeAddingWidgets()
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: server_info_dialog.cpp:302
GUIEngine::IconButtonWidget * m_join_widget
The join button.
Definition: server_info_dialog.hpp:52
void onEnterPressedInternal()
When the player pressed enter, select 'join' as default.
Definition: server_info_dialog.cpp:221
Definition: server.hpp:44
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
Declares the general types that are used by the network.