Make team chat its own control and use [U] key by default
authorWuzzy <Wuzzy2@mail.ru>
Mon, 12 Feb 2018 23:37:08 +0100
changeset 12990 8dd95c095882
parent 12989 c08c53624c0f
child 12991 3ada9fea0d3b
Make team chat its own control and use [U] key by default Why [U] and not [Y]? Because [Y] is already occupied by Confirm.
ChangeLog.txt
QTfrontend/binds.cpp
QTfrontend/binds.h
hedgewars/uCommandHandlers.pas
--- a/ChangeLog.txt	Mon Feb 12 23:23:07 2018 +0100
+++ b/ChangeLog.txt	Mon Feb 12 23:37:08 2018 +0100
@@ -6,6 +6,7 @@
  + Change weapon icons: Mudball, air mine
  + Add healing visual effect in Paramedics mode and a few scripts
  + Show remaining ammo when using Birdy egg or RC Plane bomb
+ + Add separate control for team chat (default: U)
  * Fix time box being usable in Sudden Death with 0 health decrease
  * Fix chat input key being sometimes registered twice
 
--- a/QTfrontend/binds.cpp	Mon Feb 12 23:23:07 2018 +0100
+++ b/QTfrontend/binds.cpp	Mon Feb 12 23:37:08 2018 +0100
@@ -56,6 +56,7 @@
     {"zoomout",   "wheeldown",  QT_TRANSLATE_NOOP("binds", "zoom out"),        NULL, NULL},
     {"zoomreset", "mousem",     QT_TRANSLATE_NOOP("binds", "reset zoom"),      NULL, NULL},
     {"chat",      "t",          QT_TRANSLATE_NOOP("binds", "chat"),            QT_TRANSLATE_NOOP("binds (categories)", "Miscellaneous"), QT_TRANSLATE_NOOP("binds (descriptions)", "Talk to your team or all participants:")},
+    {"chat team", "u",          QT_TRANSLATE_NOOP("binds", "team chat"),       NULL, NULL},
     {"history",   "`",          QT_TRANSLATE_NOOP("binds", "chat history"),    NULL, NULL},
     {"pause",     "p",          QT_TRANSLATE_NOOP("binds", "pause"),           NULL, QT_TRANSLATE_NOOP("binds (descriptions)", "Pause, continue or leave your game:")},
     {"quit",      "escape",     QT_TRANSLATE_NOOP("binds", "quit"),            NULL, NULL},
--- a/QTfrontend/binds.h	Mon Feb 12 23:23:07 2018 +0100
+++ b/QTfrontend/binds.h	Mon Feb 12 23:37:08 2018 +0100
@@ -22,9 +22,9 @@
 #include <QString>
 
 #ifdef VIDEOREC
-#define BINDS_NUMBER 47
+#define BINDS_NUMBER 48
 #else
-#define BINDS_NUMBER 46
+#define BINDS_NUMBER 47
 #endif
 
 struct BindAction
--- a/hedgewars/uCommandHandlers.pas	Mon Feb 12 23:23:07 2018 +0100
+++ b/hedgewars/uCommandHandlers.pas	Mon Feb 12 23:37:08 2018 +0100
@@ -76,8 +76,6 @@
         SendIPC(_S'Q');
         GameState:= gsExit
         end
-    else
-        ParseCommand('chat team', true);
 end;
 
 procedure chHalt (var s: shortstring);