diff options
author | s_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-06 14:40:10 +0000 |
---|---|---|
committer | s_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-06 14:40:10 +0000 |
commit | ba2e579b547b5331a2bcd900de04ae50818ada84 (patch) | |
tree | 218392f004d01b040965a3db0ad2f6042fbd7639 /src/screens | |
parent | 4907f448e55b63313a302863996d8c2461742800 (diff) | |
download | usdx-ba2e579b547b5331a2bcd900de04ae50818ada84.tar.gz usdx-ba2e579b547b5331a2bcd900de04ae50818ada84.tar.xz usdx-ba2e579b547b5331a2bcd900de04ae50818ada84.zip |
fix bugtracker issue 2817034
if selected to show the name screen after song select, than this screen
is now not shown before song select
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1975 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/UScreenLevel.pas | 10 | ||||
-rw-r--r-- | src/screens/UScreenMain.pas | 9 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/screens/UScreenLevel.pas b/src/screens/UScreenLevel.pas index 4d7d8b5e..1ead9773 100644 --- a/src/screens/UScreenLevel.pas +++ b/src/screens/UScreenLevel.pas @@ -74,14 +74,18 @@ begin Exit; end; end; - + // check special keys case PressedKey of SDLK_ESCAPE, SDLK_BACKSPACE : begin AudioPlayback.PlaySound(SoundLib.Back); - FadeTo(@ScreenName); + + if Ini.OnSongClick = sSelectPlayer then + FadeTo(@ScreenMain) + else + FadeTo(@ScreenName); end; SDLK_RETURN: @@ -106,8 +110,6 @@ begin end; constructor TScreenLevel.Create; -//var -// I: integer; // Auto Removed, Unused Variable begin inherited Create; diff --git a/src/screens/UScreenMain.pas b/src/screens/UScreenMain.pas index 7237eb80..ca4ba7cc 100644 --- a/src/screens/UScreenMain.pas +++ b/src/screens/UScreenMain.pas @@ -136,8 +136,13 @@ begin if (Ini.Players = 4) then PlayersPlay := 6; - ScreenName.Goto_SingScreen := false; - FadeTo(@ScreenName, SoundLib.Start); + if Ini.OnSongClick = sSelectPlayer then + FadeTo(@ScreenLevel) + else + begin + ScreenName.Goto_SingScreen := false; + FadeTo(@ScreenName, SoundLib.Start); + end; end else //show error message ScreenPopupError.ShowPopup(Language.Translate('ERROR_NO_SONGS')); |