aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSing.pas
diff options
context:
space:
mode:
authors_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-14 03:15:16 +0000
committers_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-14 03:15:16 +0000
commit3206170f01b1ae102b94ecf4f65647d86312edc2 (patch)
tree263d076f7157d46ae9ed787c2730a1ce326182f4 /Game/Code/Screens/UScreenSing.pas
parent0ce8f19e59d386553bfcd5c321624c0abb63f00b (diff)
downloadusdx-3206170f01b1ae102b94ecf4f65647d86312edc2.tar.gz
usdx-3206170f01b1ae102b94ecf4f65647d86312edc2.tar.xz
usdx-3206170f01b1ae102b94ecf4f65647d86312edc2.zip
new lyric effect: slide
a lot lyric fixes change the resolution/fullscreen mode on exit the options menu some code improvements git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@957 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSing.pas')
-rw-r--r--Game/Code/Screens/UScreenSing.pas43
1 files changed, 18 insertions, 25 deletions
diff --git a/Game/Code/Screens/UScreenSing.pas b/Game/Code/Screens/UScreenSing.pas
index 4293d148..ad8325a2 100644
--- a/Game/Code/Screens/UScreenSing.pas
+++ b/Game/Code/Screens/UScreenSing.pas
@@ -158,11 +158,7 @@ begin
FadeTo(@ScreenScore);
end;
- SDLK_P://Pause Mod
- begin
- Pause;
- end;
-
+ SDLK_P,
SDLK_SPACE://Pause Mod
begin
Pause;
@@ -635,17 +631,10 @@ begin
end;
end; // case
- case Ini.LyricsEffect of
- 0: Lyrics.HoverEffekt := 1; // 0 - one selected, 1 - selected all to the current
- 1: Lyrics.HoverEffekt := 2;
- 2: Lyrics.HoverEffekt := 3;
- 3: Lyrics.HoverEffekt := 4;
- end; // case
-
// Add Lines to Lyrics
While (not Lyrics.LineinQueue) AND (Lyrics.LineCounter <= High(Lines[0].Line)) do
- Lyrics.AddLine(@Lines[0].Line[Lyrics.LineCounter]);
-
+ Lyrics.AddLine(@Lines[0].Line[Lyrics.LineCounter]);
+
//UpdateLCD; //TODO: maybe LCD Support as Plugin?
//Deactivate Pause
@@ -1399,17 +1388,21 @@ begin
GoldenRec.SentenceChange;
if (Lyrics.LineCounter <= High(Lines[0].Line)) then
begin
- Lyrics.AddLine(@Lines[0].Line[Lyrics.LineCounter]);
- // addline uses display memory
- // calling draw makes sure, there's the singscreen in it, when the next
- // swap between onscreen and offscreen buffers is done
- // (this eliminates the onSentenceChange flickering)
- // note: maybe it would be better to make sure, a display redraw is done
- // right after the sentence change (before buffer swap) or make sure
- // onsentencechange is only called right before calling Display.Draw
- // (or whatever it was called)
- Draw;
- end;
+ Lyrics.AddLine(@Lines[0].Line[Lyrics.LineCounter]);
+ end
+ else
+ Lyrics.AddLine(nil);
+
+ // addline uses display memory
+ // calling draw makes sure, there's the singscreen in it, when the next
+ // swap between onscreen and offscreen buffers is done
+ // (this eliminates the onSentenceChange flickering)
+ // note: maybe it would be better to make sure, a display redraw is done
+ // right after the sentence change (before buffer swap) or make sure
+ // onsentencechange is only called right before calling Display.Draw
+ // (or whatever it was called)
+ Draw;
+
//GoldenStarsTwinkle Mod End
end;