foxygit / doom Log in
commit e06b8d3e5a650a61307d644eae1269a64817c02b
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun May 31 02:26:44 2015 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun May 31 02:26:44 2015 -0400

    setup: Add help links for Multiplayer windows.

    The other windows all have help links now and the multiplayer
    windows were the only ones left without them, so this adds links
    for them. For now these just link to the wiki's Multiplayer page
    but this is something we can change in the future.

    This is part of #520.
---
 src/setup/multiplayer.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index 4aaff921..a36f4daf 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -34,6 +34,10 @@
 #include "net_io.h"
 #include "net_query.h"

+#define MULTI_START_HELP_URL "http://www.chocolate-doom.org/setup-multi-start"
+#define MULTI_JOIN_HELP_URL "http://www.chocolate-doom.org/setup-multi-join"
+#define MULTI_CONFIG_HELP_URL "http://www.chocolate-doom.org/setup-multi-config"
+
 #define NUM_WADS 10
 #define NUM_EXTRA_PARAMS 10

@@ -711,6 +715,7 @@ static void StartGameMenu(char *window_title, int multiplayer)
     txt_widget_t *iwad_selector;

     window = TXT_NewWindow(window_title);
+    TXT_SetWindowHelpURL(window, MULTI_START_HELP_URL);

     TXT_AddWidgets(window,
                    gameopt_table = TXT_NewTable(2),
@@ -985,6 +990,7 @@ void JoinMultiGame(void)
     txt_inputbox_t *address_box;

     window = TXT_NewWindow("Join multiplayer game");
+    TXT_SetWindowHelpURL(window, MULTI_JOIN_HELP_URL);

     TXT_AddWidgets(window,
         gameopt_table = TXT_NewTable(2),
@@ -1093,6 +1099,7 @@ void MultiplayerConfig(void)
     int i;

     window = TXT_NewWindow("Multiplayer Configuration");
+    TXT_SetWindowHelpURL(window, MULTI_CONFIG_HELP_URL);

     TXT_AddWidgets(window,
                    TXT_NewStrut(0, 1),