summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2015-05-31 02:26:44 -0400
committerSimon Howard2015-05-31 02:26:44 -0400
commite06b8d3e5a650a61307d644eae1269a64817c02b (patch)
treeb207d0dddbfb24fb30c71d84cd311c5428ebda50 /src
parent81bebcd0f6549bcb29d27b9399e919e67c9559ec (diff)
downloadchocolate-doom-e06b8d3e5a650a61307d644eae1269a64817c02b.tar.gz
chocolate-doom-e06b8d3e5a650a61307d644eae1269a64817c02b.tar.bz2
chocolate-doom-e06b8d3e5a650a61307d644eae1269a64817c02b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/setup/multiplayer.c7
1 files changed, 7 insertions, 0 deletions
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),