19#ifndef HEADER_NETWORK_USER_DIALOG_HPP
20#define HEADER_NETWORK_USER_DIALOG_HPP
22#include "guiengine/modaldialog.hpp"
31 class IconButtonWidget;
46 const uint32_t m_host_id;
48 const uint32_t m_online_id;
50 const uint8_t m_local_id;
54 const core::stringw m_name;
56 const std::string m_country_code;
58 const bool m_allow_change_team;
60 bool m_self_destroy, m_open_report_textbox;
62 std::shared_ptr<RankingCallback> m_ranking_callback;
83 const core::stringw& name,
84 const std::string& country_code,
86 :
ModalDialog(0.8f,0.8f), m_host_id(host_id), m_online_id(online_id),
87 m_local_id(local_id), m_handicap(h),
88 m_name(name), m_country_code(country_code),
89 m_allow_change_team(allow_change_team), m_self_destroy(
false),
90 m_open_report_textbox(
false)
99 void onEnterPressedInternal() { m_self_destroy =
true; }
101 GUIEngine::EventPropagation
processEvent(
const std::string& source);
Abstract base class representing a modal dialog.
Definition: modaldialog.hpp:56
void loadFromFile(const char *xmlFile)
Load a XML file to create the dialog from.
Definition: modaldialog.cpp:69
ModalDialog(const float percentWidth, const float percentHeight, ModalDialogLocation location=MODAL_DIALOG_LOCATION_CENTER)
Creates a modal dialog with given percentage of screen width and height.
Definition: modaldialog.cpp:54
Dialog that handle player in network lobby.
Definition: network_player_dialog.hpp:44
GUIEngine::EventPropagation processEvent(const std::string &source)
Returns whether to block event propagation (usually, you will want to block events you processed)
Definition: network_player_dialog.cpp:222
virtual bool onEscapePressed()
Override to change what happens on escape pressed.
Definition: network_player_dialog.cpp:285
virtual void onUpdate(float dt)
Override to be notified of updates.
Definition: network_player_dialog.cpp:175
virtual void beforeAddingWidgets()
Optional callback invoked very early, before widgets have been added (contrast with init(),...
Definition: network_player_dialog.cpp:45
virtual void init()
Optional callback invoked after widgets have been add()ed.
Definition: network_player_dialog.cpp:168
Definition: ranking_callback.hpp:31
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33
HandicapLevel
Handicap per player.
Definition: remote_kart_info.hpp:42
Declares the general types that are used by the network.