From 537b66dbab370463a4a8d0d860a98626f73b4635 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 18:40:02 +0300 Subject: Move chat command /disconnect 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 f1c7becea..403433064 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -383,6 +383,7 @@ namespace InputAction PRICE_LOAD, PRICE_SAVE, CACHE_INFO, + DISCONNECT, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index c6fb36f1f..0dde3f848 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -3216,6 +3216,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputAction::NO_VALUE, 50, InputCondition::INGAME, "cacheinfo", + false}, + {"keyDisconnect", + InputType::UNKNOWN, InputAction::NO_VALUE, + InputType::UNKNOWN, InputAction::NO_VALUE, + Input::GRP_DEFAULT, + &Actions::disconnect, + InputAction::NO_VALUE, 50, + InputCondition::INGAME, + "disconnect", false} }; diff --git a/src/input/pages/other.cpp b/src/input/pages/other.cpp index 52970cd8e..4c28e5a3b 100644 --- a/src/input/pages/other.cpp +++ b/src/input/pages/other.cpp @@ -255,6 +255,12 @@ SetupActionData setupActionDataOther[] = InputAction::CACHE_INFO, "", }, + { + // TRANSLATORS: input action name + N_("Quick disconnect from server"), + InputAction::DISCONNECT, + "", + }, { "", InputAction::NO_VALUE, -- cgit v1.2.3-70-g09d2