diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 23:48:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 23:48:31 +0300 |
commit | 1b496351f779d4a897cd882a9928a18bab5ba622 (patch) | |
tree | 0076bfd5ffb3d3f623e5898dcf929181b313e743 /src/input | |
parent | 84edefedf8e3688f618f0dde8169d6ee18624e6e (diff) | |
download | manaverse-1b496351f779d4a897cd882a9928a18bab5ba622.tar.gz manaverse-1b496351f779d4a897cd882a9928a18bab5ba622.tar.bz2 manaverse-1b496351f779d4a897cd882a9928a18bab5ba622.tar.xz manaverse-1b496351f779d4a897cd882a9928a18bab5ba622.zip |
Move chat command /dumpg into actions.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputaction.h | 1 | ||||
-rw-r--r-- | src/input/inputactionmap.h | 9 | ||||
-rw-r--r-- | src/input/pages/other.cpp | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h index aa69f4a19..87cb80914 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -398,6 +398,7 @@ namespace InputAction SERVER_UNIGNORE_ALL, SET_DROP, ERROR, + DUMP_GRAPHICS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 4b9150aa8..7d80d63fe 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3351,6 +3351,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "error", + false}, + {"keyDumpg", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dumpGraphics, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dumpg", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 8bae75449..658c368f2 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -292,6 +292,12 @@ SetupActionData setupActionDataOther[] = "", }, { + // TRANSLATORS: input action name + N_("Dump graphics info into chat"), + InputAction::DUMP_GRAPHICS, + "", + }, + { "", InputAction::NO_VALUE, "" |