The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_join_game_password_prompt.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 - 2016 by Ignacio Riquelme Morelle <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
16 
17 #include "gui/widgets/settings.hpp"
18 
19 namespace gui2
20 {
21 
22 /*WIKI
23  * @page = GUIWindowDefinitionWML
24  * @order = 2_mp_join_game_password_prompt
25  *
26  * == Join Game: Password Prompt ==
27  *
28  * Dialog for entering a password for joining a password-protected MP game.
29  *
30  * @begin{table}{dialog_widgets}
31  *
32  * password & & text_box & m &
33  * Input field for the game password. $
34  *
35  * @end{table}
36  */
37 
38 REGISTER_DIALOG(mp_join_game_password_prompt)
39 
41  std::string& password)
42 {
43  register_text("password", true, password, true);
44 }
45 
46 } // end namespace gui2
REGISTER_DIALOG(label_settings)
STL namespace.
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
This file contains the settings handling of the widget library.