2002-08-16 21:54:21 +00:00
|
|
|
/*
|
|
|
|
options.qc
|
|
|
|
|
|
|
|
Options menu
|
|
|
|
|
|
|
|
Copyright (C) 2002 Robin Redeker <elmex@x-paste.de>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
|
|
|
License along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "options.h"
|
|
|
|
#include "cbuf.h"
|
|
|
|
#include "menu.h"
|
|
|
|
#include "system.h"
|
2003-04-08 02:35:09 +00:00
|
|
|
#include "string.h"
|
2002-08-16 21:54:21 +00:00
|
|
|
#include "draw.h"
|
|
|
|
#include "cvar.h"
|
|
|
|
#include "key.h"
|
|
|
|
#include "controls_o.h"
|
|
|
|
#include "options_util.h"
|
|
|
|
|
2004-02-03 08:31:26 +00:00
|
|
|
#include "gui/InputLine.h"
|
|
|
|
#include "gui/Rect.h"
|
|
|
|
#include "gui/Slider.h"
|
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
CvarToggleView fullscreen_view;
|
|
|
|
CvarToggleView crosshair_view;
|
|
|
|
CvarToggleView fps_view;
|
|
|
|
CvarToggleView time_view;
|
|
|
|
|
|
|
|
CvarRangeView gamma_view;
|
|
|
|
CvarRangeView viewsize_view;
|
|
|
|
CvarRangeView mouse_amp_view;
|
|
|
|
CvarRangeView volume_view;
|
|
|
|
CvarRangeView bgmvolume_view;
|
2004-02-03 08:31:26 +00:00
|
|
|
|
2003-03-03 05:24:45 +00:00
|
|
|
/*
|
|
|
|
some definitions of border values for different things
|
2002-08-16 21:54:21 +00:00
|
|
|
*/
|
|
|
|
#define MIN_GAMMA 0.4
|
|
|
|
#define MAX_GAMMA 3
|
|
|
|
#define GAMMA_STEP 0.1
|
|
|
|
|
|
|
|
#define MIN_VIEWSIZE 30
|
|
|
|
#define MAX_VIEWSIZE 120
|
|
|
|
#define VIEWSIZE_STEP 10
|
|
|
|
|
|
|
|
#define MIN_MOUSE_AMP 0
|
|
|
|
#define MAX_MOUSE_AMP 60
|
2004-02-04 06:56:53 +00:00
|
|
|
#define MOUSE_AMP_STEP 1
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
#define MIN_VOLUME 0
|
|
|
|
#define MAX_VOLUME 1.5
|
|
|
|
#define VOLUME_STEP 0.1
|
|
|
|
|
|
|
|
#define MIN_COLOR 0
|
|
|
|
#define MAX_COLOR 13
|
|
|
|
#define COLOR_STEP 1
|
|
|
|
|
|
|
|
/****************************
|
|
|
|
* VIDEO OPTIONS
|
|
|
|
* Video settings menu code
|
|
|
|
****************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_video_options
|
|
|
|
|
|
|
|
Menu event callback for video options
|
|
|
|
*/
|
|
|
|
integer (string text, integer key)
|
|
|
|
CB_video_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer selected_crosshair;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
switch (text) {
|
|
|
|
case "fullscreen":
|
2004-02-07 00:09:50 +00:00
|
|
|
[fullscreen_view toggle];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "crosshair":
|
2004-02-03 05:59:51 +00:00
|
|
|
selected_crosshair = (integer) cvar ("crosshair");
|
2002-08-16 21:54:21 +00:00
|
|
|
selected_crosshair++;
|
2003-03-03 05:24:45 +00:00
|
|
|
if (selected_crosshair >= 3) {
|
2002-08-16 21:54:21 +00:00
|
|
|
selected_crosshair = 0;
|
|
|
|
}
|
2003-03-03 05:24:45 +00:00
|
|
|
cvar_set ("crosshair", itos (selected_crosshair));
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "fps":
|
2004-02-07 00:09:50 +00:00
|
|
|
[fps_view toggle];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "time":
|
2004-02-07 00:09:50 +00:00
|
|
|
[time_view toggle];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "gamma":
|
2004-02-07 00:09:50 +00:00
|
|
|
if (key == QFK_RIGHT)
|
|
|
|
[gamma_view inc];
|
|
|
|
else if (key == QFK_LEFT)
|
|
|
|
[gamma_view dec];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "viewsize":
|
2004-02-07 00:09:50 +00:00
|
|
|
if (key == QFK_RIGHT)
|
|
|
|
[viewsize_view inc];
|
|
|
|
else if (key == QFK_LEFT)
|
|
|
|
[viewsize_view dec];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_video_options
|
|
|
|
|
|
|
|
Drawing function for the video options menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_video_options =
|
|
|
|
{
|
2004-02-07 00:09:50 +00:00
|
|
|
local integer spacing = 120;
|
|
|
|
|
|
|
|
[fullscreen_view setBasePos:x y:y];
|
|
|
|
[fps_view setBasePos:x y:y];
|
|
|
|
[time_view setBasePos:x y:y];
|
|
|
|
[gamma_view setBasePos:x y:y];
|
|
|
|
[viewsize_view setBasePos:x y:y];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Video");
|
|
|
|
Draw_String (x + 54, y + 50, "-----");
|
2004-02-07 00:09:50 +00:00
|
|
|
|
|
|
|
[fullscreen_view draw];
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + 70, spacing, "Crosshair",
|
|
|
|
ftos (cvar ("crosshair")));
|
2004-02-07 00:09:50 +00:00
|
|
|
[fps_view draw];
|
|
|
|
[time_view draw];
|
|
|
|
[gamma_view draw];
|
|
|
|
[viewsize_view draw];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + (Menu_GetIndex () * 10) + 60);
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_video_options
|
|
|
|
|
|
|
|
Menu function for the video options menu.
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_video_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer bar_pad;
|
2004-02-03 13:35:10 +00:00
|
|
|
local Rect rect;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
Menu_Begin (54, 50, "Video");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_Draw (DRAW_video_options);
|
2004-02-03 13:35:10 +00:00
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
rect = [[Rect alloc] initWithComponents:70 :60 :224 :8];
|
|
|
|
fullscreen_view = [[CvarToggleView alloc] initWithBounds:rect title:"Fullscreen" :[[CvarToggle alloc] initWithCvar:"vid_fullscreen"]];
|
|
|
|
|
|
|
|
rect.origin.y += 10;
|
|
|
|
//crosshair_view = [[CvarToggleView alloc] initWithBounds:rect title:"Crosshair" :[[CvarToggle alloc] initWithCvar:"crosshair"]];
|
|
|
|
|
|
|
|
|
|
|
|
rect.origin.y += 10;
|
|
|
|
fps_view = [[CvarToggleView alloc] initWithBounds:rect title:"Show FPS" :[[CvarToggle alloc] initWithCvar:"hud_fps"]];
|
|
|
|
|
|
|
|
|
|
|
|
rect.origin.y += 10;
|
|
|
|
time_view = [[CvarToggleView alloc] initWithBounds:rect title:"Show time" :[[CvarToggle alloc] initWithCvar:"hud_time"]];
|
|
|
|
|
|
|
|
|
|
|
|
rect.origin.y += 10;
|
|
|
|
gamma_view = [[CvarRangeView alloc] initWithBounds:rect title:"Gamma:" sliderWidth:17 * 8 :[[CvarRange alloc] initWithCvar:"vid_gamma" min:MIN_GAMMA max:MAX_GAMMA step:GAMMA_STEP]];
|
2004-02-04 07:14:00 +00:00
|
|
|
|
2004-02-03 13:35:10 +00:00
|
|
|
rect.origin.y += 10;
|
2004-02-07 00:09:50 +00:00
|
|
|
viewsize_view = [[CvarRangeView alloc] initWithBounds:rect title:"Viewsize:" sliderWidth:14 * 8 :[[CvarRange alloc] initWithCvar:"viewsize" min:MIN_VIEWSIZE max:MAX_VIEWSIZE step:VIEWSIZE_STEP]];
|
2004-02-03 13:35:10 +00:00
|
|
|
[rect dealloc];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
Menu_Item (54, 60, "fullscreen", CB_video_options, 0);
|
|
|
|
Menu_Item (54, 70, "crosshair", CB_video_options, 0);
|
|
|
|
Menu_Item (54, 80, "fps", CB_video_options, 0);
|
|
|
|
Menu_Item (54, 80, "time", CB_video_options, 0);
|
|
|
|
bar_pad = 90;
|
|
|
|
|
|
|
|
Menu_Item (54, bar_pad + 10, "gamma", CB_video_options, 1);
|
|
|
|
Menu_Item (54, bar_pad + 20, "viewsize", CB_video_options, 1);
|
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
|
|
|
/*************************************
|
|
|
|
* AUDIO OPTIONS
|
|
|
|
* Code for the audio settings menu
|
|
|
|
*************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_audio_options
|
|
|
|
|
|
|
|
Callback for the audio settings.
|
|
|
|
*/
|
|
|
|
integer (string text, integer key)
|
|
|
|
CB_audio_options =
|
|
|
|
{
|
2004-02-07 00:09:50 +00:00
|
|
|
local CvarRangeView range;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
if(!(key == QFK_RIGHT || key == QFK_LEFT )) {
|
|
|
|
return 0;
|
|
|
|
}
|
2004-02-03 08:31:26 +00:00
|
|
|
if (text == "volume")
|
2004-02-07 00:09:50 +00:00
|
|
|
range = volume_view;
|
2004-02-03 08:31:26 +00:00
|
|
|
else
|
2004-02-07 00:09:50 +00:00
|
|
|
range = bgmvolume_view;
|
2004-02-03 08:31:26 +00:00
|
|
|
|
2004-02-04 07:14:00 +00:00
|
|
|
if ((key == QFK_RIGHT) && (key != QFK_LEFT))
|
|
|
|
[range inc];
|
|
|
|
else
|
|
|
|
[range dec];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_audio_options
|
|
|
|
|
|
|
|
Draws the audio options menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_audio_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer bar_pad, spacing = 120;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Audio");
|
|
|
|
Draw_String (x + 54, y + 50, "-----");
|
|
|
|
bar_pad = y + 50;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
[volume_view setBasePos:x y:y];
|
|
|
|
[volume_view draw];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
[bgmvolume_view setBasePos:x y:y];
|
|
|
|
[bgmvolume_view draw];
|
2004-01-22 01:33:27 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + (Menu_GetIndex() * 10) + 60);
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_audio_options
|
|
|
|
|
|
|
|
Makes the audio menu
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_audio_options =
|
|
|
|
{
|
|
|
|
local integer bar_pad;
|
2004-02-03 08:31:26 +00:00
|
|
|
local Rect rect;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
Menu_Begin (54, 60, "Audio");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_Draw (DRAW_audio_options);
|
2004-02-03 08:31:26 +00:00
|
|
|
|
2004-02-04 07:14:00 +00:00
|
|
|
rect = [[Rect alloc] initWithComponents:70 :60 :17 * 8 :8];
|
2004-02-07 00:09:50 +00:00
|
|
|
volume_view = [[CvarRangeView alloc] initWithBounds:rect title:"Volume:" sliderWidth:14 * 8 :[[CvarRange alloc] initWithCvar:"volume" min:MIN_VOLUME max:MAX_VOLUME step:VOLUME_STEP]];
|
2004-02-03 08:31:26 +00:00
|
|
|
rect.origin.y += 8;
|
2004-02-07 00:09:50 +00:00
|
|
|
bgmvolume_view = [[CvarRangeView alloc] initWithBounds:rect title:"Music :" sliderWidth:14 * 8 :[[CvarRange alloc] initWithCvar:"bgmvolume" min:MIN_VOLUME max:MAX_VOLUME step:VOLUME_STEP]];
|
2004-02-03 08:31:26 +00:00
|
|
|
[rect dealloc];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
bar_pad = 0;
|
|
|
|
Menu_Item (54, bar_pad + 10, "volume", CB_audio_options, 1);
|
2004-01-22 01:33:27 +00:00
|
|
|
Menu_Item (54, bar_pad + 10, "bgmvolume", CB_audio_options, 1);
|
2002-08-16 21:54:21 +00:00
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************
|
|
|
|
* CONTROL OPTIONS
|
|
|
|
* Control setting code
|
|
|
|
************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_control_options
|
|
|
|
|
|
|
|
Callback for control options
|
|
|
|
*/
|
|
|
|
integer (string text, integer key)
|
|
|
|
CB_control_options =
|
|
|
|
{
|
|
|
|
switch (text) {
|
|
|
|
case "in_grab":
|
|
|
|
Cbuf_AddText ("toggle in_grab\n");
|
|
|
|
break;
|
|
|
|
case "autorun":
|
|
|
|
if(cvar("cl_forwardspeed") < 400) {
|
|
|
|
Cbuf_AddText ("set cl_forwardspeed 400\n");
|
|
|
|
Cbuf_AddText ("set cl_backspeed 400\n");
|
|
|
|
} else {
|
|
|
|
Cbuf_AddText ("set cl_forwardspeed 200\n");
|
|
|
|
Cbuf_AddText ("set cl_backspeed 200\n");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "freelook":
|
|
|
|
Cbuf_AddText ("toggle freelook\n");
|
|
|
|
break;
|
|
|
|
case "lookspring":
|
|
|
|
Cbuf_AddText ("toggle lookspring\n");
|
|
|
|
break;
|
|
|
|
case "lookstrafe":
|
|
|
|
Cbuf_AddText ("toggle lookstrafe\n");
|
|
|
|
break;
|
|
|
|
case "m_pitch":
|
|
|
|
if(cvar("m_pitch") < 0) {
|
|
|
|
Cbuf_AddText ("set m_pitch 0.022\n");
|
|
|
|
} else {
|
|
|
|
Cbuf_AddText ("set m_pitch -0.022\n");
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case "cl_autorecord":
|
|
|
|
Cbuf_AddText ("toggle cl_autorecord\n");
|
|
|
|
break;
|
|
|
|
case "cl_fraglog":
|
|
|
|
Cbuf_AddText ("toggle cl_fraglog\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if(!(key == QFK_RIGHT || key == QFK_LEFT)) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
switch (text) {
|
|
|
|
case "mouseamp":
|
2004-02-04 02:35:57 +00:00
|
|
|
if ((key == QFK_RIGHT) && (key != QFK_LEFT))
|
2004-02-07 00:09:50 +00:00
|
|
|
[mouse_amp_view inc];
|
2004-02-04 02:35:57 +00:00
|
|
|
else
|
2004-02-07 00:09:50 +00:00
|
|
|
[mouse_amp_view dec];
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_control_options
|
|
|
|
|
|
|
|
Draws the control option menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_control_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer cursor_pad = 0, spacing = 120, bar_pad;
|
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Controls");
|
|
|
|
Draw_String (x + 54, y + 50, "--------");
|
|
|
|
Draw_String (x + 70, y + 60, "Bindings");
|
|
|
|
|
|
|
|
draw_val_item (x + 70, y + 70, spacing, "Grab mouse",
|
|
|
|
cvar ("in_grab") ? "On" : "Off");
|
|
|
|
draw_val_item (x + 70, y + 80, spacing, "Auto run",
|
|
|
|
cvar ("cl_forwardspeed") < 400 ? "Off" : "On");
|
|
|
|
draw_val_item (x + 70, y + 90, spacing, "Mouse Invert",
|
|
|
|
cvar ("m_pitch") < 0 ? "On" : "Off");
|
|
|
|
bar_pad = y + 90;
|
|
|
|
|
2004-02-07 00:09:50 +00:00
|
|
|
[mouse_amp_view setBasePos:x y:y];
|
|
|
|
[mouse_amp_view draw];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + 110, spacing, "Freelook",
|
|
|
|
cvar("freelook") ? "On" : "Off");
|
|
|
|
draw_val_item (x + 70, y + 120, spacing, "Lookspring",
|
|
|
|
cvar ("lookspring") ? "On" : "Off");
|
|
|
|
draw_val_item (x + 70, y + 130, spacing, "Lookstrafe",
|
|
|
|
cvar ("lookstrafe") ? "On" : "Off");
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + (Menu_GetIndex () * 10) + 60 + cursor_pad);
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_control_options
|
|
|
|
|
|
|
|
Menu make function for control options
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_control_options =
|
|
|
|
{
|
|
|
|
Menu_Begin (54, 40, "Controls");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_CenterPic (160, 4, "gfx/p_option.lmp");
|
|
|
|
|
|
|
|
Menu_Draw (DRAW_control_options);
|
2004-02-07 00:09:50 +00:00
|
|
|
mouse_amp_view = [[CvarRangeView alloc] initWithBounds:[[Rect alloc] initWithComponents:70 :100 :232 :8] title:"Mouse amp:" sliderWidth:14 * 8 :[[CvarRange alloc] initWithCvar:"in_mouse_amp" min:MIN_MOUSE_AMP max:MAX_MOUSE_AMP step:MOUSE_AMP_STEP]];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
MENU_control_binding ();
|
|
|
|
|
|
|
|
Menu_Item (54, 70, "in_grab", CB_control_options, 0);
|
|
|
|
Menu_Item (54, 80, "autorun", CB_control_options, 0);
|
|
|
|
Menu_Item (54, 90, "m_pitch", CB_control_options, 0);
|
|
|
|
Menu_Item (54, 100, "mouseamp", CB_control_options, 1);
|
|
|
|
Menu_Item (54, 110, "freelook", CB_control_options, 0);
|
|
|
|
Menu_Item (54, 120, "lookspring", CB_control_options, 0);
|
|
|
|
Menu_Item (54, 130, "lookstrafe", CB_control_options, 0);
|
|
|
|
|
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
|
|
|
/***********************************************
|
|
|
|
* FEATURES OPTIONS
|
|
|
|
* Code of settings for special features of QF
|
|
|
|
***********************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_feature_options
|
|
|
|
|
|
|
|
Callback for feature settings
|
|
|
|
*/
|
|
|
|
integer (string text, integer key)
|
|
|
|
CB_feature_options =
|
|
|
|
{
|
|
|
|
switch (text) {
|
|
|
|
case "cl_autorecord":
|
|
|
|
Cbuf_AddText ("toggle cl_autorecord\n");
|
|
|
|
break;
|
|
|
|
case "cl_fraglog":
|
|
|
|
Cbuf_AddText ("toggle cl_fraglog\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_feature_options
|
|
|
|
|
|
|
|
Draws the feature option menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_feature_options =
|
|
|
|
{
|
|
|
|
local integer cursor_pad = 0, spacing = 120;
|
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Features");
|
|
|
|
Draw_String (x + 54, y + 50, "--------");
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + 60, spacing, "Auto Record",
|
2003-03-03 05:24:45 +00:00
|
|
|
cvar ("cl_autorecord") != 0 ? "On" : "Off");
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + 70, spacing, "Fraglogging",
|
2003-03-03 05:24:45 +00:00
|
|
|
cvar ("cl_fraglog") != 0 ? "On" : "Off");
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + (Menu_GetIndex () * 10) + 60 + cursor_pad);
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_feature_options
|
|
|
|
|
|
|
|
Makes the feature option menu
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_feature_options =
|
|
|
|
{
|
|
|
|
Menu_Begin (54, 70, "Features");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_CenterPic (160, 4, "gfx/p_option.lmp");
|
|
|
|
Menu_Draw (DRAW_feature_options);
|
|
|
|
Menu_Item (54, 70, "cl_autorecord", CB_feature_options, 0);
|
|
|
|
Menu_Item (54, 80, "cl_fraglog", CB_feature_options, 0);
|
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/***************************************************
|
|
|
|
* PLAYER OPTIONS
|
|
|
|
* Player settings, generally name, team, and color
|
|
|
|
***************************************************/
|
|
|
|
|
|
|
|
string playername_cvar; // name of the cvar holding playername (gametype dependend)
|
|
|
|
string teamname_cvar; // name of the cvar holding teamname (MAY ? gametype dependend)
|
|
|
|
|
|
|
|
// input for playername and teamname
|
2002-08-20 06:11:10 +00:00
|
|
|
InputLine player_config_plname_il;
|
|
|
|
InputLine player_config_tname_il;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
// this holds active inputline pointer
|
2002-08-20 06:11:10 +00:00
|
|
|
InputLine player_config_iactive;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
// Y padding for the player config
|
|
|
|
#define PLAYER_CONF_Y_PAD 60
|
|
|
|
|
|
|
|
// table for cursor-positions
|
|
|
|
#define NUM_PLAYERCONFIG_CMDS 4
|
|
|
|
integer [NUM_PLAYERCONFIG_CMDS] player_config_cursor_tbl = {
|
2003-03-03 05:24:45 +00:00
|
|
|
PLAYER_CONF_Y_PAD + 8,
|
|
|
|
PLAYER_CONF_Y_PAD + 20 + 8,
|
|
|
|
PLAYER_CONF_Y_PAD + 45,
|
|
|
|
PLAYER_CONF_Y_PAD + 60
|
2002-08-16 21:54:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
integer player_config_cursor;
|
|
|
|
|
|
|
|
// array, which holds commands for this menu
|
|
|
|
string [NUM_PLAYERCONFIG_CMDS] player_config_vals = {
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"topcolor",
|
|
|
|
"bottomcolor"
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
integer (integer key, integer unicode, integer down)
|
|
|
|
KEYEV_player_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local float colortmp;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
switch (key) {
|
|
|
|
case QFK_DOWN:
|
|
|
|
case QFM_WHEEL_DOWN:
|
|
|
|
if (!player_config_iactive) {
|
|
|
|
player_config_cursor ++;
|
|
|
|
player_config_cursor %= NUM_PLAYERCONFIG_CMDS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case QFK_UP:
|
|
|
|
case QFM_WHEEL_UP:
|
|
|
|
if (!player_config_iactive) {
|
|
|
|
player_config_cursor += NUM_PLAYERCONFIG_CMDS - 1;
|
|
|
|
player_config_cursor %= NUM_PLAYERCONFIG_CMDS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case QFK_RETURN:
|
|
|
|
if (player_config_iactive) {
|
2003-03-03 05:24:45 +00:00
|
|
|
if (player_config_iactive == player_config_plname_il) {
|
|
|
|
cvar_set (playername_cvar, [player_config_plname_il text]);
|
|
|
|
} else if (player_config_iactive == player_config_tname_il) {
|
|
|
|
cvar_set (teamname_cvar, [player_config_tname_il text]);
|
2002-08-16 21:54:21 +00:00
|
|
|
}
|
|
|
|
player_config_iactive = NIL;
|
|
|
|
} else {
|
|
|
|
if (player_config_cursor == 0) {
|
|
|
|
player_config_iactive = player_config_plname_il;
|
2003-03-03 05:24:45 +00:00
|
|
|
} else if (player_config_cursor == 1) {
|
2002-08-16 21:54:21 +00:00
|
|
|
player_config_iactive = player_config_tname_il;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if(key != QFK_RETURN && player_config_iactive) {
|
2002-08-20 06:11:10 +00:00
|
|
|
[player_config_iactive processInput:(key >= 256 ? key : unicode)];
|
2002-08-16 21:54:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if(!(key == QFK_RIGHT || key == QFK_LEFT )) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch (player_config_vals[player_config_cursor]) {
|
|
|
|
case "topcolor":
|
2003-03-03 05:24:45 +00:00
|
|
|
colortmp = cvar ("topcolor");
|
|
|
|
colortmp = min_max_cnt (MIN_COLOR, MAX_COLOR, COLOR_STEP, colortmp,
|
|
|
|
(key == QFK_RIGHT) && (key != QFK_LEFT));
|
|
|
|
cvar_set ("topcolor", ftos (colortmp));
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
case "bottomcolor":
|
2003-03-03 05:24:45 +00:00
|
|
|
colortmp = cvar ("bottomcolor");
|
|
|
|
colortmp = min_max_cnt (MIN_COLOR, MAX_COLOR, COLOR_STEP, colortmp,
|
|
|
|
(key == QFK_RIGHT) && (key != QFK_LEFT));
|
|
|
|
cvar_set ("bottomcolor", ftos (colortmp));
|
2002-08-16 21:54:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_player_options
|
|
|
|
|
|
|
|
Draws the player option menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_player_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer cursor_pad = 0, spacing = 120;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Player");
|
|
|
|
Draw_String (x + 54, y + 50, "--------");
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_String (x + 70, y + PLAYER_CONF_Y_PAD + 8, "Name..:");
|
|
|
|
text_box (x + 120, y + PLAYER_CONF_Y_PAD, 17, 1);
|
|
|
|
[player_config_plname_il setBasePos:x y:y];
|
2002-08-20 06:11:10 +00:00
|
|
|
[player_config_plname_il draw: player_config_iactive == player_config_plname_il];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_String (x + 70, y + PLAYER_CONF_Y_PAD + 20 + 8, "Team..:");
|
|
|
|
text_box (x + 120, y + PLAYER_CONF_Y_PAD + 20, 5, 1);
|
|
|
|
[player_config_tname_il setBasePos:x y:y];
|
2002-08-20 06:11:10 +00:00
|
|
|
[player_config_tname_il draw:player_config_iactive == player_config_tname_il];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + PLAYER_CONF_Y_PAD + 45, spacing, "Top color",
|
2003-03-03 05:24:45 +00:00
|
|
|
" " + ftos (cvar ("topcolor")));
|
2003-05-06 02:19:13 +00:00
|
|
|
draw_val_item (x + 70, y + PLAYER_CONF_Y_PAD + 60, spacing,
|
|
|
|
"Bottom color", " " + ftos (cvar ("bottomcolor")));
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
// Draw nice color boxes
|
2003-05-06 02:19:13 +00:00
|
|
|
text_box (x + 192, y + PLAYER_CONF_Y_PAD + 45 - 8, 1, 1);
|
|
|
|
Draw_Fill (x + 200, y + PLAYER_CONF_Y_PAD + 45, 16, 8,
|
2004-02-03 05:59:51 +00:00
|
|
|
(integer) cvar ("topcolor") * 16 + 8);
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
text_box (x + 192, y + PLAYER_CONF_Y_PAD + 60 - 8, 1, 1);
|
|
|
|
Draw_Fill (x + 200, y + PLAYER_CONF_Y_PAD + 60, 16, 8,
|
2004-02-03 05:59:51 +00:00
|
|
|
(integer) cvar ("bottomcolor") * 16 + 8);
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + player_config_cursor_tbl[player_config_cursor]);
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_ME_player_options
|
|
|
|
|
|
|
|
Entercallback for the playermenu.
|
|
|
|
For initalising the playername and teamname.
|
|
|
|
*/
|
|
|
|
integer ()
|
|
|
|
CB_ME_player_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
if (gametype () == "quakeworld") {
|
2002-08-16 21:54:21 +00:00
|
|
|
playername_cvar = "name";
|
|
|
|
} else {
|
|
|
|
playername_cvar = "_cl_name";
|
|
|
|
}
|
|
|
|
|
2003-03-03 05:24:45 +00:00
|
|
|
teamname_cvar = "team"; // FIXME: is this something else in netquake?
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-03-03 05:24:45 +00:00
|
|
|
[player_config_plname_il setText:Cvar_GetCvarString (playername_cvar)];
|
|
|
|
[player_config_tname_il setText:Cvar_GetCvarString (teamname_cvar)];
|
2002-08-16 21:54:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_player_options
|
|
|
|
|
|
|
|
Makes the player option menu
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_player_options =
|
|
|
|
{
|
2002-11-01 01:39:36 +00:00
|
|
|
player_config_plname_il = [[InputLine alloc] initWithBounds:[[Rect alloc] initWithComponents:120 :PLAYER_CONF_Y_PAD + 8 :18 :4] promptCharacter:' '];
|
2002-08-20 06:11:10 +00:00
|
|
|
[player_config_plname_il setWidth:18];
|
2002-11-01 01:39:36 +00:00
|
|
|
player_config_tname_il = [[InputLine alloc] initWithBounds:[[Rect alloc] initWithComponents:120 :PLAYER_CONF_Y_PAD + 8 + 20 :7 :4] promptCharacter:' '];
|
2002-08-20 06:11:10 +00:00
|
|
|
[player_config_tname_il setWidth:7];
|
2002-08-16 21:54:21 +00:00
|
|
|
player_config_iactive = NIL;
|
|
|
|
|
|
|
|
Menu_Begin (54, 80, "Player");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_KeyEvent (KEYEV_player_options);
|
|
|
|
Menu_EnterHook (CB_ME_player_options);
|
|
|
|
Menu_Draw (DRAW_player_options);
|
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
2003-03-03 05:24:45 +00:00
|
|
|
/*****************************************************************************
|
2002-08-16 21:54:21 +00:00
|
|
|
* NETWORK OPTIONS
|
|
|
|
* Options, which have to do with network stuff (rate, noskins, netgraph, ...)
|
2003-03-03 05:24:45 +00:00
|
|
|
*****************************************************************************/
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
// input for playername
|
2002-08-20 06:11:10 +00:00
|
|
|
InputLine network_config_rate_il;
|
2002-08-16 21:54:21 +00:00
|
|
|
// this holds active inputline pointer
|
2002-08-20 06:11:10 +00:00
|
|
|
InputLine network_config_iactive;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
integer network_config_cursor;
|
|
|
|
|
|
|
|
// Y padding for the player config
|
|
|
|
#define NETWORK_CONF_Y_PAD 60
|
|
|
|
|
|
|
|
// table for cursor-positions
|
|
|
|
#define NUM_NETWORKCONFIG_CMDS 1
|
|
|
|
integer [NUM_NETWORKCONFIG_CMDS] network_config_cursor_tbl = {
|
|
|
|
PLAYER_CONF_Y_PAD + 8,
|
|
|
|
};
|
|
|
|
|
|
|
|
integer network_config_cursor;
|
|
|
|
|
|
|
|
// array, which holds commands for this menu
|
|
|
|
string [NUM_NETWORKCONFIG_CMDS] network_config_vals = {
|
|
|
|
"",
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
integer (integer key, integer unicode, integer down)
|
|
|
|
KEYEV_network_options =
|
|
|
|
{
|
|
|
|
switch (key) {
|
|
|
|
case QFK_DOWN:
|
|
|
|
case QFM_WHEEL_DOWN:
|
|
|
|
if (!network_config_iactive) {
|
|
|
|
network_config_cursor ++;
|
|
|
|
network_config_cursor %= NUM_PLAYERCONFIG_CMDS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case QFK_UP:
|
|
|
|
case QFM_WHEEL_UP:
|
|
|
|
if (!network_config_iactive) {
|
|
|
|
network_config_cursor += NUM_PLAYERCONFIG_CMDS - 1;
|
|
|
|
network_config_cursor %= NUM_PLAYERCONFIG_CMDS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case QFK_RETURN:
|
|
|
|
if (network_config_iactive) {
|
|
|
|
if(network_config_iactive == network_config_rate_il) {
|
2002-08-20 06:11:10 +00:00
|
|
|
cvar_set("rate", [network_config_rate_il text]);
|
2002-08-16 21:54:21 +00:00
|
|
|
}
|
|
|
|
network_config_iactive = NIL;
|
|
|
|
} else {
|
|
|
|
if (network_config_cursor == 0) {
|
|
|
|
network_config_iactive = network_config_rate_il;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
2003-03-03 05:24:45 +00:00
|
|
|
if (key != QFK_RETURN && network_config_iactive) {
|
2002-08-20 06:11:10 +00:00
|
|
|
[network_config_iactive processInput:(key >= 256 ? key : unicode)];
|
2002-08-16 21:54:21 +00:00
|
|
|
}
|
|
|
|
|
2003-03-03 05:24:45 +00:00
|
|
|
if (!(key == QFK_RIGHT || key == QFK_LEFT )) {
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// switch (network_config_vals[network_config_cursor]) {
|
|
|
|
// } // none yet
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
DRAW_network_options
|
|
|
|
|
|
|
|
Draws the network option menu
|
|
|
|
*/
|
2003-05-06 02:19:13 +00:00
|
|
|
integer (integer x, integer y)
|
2002-08-16 21:54:21 +00:00
|
|
|
DRAW_network_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer cursor_pad = 0, spacing = 120;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_Pic (x + 16, y + 4, Draw_CachePic ("gfx/qplaque.lmp", 1));
|
|
|
|
Draw_CenterPic (x + 160, y + 4, Draw_CachePic ("gfx/p_option.lmp", 1));
|
|
|
|
Draw_String (x + 54, y + 40, "Network");
|
|
|
|
Draw_String (x + 54, y + 50, "--------");
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
Draw_String (x + 70, y + NETWORK_CONF_Y_PAD + 8, "Rate..:");
|
|
|
|
text_box (x + 120, y + NETWORK_CONF_Y_PAD, 9, 1);
|
|
|
|
[network_config_rate_il setBasePos:x y:y];
|
2002-08-20 06:11:10 +00:00
|
|
|
[network_config_rate_il draw: network_config_iactive == network_config_rate_il];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
2003-05-06 02:19:13 +00:00
|
|
|
opt_cursor (x + 62, y + player_config_cursor_tbl[player_config_cursor]);
|
2002-08-16 21:54:21 +00:00
|
|
|
return 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
CB_ME_network_options
|
|
|
|
|
|
|
|
Entercallback for the networkmenu.
|
|
|
|
*/
|
|
|
|
integer ()
|
|
|
|
CB_ME_network_options =
|
|
|
|
{
|
2002-08-20 06:11:10 +00:00
|
|
|
[network_config_rate_il setText:Cvar_GetCvarString("rate")];
|
2002-08-16 21:54:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_network_options
|
|
|
|
|
|
|
|
Makes the network option menu
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_network_options =
|
|
|
|
{
|
2002-11-01 01:39:36 +00:00
|
|
|
network_config_rate_il = [[InputLine alloc] initWithBounds:[[Rect alloc] initWithComponents: 120 :NETWORK_CONF_Y_PAD + 8 :9 :4] promptCharacter:' '];
|
2002-08-20 06:11:10 +00:00
|
|
|
[network_config_rate_il setWidth:9];
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
Menu_Begin (54, 90, "Network");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_KeyEvent (KEYEV_network_options);
|
|
|
|
Menu_EnterHook (CB_ME_network_options);
|
|
|
|
Menu_Draw (DRAW_network_options);
|
|
|
|
Menu_End ();
|
|
|
|
};
|
|
|
|
|
|
|
|
integer (string text, integer key)
|
|
|
|
op_goto_console =
|
|
|
|
{
|
2003-06-06 18:57:56 +00:00
|
|
|
Menu_SelectMenu ("");
|
2002-08-16 21:54:21 +00:00
|
|
|
Cbuf_AddText ("toggleconsole\n");
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*************************
|
|
|
|
* MAIN OPTIONS
|
|
|
|
* Main options menu code
|
|
|
|
*************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
MENU_options
|
|
|
|
|
|
|
|
Makes the main options menu
|
|
|
|
*/
|
|
|
|
void ()
|
|
|
|
MENU_options =
|
|
|
|
{
|
2003-03-03 05:24:45 +00:00
|
|
|
local integer spacing = 120;
|
2002-08-16 21:54:21 +00:00
|
|
|
|
|
|
|
Menu_Begin (54, 72, "");
|
|
|
|
Menu_FadeScreen (1);
|
|
|
|
Menu_Pic (16, 4, "gfx/qplaque.lmp");
|
|
|
|
Menu_CenterPic (160, 4, "gfx/p_option.lmp");
|
|
|
|
|
2002-08-17 03:25:54 +00:00
|
|
|
Menu_Item (54, 32, "Go to Console", op_goto_console, 0);
|
2002-08-16 21:54:21 +00:00
|
|
|
MENU_control_options ();
|
2003-03-03 05:24:45 +00:00
|
|
|
MENU_video_options ();
|
|
|
|
MENU_audio_options ();
|
2002-08-16 21:54:21 +00:00
|
|
|
MENU_feature_options ();
|
2003-03-03 05:24:45 +00:00
|
|
|
MENU_player_options ();
|
2002-08-16 21:54:21 +00:00
|
|
|
MENU_network_options ();
|
|
|
|
|
|
|
|
Menu_End ();
|
|
|
|
};
|