setup: Add help URLs for configuration windows.
The wiki now has documentation pages for most of the windows in the setup tool. Add help URLs that link to these. One other minor change here is that the warp button on the main menu had to change to F2 instead of F1, which is now the help key.
This commit is contained in:
parent
356554c229
commit
710e963aca
7 changed files with 38 additions and 2 deletions
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#include "compatibility.h"
|
#include "compatibility.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-compat"
|
||||||
|
|
||||||
int vanilla_savegame_limit = 1;
|
int vanilla_savegame_limit = 1;
|
||||||
int vanilla_demo_limit = 1;
|
int vanilla_demo_limit = 1;
|
||||||
|
|
||||||
|
|
@ -31,6 +33,8 @@ void CompatibilitySettings(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Compatibility");
|
window = TXT_NewWindow("Compatibility");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
TXT_NewCheckBox("Vanilla savegame limit",
|
TXT_NewCheckBox("Vanilla savegame limit",
|
||||||
&vanilla_savegame_limit),
|
&vanilla_savegame_limit),
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-display"
|
||||||
|
|
||||||
extern void RestartTextscreen(void);
|
extern void RestartTextscreen(void);
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
@ -535,6 +537,8 @@ static void AdvancedDisplayConfig(TXT_UNCAST_ARG(widget),
|
||||||
|
|
||||||
window = TXT_NewWindow("Advanced display options");
|
window = TXT_NewWindow("Advanced display options");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_SetColumnWidths(window, 35);
|
TXT_SetColumnWidths(window, 35);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
|
|
@ -595,6 +599,8 @@ void ConfigDisplay(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Display Configuration");
|
window = TXT_NewWindow("Display Configuration");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
// Some machines can have lots of video modes. This tries to
|
// Some machines can have lots of video modes. This tries to
|
||||||
// keep a limit of six lines by increasing the number of
|
// keep a limit of six lines by increasing the number of
|
||||||
// columns. In extreme cases, the window is moved up slightly.
|
// columns. In extreme cases, the window is moved up slightly.
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@
|
||||||
#include "txt_joyaxis.h"
|
#include "txt_joyaxis.h"
|
||||||
#include "txt_joybinput.h"
|
#include "txt_joybinput.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-gamepad"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
char *name; // Config file name
|
char *name; // Config file name
|
||||||
|
|
@ -685,6 +687,8 @@ void ConfigJoystick(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Gamepad/Joystick configuration");
|
window = TXT_NewWindow("Gamepad/Joystick configuration");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
TXT_NewCheckBox("Enable gamepad/joystick", &usejoystick),
|
TXT_NewCheckBox("Enable gamepad/joystick", &usejoystick),
|
||||||
joystick_table = TXT_NewTable(2),
|
joystick_table = TXT_NewTable(2),
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
#include "joystick.h"
|
#include "joystick.h"
|
||||||
#include "keyboard.h"
|
#include "keyboard.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-keyboard"
|
||||||
|
|
||||||
int vanilla_keyboard_mapping = 1;
|
int vanilla_keyboard_mapping = 1;
|
||||||
|
|
||||||
static int always_run = 0;
|
static int always_run = 0;
|
||||||
|
|
@ -181,6 +183,8 @@ static void ConfigExtraKeys(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
|
||||||
|
|
||||||
window = TXT_NewWindow("Extra keyboard controls");
|
window = TXT_NewWindow("Extra keyboard controls");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
table = TXT_NewTable(2);
|
table = TXT_NewTable(2);
|
||||||
|
|
||||||
TXT_SetColumnWidths(table, 21, 9);
|
TXT_SetColumnWidths(table, 21, 9);
|
||||||
|
|
@ -270,6 +274,8 @@ static void OtherKeysDialog(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
|
||||||
|
|
||||||
window = TXT_NewWindow("Other keys");
|
window = TXT_NewWindow("Other keys");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
table = TXT_NewTable(2);
|
table = TXT_NewTable(2);
|
||||||
|
|
||||||
TXT_SetColumnWidths(table, 25, 9);
|
TXT_SetColumnWidths(table, 25, 9);
|
||||||
|
|
@ -356,6 +362,8 @@ void ConfigKeyboard(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Keyboard configuration");
|
window = TXT_NewWindow("Keyboard configuration");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
TXT_NewSeparator("Movement"),
|
TXT_NewSeparator("Movement"),
|
||||||
movement_table = TXT_NewTable(4),
|
movement_table = TXT_NewTable(4),
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@
|
||||||
#include "multiplayer.h"
|
#include "multiplayer.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup"
|
||||||
|
|
||||||
static const int cheat_sequence[] =
|
static const int cheat_sequence[] =
|
||||||
{
|
{
|
||||||
KEY_UPARROW, KEY_UPARROW, KEY_DOWNARROW, KEY_DOWNARROW,
|
KEY_UPARROW, KEY_UPARROW, KEY_DOWNARROW, KEY_DOWNARROW,
|
||||||
|
|
@ -209,6 +211,8 @@ void MainMenu(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Main Menu");
|
window = TXT_NewWindow("Main Menu");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
TXT_NewButton2("Configure Display",
|
TXT_NewButton2("Configure Display",
|
||||||
(TxtWidgetSignalFunc) ConfigDisplay, NULL),
|
(TxtWidgetSignalFunc) ConfigDisplay, NULL),
|
||||||
|
|
@ -247,7 +251,7 @@ void MainMenu(void)
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
quit_action = TXT_NewWindowAction(KEY_ESCAPE, "Quit");
|
quit_action = TXT_NewWindowAction(KEY_ESCAPE, "Quit");
|
||||||
warp_action = TXT_NewWindowAction(KEY_F1, "Warp");
|
warp_action = TXT_NewWindowAction(KEY_F2, "Warp");
|
||||||
TXT_SignalConnect(quit_action, "pressed", QuitConfirm, NULL);
|
TXT_SignalConnect(quit_action, "pressed", QuitConfirm, NULL);
|
||||||
TXT_SignalConnect(warp_action, "pressed",
|
TXT_SignalConnect(warp_action, "pressed",
|
||||||
(TxtWidgetSignalFunc) WarpMenu, NULL);
|
(TxtWidgetSignalFunc) WarpMenu, NULL);
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
#include "mode.h"
|
#include "mode.h"
|
||||||
#include "mouse.h"
|
#include "mouse.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-mouse"
|
||||||
|
|
||||||
static int usemouse = 1;
|
static int usemouse = 1;
|
||||||
|
|
||||||
static int mouseSensitivity = 5;
|
static int mouseSensitivity = 5;
|
||||||
|
|
@ -84,6 +86,8 @@ static void ConfigExtraButtons(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
|
||||||
|
|
||||||
window = TXT_NewWindow("Additional mouse buttons");
|
window = TXT_NewWindow("Additional mouse buttons");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
buttons_table = TXT_NewTable(2),
|
buttons_table = TXT_NewTable(2),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
@ -112,6 +116,8 @@ void ConfigMouse(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Mouse configuration");
|
window = TXT_NewWindow("Mouse configuration");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_AddWidgets(window,
|
TXT_AddWidgets(window,
|
||||||
TXT_NewCheckBox("Enable mouse", &usemouse),
|
TXT_NewCheckBox("Enable mouse", &usemouse),
|
||||||
TXT_NewInvertedCheckBox("Allow vertical mouse movement",
|
TXT_NewInvertedCheckBox("Allow vertical mouse movement",
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
#include "mode.h"
|
#include "mode.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
|
||||||
|
#define WINDOW_HELP_URL "http://www.chocolate-doom.org/setup-sound"
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
SFXMODE_DISABLED,
|
SFXMODE_DISABLED,
|
||||||
|
|
@ -237,6 +239,8 @@ void ConfigSound(void)
|
||||||
|
|
||||||
window = TXT_NewWindow("Sound configuration");
|
window = TXT_NewWindow("Sound configuration");
|
||||||
|
|
||||||
|
TXT_SetWindowHelpURL(window, WINDOW_HELP_URL);
|
||||||
|
|
||||||
TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP,
|
TXT_SetWindowPosition(window, TXT_HORIZ_CENTER, TXT_VERT_TOP,
|
||||||
TXT_SCREEN_W / 2, 5);
|
TXT_SCREEN_W / 2, 5);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue