Added aspect ratio option to the setup menu
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3641 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Changes towards version 0.8:
|
||||
- Added aspect ratio option to the setup menu - Alex
|
||||
- Added speech option which controls loading of 3dovoice addon (no need
|
||||
to set speech volume to 0 anymore) - Alex
|
||||
- Added the MetaChron story to the no-voice Melnorme script (bug #43) - Alex
|
||||
|
||||
@@ -35,6 +35,7 @@ Player Two
|
||||
Control Set
|
||||
UQM Remixes
|
||||
Speech
|
||||
Aspect Ratio
|
||||
|
||||
#(CAT_0_OPTS)
|
||||
320x240
|
||||
@@ -436,6 +437,20 @@ Use 3DO speech. The script is closer to 3DO
|
||||
version where there are differences.
|
||||
Requires a restart of UQM to take effect.
|
||||
|
||||
#(CAT_23_OPTS)
|
||||
Any
|
||||
Force 4:3
|
||||
|
||||
#(CAT_23_OPT_0_DESC)
|
||||
Allow any aspect ratio. The game may be
|
||||
stretched in windows that are not 4:3.
|
||||
Currently only meaningful in OpenGL mode.
|
||||
|
||||
#(CAT_23_OPT_1_DESC)
|
||||
Display the game with 4:3 aspect even when
|
||||
the window is not.
|
||||
Currently only meaningful in OpenGL mode.
|
||||
|
||||
#(SLIDERS)
|
||||
Music Volume
|
||||
SFX Volume
|
||||
|
||||
@@ -73,7 +73,7 @@ static void clear_control (WIDGET_CONTROLENTRY *widget);
|
||||
#endif
|
||||
|
||||
#define MENU_COUNT 8
|
||||
#define CHOICE_COUNT 23
|
||||
#define CHOICE_COUNT 24
|
||||
#define SLIDER_COUNT 3
|
||||
#define BUTTON_COUNT 10
|
||||
#define LABEL_COUNT 4
|
||||
@@ -96,7 +96,7 @@ typedef int (*HANDLER)(WIDGET *, int);
|
||||
static int choice_widths[CHOICE_COUNT] = {
|
||||
3, 2, 3, 3, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 3, 2, 2, 3, 3, 2, 3, 3,
|
||||
3, 2, 2 };
|
||||
3, 2, 2, 2 };
|
||||
|
||||
static HANDLER button_handlers[BUTTON_COUNT] = {
|
||||
quit_main_menu, quit_sub_menu, do_graphics, do_engine,
|
||||
@@ -117,6 +117,7 @@ static WIDGET *main_widgets[] = {
|
||||
|
||||
static WIDGET *graphics_widgets[] = {
|
||||
(WIDGET *)(&choices[0]),
|
||||
(WIDGET *)(&choices[23]),
|
||||
(WIDGET *)(&choices[10]),
|
||||
(WIDGET *)(&choices[2]),
|
||||
(WIDGET *)(&choices[3]),
|
||||
@@ -399,6 +400,7 @@ SetDefaults (void)
|
||||
choices[20].selected = 0;
|
||||
choices[21].selected = opts.musicremix;
|
||||
choices[22].selected = opts.speech;
|
||||
choices[23].selected = opts.keepaspect;
|
||||
|
||||
sliders[0].value = opts.musicvol;
|
||||
sliders[1].value = opts.sfxvol;
|
||||
@@ -431,6 +433,7 @@ PropagateResults (void)
|
||||
opts.player2 = choices[19].selected;
|
||||
opts.musicremix = choices[21].selected;
|
||||
opts.speech = choices[22].selected;
|
||||
opts.keepaspect = choices[23].selected;
|
||||
|
||||
opts.musicvol = sliders[0].value;
|
||||
opts.sfxvol = sliders[1].value;
|
||||
@@ -1121,6 +1124,7 @@ GetGlobalOptions (GLOBALOPTS *opts)
|
||||
opts->music3do = opt3doMusic ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
opts->musicremix = optRemixMusic ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
opts->speech = optSpeech ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
opts->keepaspect = optKeepAspectRatio ? OPTVAL_ENABLED : OPTVAL_DISABLED;
|
||||
switch (snddriver) {
|
||||
case audio_DRIVER_OPENAL:
|
||||
opts->adriver = OPTVAL_OPENAL;
|
||||
@@ -1343,6 +1347,7 @@ SetGlobalOptions (GLOBALOPTS *opts)
|
||||
optSpeech = (opts->speech == OPTVAL_ENABLED);
|
||||
optWhichIntro = (opts->intro == OPTVAL_3DO) ? OPT_3DO : OPT_PC;
|
||||
optStereoSFX = (opts->stereo == OPTVAL_ENABLED);
|
||||
optKeepAspectRatio = (opts->keepaspect == OPTVAL_ENABLED);
|
||||
PlayerControls[0] = opts->player1;
|
||||
PlayerControls[1] = opts->player2;
|
||||
|
||||
@@ -1360,6 +1365,7 @@ SetGlobalOptions (GLOBALOPTS *opts)
|
||||
res_PutBoolean ("config.smoothmelee", opts->meleezoom == OPTVAL_3DO);
|
||||
res_PutBoolean ("config.positionalsfx", opts->stereo == OPTVAL_ENABLED);
|
||||
res_PutBoolean ("config.pulseshield", opts->shield == OPTVAL_3DO);
|
||||
res_PutBoolean ("config.keepaspectratio", opts->keepaspect == OPTVAL_ENABLED);
|
||||
res_PutInteger ("config.player1control", opts->player1);
|
||||
res_PutInteger ("config.player2control", opts->player2);
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ typedef struct globalopts_struct {
|
||||
OPT_AQUALITYTYPE aquality;
|
||||
OPT_ENABLABLE fullscreen, subtitles, scanlines, fps, stereo;
|
||||
OPT_ENABLABLE music3do, musicremix, speech;
|
||||
OPT_ENABLABLE keepaspect;
|
||||
OPT_CONSOLETYPE menu, text, cscan, scroll, intro, meleezoom, shield;
|
||||
CONTROL_TEMPLATE player1, player2;
|
||||
int speechvol, musicvol, sfxvol;
|
||||
|
||||
Reference in New Issue
Block a user