From 033d99ed3c25f64d006731f687e8d5847646e2d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 21 Aug 2014 17:36:51 +0300 Subject: Add chat commands to switch to previous or next chat tab. New chat commands: nextTab - switch to next chat tab. prevTab - switch to previous chat tab. --- src/commands.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/commands.h b/src/commands.h index 7820a4ea1..8e8e58f5d 100644 --- a/src/commands.h +++ b/src/commands.h @@ -242,6 +242,8 @@ enum COMMAND_GM, COMMAND_HACK, COMMAND_DEBUGSPAWN, + COMMAND_NEXTCHATTAB, + COMMAND_PREVCHATTAB, END_COMMANDS }; @@ -344,7 +346,9 @@ static const CommandInfo commands[] = {"uploadlog", &Commands::uploadLog, -1, false}, {"gm", &Commands::gm, -1, true}, {"hack", &Commands::hack, -1, true}, - {"debugSpawn", &Commands::debugSpawn, -1, true} + {"debugSpawn", &Commands::debugSpawn, -1, true}, + {"nextTab", nullptr, InputAction::NEXT_CHAT_TAB, false}, + {"prevTab", nullptr, InputAction::PREV_CHAT_TAB, false} }; #undef decHandler -- cgit v1.2.3-70-g09d2