shithub: choc

Download patch

ref: 69be33fe88d0a55dce27214e7543cded8ff51175
parent: 32d566f7a2171eacb9b6713a9d1f98e3a1db6be6
author: Simon Howard <fraggle@gmail.com>
date: Sat Oct 22 11:41:56 EDT 2011

Update setup tool to show 8 key bindings for appropriate games.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2454

--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -309,10 +309,18 @@
     AddSectionLabel(table, "Multiplayer", true);
 
     AddKeyControl(table, "Send message",          &key_multi_msg);
-    AddKeyControl(table, "- to green",            &key_multi_msgplayer[0]);
-    AddKeyControl(table, "- to indigo",           &key_multi_msgplayer[1]);
-    AddKeyControl(table, "- to brown",            &key_multi_msgplayer[2]);
-    AddKeyControl(table, "- to red",              &key_multi_msgplayer[3]);
+    AddKeyControl(table, "- to player 1",         &key_multi_msgplayer[0]);
+    AddKeyControl(table, "- to player 2",         &key_multi_msgplayer[1]);
+    AddKeyControl(table, "- to player 3",         &key_multi_msgplayer[2]);
+    AddKeyControl(table, "- to player 4",         &key_multi_msgplayer[3]);
+
+    if (gamemission == hexen || gamemission == strife)
+    {
+        AddKeyControl(table, "- to player 5",     &key_multi_msgplayer[4]);
+        AddKeyControl(table, "- to player 6",     &key_multi_msgplayer[5]);
+        AddKeyControl(table, "- to player 7",     &key_multi_msgplayer[6]);
+        AddKeyControl(table, "- to player 8",     &key_multi_msgplayer[7]);
+    }
 
     scrollpane = TXT_NewScrollPane(0, 13, table);
 
--- a/src/setup/mainmenu.c
+++ b/src/setup/mainmenu.c
@@ -79,6 +79,14 @@
     key_mission = 'i';              // Strife keys
     key_invpop = 'o';
     key_invkey = 'p';
+    key_multi_msgplayer[0] = 'g';
+    key_multi_msgplayer[1] = 'h';
+    key_multi_msgplayer[2] = 'j';
+    key_multi_msgplayer[3] = 'k';
+    key_multi_msgplayer[4] = 'v';
+    key_multi_msgplayer[5] = 'b';
+    key_multi_msgplayer[6] = 'n';
+    key_multi_msgplayer[7] = 'm';
     mousebprevweapon = 4;           // Scroll wheel = weapon cycle
     mousebnextweapon = 3;
     snd_musicdevice = 3;