The Battle for Wesnoth  1.15.1+dev
mp_join_game_password_prompt.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 - 2018 by Iris Morelle <shadowm2006@gmail.com>
3  Part of the Battle for Wesnoth Project https://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 namespace dialogs
22 {
23 
24 /*WIKI
25  * @page = GUIWindowDefinitionWML
26  * @order = 2_mp_join_game_password_prompt
27  *
28  * == Join Game: Password Prompt ==
29  *
30  * Dialog for entering a password for joining a password-protected MP game.
31  *
32  * @begin{table}{dialog_widgets}
33  *
34  * password & & text_box & m &
35  * Input field for the game password. $
36  *
37  * @end{table}
38  */
39 
40 REGISTER_DIALOG(mp_join_game_password_prompt)
41 
43  std::string& password)
44 {
45  register_text("password", true, password, true);
46 }
47 
48 } // namespace dialogs
49 } // namespace gui2
STL namespace.
Generic file dialog.
Definition: field-fwd.hpp:22
This file contains the settings handling of the widget library.
Various uncategorised dialogs.
std::string password(const std::string &server, const std::string &login)