summaryrefslogtreecommitdiff
path: root/src/guiKeyChangeMenu.h
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-13 18:16:49 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-22 13:02:08 +0200
commit53eedd3ba4029d7f4154477c3492748bb4f6e4e5 (patch)
treeae00497ecdbc01cd3494e045070b273e163a2dd0 /src/guiKeyChangeMenu.h
parent42134bb49eaa5116838a2c188c432c8b9420dff8 (diff)
downloadminetest-53eedd3ba4029d7f4154477c3492748bb4f6e4e5.tar.gz
minetest-53eedd3ba4029d7f4154477c3492748bb4f6e4e5.tar.bz2
minetest-53eedd3ba4029d7f4154477c3492748bb4f6e4e5.zip
Introduce hotkey for calling up a command window
This is just a chat window with the / text pre-loaded.
Diffstat (limited to 'src/guiKeyChangeMenu.h')
-rw-r--r--src/guiKeyChangeMenu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/guiKeyChangeMenu.h b/src/guiKeyChangeMenu.h
index a1dfa17c2..2e8773a77 100644
--- a/src/guiKeyChangeMenu.h
+++ b/src/guiKeyChangeMenu.h
@@ -43,6 +43,7 @@ enum
GUI_ID_KEY_FAST_BUTTON,
GUI_ID_KEY_JUMP_BUTTON,
GUI_ID_KEY_CHAT_BUTTON,
+ GUI_ID_KEY_CMD_BUTTON,
GUI_ID_KEY_SNEAK_BUTTON,
GUI_ID_KEY_INVENTORY_BUTTON,
GUI_ID_KEY_DUMP_BUTTON,
@@ -87,6 +88,7 @@ private:
gui::IGUIButton *range;
gui::IGUIButton *dump;
gui::IGUIButton *chat;
+ gui::IGUIButton *cmd;
s32 activeKey;
KeyPress key_forward;
@@ -101,6 +103,7 @@ private:
KeyPress key_fast;
KeyPress key_range;
KeyPress key_chat;
+ KeyPress key_cmd;
KeyPress key_dump;
};