From e06b8d3e5a650a61307d644eae1269a64817c02b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 31 May 2015 02:26:44 -0400 Subject: 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), -- cgit v1.2.3