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 General Public License as published by
9 the Free Software Foundation; either version 2 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 General Public License for more details.
17 You should have received a copy of the GNU 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 "common_irrlicht.h"
27 #include "modalMenu.h"
34 GUI_ID_BACK_BUTTON = 101, GUI_ID_ABORT_BUTTON, GUI_ID_SCROLL_BAR,
36 GUI_ID_KEY_FORWARD_BUTTON,
37 GUI_ID_KEY_BACKWARD_BUTTON,
38 GUI_ID_KEY_LEFT_BUTTON,
39 GUI_ID_KEY_RIGHT_BUTTON,
40 GUI_ID_KEY_USE_BUTTON,
41 GUI_ID_KEY_FLY_BUTTON,
42 GUI_ID_KEY_FAST_BUTTON,
43 GUI_ID_KEY_JUMP_BUTTON,
44 GUI_ID_KEY_CHAT_BUTTON,
45 GUI_ID_KEY_SNEAK_BUTTON,
46 GUI_ID_KEY_INVENTORY_BUTTON,
47 GUI_ID_KEY_DUMP_BUTTON,
48 GUI_ID_KEY_RANGE_BUTTON
51 class GUIKeyChangeMenu: public GUIModalMenu
54 GUIKeyChangeMenu(gui::IGUIEnvironment* env, gui::IGUIElement* parent,
55 s32 id, IMenuManager *menumgr);
58 void removeChildren();
60 Remove and re-add (or reposition) stuff
62 void regenerateGui(v2u32 screensize);
68 bool OnEvent(const SEvent& event);
76 gui::IGUIButton *forward;
77 gui::IGUIButton *backward;
78 gui::IGUIButton *left;
79 gui::IGUIButton *right;
81 gui::IGUIButton *sneak;
82 gui::IGUIButton *jump;
83 gui::IGUIButton *inventory;
85 gui::IGUIButton *fast;
86 gui::IGUIButton *range;
87 gui::IGUIButton *dump;
88 gui::IGUIButton *chat;