diff options
author | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-09 19:15:09 +0000 |
---|---|---|
committer | brunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-04-09 19:15:09 +0000 |
commit | 58a47541955f5010269d72a06e307bbb945211ea (patch) | |
tree | 1c70761d13c31aa959c54836d78306ba63057c98 /Game/Code/Classes | |
parent | 994ff6bfd803edd76f45e7b2e083c2bbd06e0cf3 (diff) | |
download | usdx-58a47541955f5010269d72a06e307bbb945211ea.tar.gz usdx-58a47541955f5010269d72a06e307bbb945211ea.tar.xz usdx-58a47541955f5010269d72a06e307bbb945211ea.zip |
- added missing files for iStar Theme
- added shuffle mode for song menu (random song preview when user idles for some time)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2225 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-rw-r--r-- | Game/Code/Classes/UIni.pas | 35 | ||||
-rw-r--r-- | Game/Code/Classes/UThemes.pas | 2 |
2 files changed, 30 insertions, 7 deletions
diff --git a/Game/Code/Classes/UIni.pas b/Game/Code/Classes/UIni.pas index 37258a44..048f1496 100644 --- a/Game/Code/Classes/UIni.pas +++ b/Game/Code/Classes/UIni.pas @@ -21,6 +21,7 @@ type Tabs: integer;
Tabs_at_startup:integer; //Tabs at Startup fix
Sorting: integer;
+ ShuffleTime: integer;
Debug: integer;
LoadFaultySongs:integer;
NewPartyPoints: integer;
@@ -121,6 +122,17 @@ const sTitle2 = 6;
sArtist2 = 7;
+ IShuffleTime: array[0..9] of string = ('Off',
+ '15 Sec',
+ '30 Sec',
+ '45 Sec',
+ '60 Sec',
+ '75 Sec',
+ '90 Sec',
+ '105 Sec',
+ '120 Sec',
+ 'MAX');
+
IDebug: array[0..1] of string = ('Off', 'On');
ILoadFaultySongs: array[0..1] of string = ('Off', 'On');
INewPartyPoints: array[0..1] of string = ('Off', 'On');
@@ -161,12 +173,12 @@ const // Advanced
ILoadAnimation: array[0..1] of string = ('Off', 'On');
IEffectSing: array[0..1] of string = ('Off', 'On');
- IScreenFade: array [0..1] of String =('Off', 'On');
+ IScreenFade: array [0..1] of String =('Off', 'On');
IAskbeforeDel: array[0..1] of string = ('Off', 'On');
IOnSongClick: array[0..2] of string = ('Sing', 'Select Players', 'Open Menu');
- ILineBonus: array[0..2] of string = ('Off', 'At Score', 'At Notes');
- IPartyPopup: array[0..1] of string = ('Off', 'On');
- ISumPlayers: array[0..2] of string = ('Never', 'Dynamic', 'Always');
+ ILineBonus: array[0..2] of string = ('Off', 'At Score', 'At Notes');
+ IPartyPopup: array[0..1] of string = ('Off', 'On');
+ ISumPlayers: array[0..2] of string = ('Never', 'Dynamic', 'Always');
IJoypad: array[0..1] of string = ('Off', 'On');
ILPT: array[0..2] of string = ('Off', 'LCD', 'Lights');
@@ -249,6 +261,11 @@ begin for Pet := 0 to High(ISorting) do
if Tekst = ISorting[Pet] then Ini.Sorting := Pet;
+ // ShuffleTime
+ Tekst := IniFile.ReadString('Game', 'ShuffleTime', 'Off');
+ for Pet := 0 to High(IShuffleTime) do
+ if Tekst = IShuffleTime[Pet] then Ini.ShuffleTime := Pet;
+
// Debug
Tekst := IniFile.ReadString('Game', 'Debug', IDebug[0]);
for Pet := 0 to High(IDebug) do
@@ -410,7 +427,7 @@ begin if Tekst = IPreviewFading[Pet] then Ini.PreviewFading := Pet;
// Lyrics Font
- Tekst := IniFile.ReadString('Lyrics', 'LyricsFont', ILyricsFont[1]);
+ Tekst := IniFile.ReadString('Lyrics', 'LyricsFont', ILyricsFont[2]);
for Pet := 0 to High(ILyricsFont) do
if Tekst = ILyricsFont[Pet] then Ini.LyricsFont := Pet;
@@ -442,7 +459,7 @@ begin ThemeIni.Free;
//if Default Theme then save Themeno to I2
- if (Tekst = 'Blue Sensation') then
+ if (Tekst = 'BLUE SENSATION') then
I2 := I;
//Search for Skins for this Theme
@@ -644,6 +661,10 @@ begin Tekst := ISorting[Ini.Sorting];
IniFile.WriteString('Game', 'Sorting', Tekst);
+ //ShuffleTime
+ Tekst := IShuffleTime[Ini.ShuffleTime];
+ IniFile.WriteString('Game', 'ShuffleTime', Tekst);
+
// Debug
Tekst := IDebug[Ini.Debug];
IniFile.WriteString('Game', 'Debug', Tekst);
@@ -808,7 +829,7 @@ begin Tekst := IPartyPopup[Ini.PartyPopup];
IniFile.WriteString('Advanced', 'PartyPopup', Tekst);
- //Party SumPlayers
+ //SumPlayers
Tekst := ISumPlayers[Ini.SumPlayers];
IniFile.WriteString('Advanced', 'SumPlayers', Tekst);
diff --git a/Game/Code/Classes/UThemes.pas b/Game/Code/Classes/UThemes.pas index 05c6575a..dd90987d 100644 --- a/Game/Code/Classes/UThemes.pas +++ b/Game/Code/Classes/UThemes.pas @@ -456,6 +456,7 @@ type SelectLanguage: TThemeSelectSlide;
SelectTabs: TThemeSelect;
SelectSorting: TThemeSelectSlide;
+ SelectShuffleTime: TThemeSelectSlide;
SelectDebug: TThemeSelect;
ButtonExit: TThemeButton;
end;
@@ -1345,6 +1346,7 @@ begin ThemeLoadSelectSlide(OptionsGame.SelectLanguage, 'OptionsGameSelectSlideLanguage');
ThemeLoadSelect(OptionsGame.SelectTabs, 'OptionsGameSelectTabs');
ThemeLoadSelectSlide(OptionsGame.SelectSorting, 'OptionsGameSelectSlideSorting');
+ ThemeLoadSelectSlide(OptionsGame.SelectShuffleTime, 'OptionsGameSelectShuffleTime');
ThemeLoadSelect(OptionsGame.SelectDebug, 'OptionsGameSelectDebug');
ThemeLoadButton(OptionsGame.ButtonExit, 'OptionsGameButtonExit');
|