diff options
author | Simon Howard | 2015-05-31 02:26:44 -0400 |
---|---|---|
committer | Simon Howard | 2015-05-31 02:26:44 -0400 |
commit | e06b8d3e5a650a61307d644eae1269a64817c02b (patch) | |
tree | b207d0dddbfb24fb30c71d84cd311c5428ebda50 /src/setup | |
parent | 81bebcd0f6549bcb29d27b9399e919e67c9559ec (diff) | |
download | chocolate-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/setup')
-rw-r--r-- | src/setup/multiplayer.c | 7 |
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), |