summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-21 17:36:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-21 17:36:51 +0300
commit033d99ed3c25f64d006731f687e8d5847646e2d1 (patch)
treebd0909ab923d1698e702a0f54c4d5b573d4c166b /src
parent3a33b94eba99a45cfc2564916915e416975d0da5 (diff)
downloadmv-033d99ed3c25f64d006731f687e8d5847646e2d1.tar.gz
mv-033d99ed3c25f64d006731f687e8d5847646e2d1.tar.bz2
mv-033d99ed3c25f64d006731f687e8d5847646e2d1.tar.xz
mv-033d99ed3c25f64d006731f687e8d5847646e2d1.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/commands.h6
1 files changed, 5 insertions, 1 deletions
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