ref: e06b8d3e5a650a61307d644eae1269a64817c02b
parent: 81bebcd0f6549bcb29d27b9399e919e67c9559ec
author: Simon Howard <[email protected]>
date: Sat May 30 22:26:44 EDT 2015
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.
--- 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 @@
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 @@
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 @@
int i;
window = TXT_NewWindow("Multiplayer Configuration");
+ TXT_SetWindowHelpURL(window, MULTI_CONFIG_HELP_URL);
TXT_AddWidgets(window,
TXT_NewStrut(0, 1),