From 67ecfd5dc5ac6b45e42f6a47263f494fa17bc46d Mon Sep 17 00:00:00 2001 From: Andrei Karas <akaras@inbox.ru> Date: Tue, 26 Aug 2014 20:53:04 +0300 Subject: Move chat command /dirs into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ src/input/pages/other.cpp | 6 ++++++ 3 files changed, 16 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 67ed7a8a0..e57deb0bc 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -385,6 +385,7 @@ namespace InputAction CACHE_INFO, DISCONNECT, UNDRESS, + DIRS, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index 7fdda0480..10dbcf90f 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3234,6 +3234,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "undress", + true}, + {"keyDirs", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::dirs, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "dirs", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 5d9aca31e..f730db629 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -267,6 +267,12 @@ SetupActionData setupActionDataOther[] = InputAction::DISCONNECT, "", }, + { + // TRANSLATORS: input action name + N_("Print configured directories in chat"), + InputAction::DIRS, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2