3 Copyright (C) 2010-11 celeron55, Perttu Ahola <celeron55@gmail.com>
4 Copyright (C) 2011 Ciaran Gultnieks <ciaran@ciarang.com>
5 Copyright (C) 2011 teddydestodes <derkomtur@schattengang.net>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GUIKEYCHANGEMENU_HEADER
23 #define GUIKEYCHANGEMENU_HEADER
25 #include "irrlichttypes_extrabloated.h"
26 #include "modalMenu.h"
37 std::string setting_name;
38 gui::IGUIButton *button;
42 class GUIKeyChangeMenu: public GUIModalMenu
45 GUIKeyChangeMenu(gui::IGUIEnvironment* env, gui::IGUIElement* parent,
46 s32 id, IMenuManager *menumgr);
49 void removeChildren();
51 Remove and re-add (or reposition) stuff
53 void regenerateGui(v2u32 screensize);
59 bool OnEvent(const SEvent& event);
67 void add_key(int id, std::string setting_name, std::string button_name);
73 std::vector<KeyPress> key_used;
74 gui::IGUIStaticText *key_used_text;
75 std::vector<key_setting *> key_settings;