]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/guiKeyChangeMenu.cpp
Make shift the default descent control on ladders and when flying
[dragonfireclient.git] / src / guiKeyChangeMenu.cpp
index 4e04fccf0e1406c0268dcf2fc8bd58908a9e95d3..db29fb376dc9a4fdc67ebabb1b03caf45b6657df 100644 (file)
@@ -5,16 +5,16 @@
  Copyright (C) 2011 teddydestodes <derkomtur@schattengang.net>
 
  This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
  (at your option) any later version.
 
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- GNU General Public License for more details.
+ GNU Lesser General Public License for more details.
 
- You should have received a copy of the GNU General Public License along
+ You should have received a copy of the GNU Lesser General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #include <IGUIFont.h>
 #include "settings.h"
 
+enum
+{
+       GUI_ID_BACK_BUTTON = 101, GUI_ID_ABORT_BUTTON, GUI_ID_SCROLL_BAR,
+       //buttons
+       GUI_ID_KEY_FORWARD_BUTTON,
+       GUI_ID_KEY_BACKWARD_BUTTON,
+       GUI_ID_KEY_LEFT_BUTTON,
+       GUI_ID_KEY_RIGHT_BUTTON,
+       GUI_ID_KEY_USE_BUTTON,
+       GUI_ID_KEY_FLY_BUTTON,
+       GUI_ID_KEY_FAST_BUTTON,
+       GUI_ID_KEY_JUMP_BUTTON,
+       GUI_ID_KEY_CHAT_BUTTON,
+       GUI_ID_KEY_CMD_BUTTON,
+       GUI_ID_KEY_CONSOLE_BUTTON,
+       GUI_ID_KEY_SNEAK_BUTTON,
+       GUI_ID_KEY_DROP_BUTTON,
+       GUI_ID_KEY_INVENTORY_BUTTON,
+       GUI_ID_KEY_DUMP_BUTTON,
+       GUI_ID_KEY_RANGE_BUTTON
+};
+
 GUIKeyChangeMenu::GUIKeyChangeMenu(gui::IGUIEnvironment* env,
                gui::IGUIElement* parent, s32 id, IMenuManager *menumgr) :
        GUIModalMenu(env, parent, id, menumgr)
@@ -83,14 +105,14 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
        v2s32 topleft(0, 0);
        changeCtype("");
        {
-               core::rect < s32 > rect(0, 0, 125, 20);
+               core::rect < s32 > rect(0, 0, 600, 40);
                rect += topleft + v2s32(25, 3);
                //gui::IGUIStaticText *t =
-               Environment->addStaticText(wgettext("KEYBINDINGS"),
+               Environment->addStaticText(wgettext("Keybindings. (If this menu screws up, remove stuff from minetest.conf)"),
                                rect, false, true, this, -1);
                //t->setTextAlignment(gui::EGUIA_CENTER, gui::EGUIA_UPPERLEFT);
        }
-       v2s32 offset(25, 40);
+       v2s32 offset(25, 60);
        // buttons
 
        {
@@ -277,7 +299,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
        }
 
        //next col
-       offset = v2s32(250, 40);
+       offset = v2s32(250, 60);
        {
                core::rect < s32 > rect(0, 0, 100, 20);
                rect += topleft + v2s32(offset.X, offset.Y);