From eb694307c2b73e64f208c0d37d4c79207018d07a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 May 2015 00:59:11 +0300 Subject: Add chat command to set config variables. New chat command: /confset varname value Alias: /setconf varname value --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/input') diff --git a/src/input/inputaction.h b/src/input/inputaction.h index 2f4bdcb3c..b927f06f7 100644 --- a/src/input/inputaction.h +++ b/src/input/inputaction.h @@ -596,6 +596,7 @@ namespace InputAction LEAVE_ROOM, WINDOW_QUICK_SETTINGS, WINDOW_MAIL, + CONF_SET, TOTAL }; } // namespace InputAction diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h index edd75851a..0aa8adea1 100644 --- a/src/input/inputactionmap.h +++ b/src/input/inputactionmap.h @@ -4469,6 +4469,11 @@ static const InputActionData inputActionData[InputAction::TOTAL] = { InputCondition::GAME | InputCondition::NOTARGET, "mailwindow|mail", false}, + {"keyConfSet", + defaultAction(&Actions::confSet), + InputCondition::INGAME, + "confset|setconf", + true}, }; #undef defaultAction -- cgit v1.2.3-70-g09d2