diff options
author | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-23 12:40:29 +0000 |
---|---|---|
committer | mogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-08-23 12:40:29 +0000 |
commit | 0aeea2f7687d037282ff5ebd85ac361f19474c39 (patch) | |
tree | 0c92c2e45cd53202a5803a96f880c7e2f2f4f775 /Game/Code/Screens/UScreenOptionsGraphics.pas | |
parent | 87a601cc1528279b675a56131ef1061aa124f732 (diff) | |
download | usdx-0aeea2f7687d037282ff5ebd85ac361f19474c39.tar.gz usdx-0aeea2f7687d037282ff5ebd85ac361f19474c39.tar.xz usdx-0aeea2f7687d037282ff5ebd85ac361f19474c39.zip |
Visualization are now available and configurable via the options graphics screen
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1286 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenOptionsGraphics.pas | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Game/Code/Screens/UScreenOptionsGraphics.pas b/Game/Code/Screens/UScreenOptionsGraphics.pas index 08fca99d..f2b6faa2 100644 --- a/Game/Code/Screens/UScreenOptionsGraphics.pas +++ b/Game/Code/Screens/UScreenOptionsGraphics.pas @@ -17,7 +17,7 @@ type implementation -uses UGraphic, UMain, SysUtils; +uses UGraphic, UMain, SysUtils, TypInfo; function TScreenOptionsGraphics.ParseInput(PressedKey: Cardinal; CharCode: WideChar; PressedDown: Boolean): Boolean; begin @@ -48,7 +48,7 @@ begin { if SelInteraction <= 1 then begin Restart := true; end;} - if SelInteraction = 5 then begin + if SelInteraction = 6 then begin Ini.Save; AudioPlayback.PlaySound(SoundLib.Back); // FIXME: changing the video mode does not work this way in windows @@ -66,14 +66,14 @@ begin InteractPrev; SDLK_RIGHT: begin - if (SelInteraction >= 0) and (SelInteraction <= 4) then begin + if (SelInteraction >= 0) and (SelInteraction < 6) then begin AudioPlayback.PlaySound(SoundLib.Option); InteractInc; end; end; SDLK_LEFT: begin - if (SelInteraction >= 0) and (SelInteraction <= 4) then begin + if (SelInteraction >= 0) and (SelInteraction < 6) then begin AudioPlayback.PlaySound(SoundLib.Option); InteractDec; end; @@ -87,12 +87,12 @@ constructor TScreenOptionsGraphics.Create; // I: integer; // Auto Removed, Unused Variable begin inherited Create; - LoadFromTheme(Theme.OptionsGraphics); AddSelectSlide(Theme.OptionsGraphics.SelectResolution, Ini.Resolution, IResolution); AddSelectSlide(Theme.OptionsGraphics.SelectFullscreen, Ini.Fullscreen, IFullscreen); - AddSelectSlide(Theme.OptionsGraphics.SelectDepth, Ini.Depth, IDepth); + AddSelectSlide(Theme.OptionsGraphics.SelectDepth, Ini.Depth, IDepth); + AddSelectSlide(Theme.OptionsGraphics.SelectVisualizer, Ini.VisualizerOption, IVisualizer); AddSelectSlide(Theme.OptionsGraphics.SelectOscilloscope, Ini.Oscilloscope, IOscilloscope); AddSelectSlide(Theme.OptionsGraphics.SelectMovieSize, Ini.MovieSize, IMovieSize); |