3 Copyright (C) 2018 srifqi, Muhammad Rifqi Priyo Susanto
4 <muhammadrifqipriyosusanto@gmail.com>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation; either version 2.1 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #include "irrlichttypes_extrabloated.h"
24 #include "modalMenu.h"
29 class GUIConfirmRegistration : public GUIModalMenu
32 GUIConfirmRegistration(gui::IGUIEnvironment *env, gui::IGUIElement *parent,
33 s32 id, IMenuManager *menumgr, Client *client,
34 const std::string &playername, const std::string &password,
35 const std::string &address, bool *aborted);
36 ~GUIConfirmRegistration();
38 void removeChildren();
40 Remove and re-add (or reposition) stuff
42 void regenerateGui(v2u32 screensize);
46 void closeMenu(bool goNext);
52 bool OnEvent(const SEvent &event);
54 bool getAndroidUIInput();
58 std::wstring getLabelByID(s32 id) { return L""; }
59 std::string getNameByID(s32 id) { return "password"; }
61 Client *m_client = nullptr;
62 const std::string &m_playername;
63 const std::string &m_password;
64 const std::string &m_address;
65 bool *m_aborted = nullptr;
66 std::wstring m_pass_confirm = L"";