aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-10 11:29:30 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2011-04-10 11:29:30 +0000
commitc493259e966e69a989b379c3ed8a9a68f1f48c2a (patch)
tree68ca7044cd277a67829f60c9b9c1ecf9bee02c15
parent90d5518f9c0153cddcdbe85e5143d9eef5bc0d76 (diff)
downloadusdx-c493259e966e69a989b379c3ed8a9a68f1f48c2a.tar.gz
usdx-c493259e966e69a989b379c3ed8a9a68f1f48c2a.tar.xz
usdx-c493259e966e69a989b379c3ed8a9a68f1f48c2a.zip
fade in (and out) for lyric helper
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2815 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UDraw.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/Game/Code/Classes/UDraw.pas b/Game/Code/Classes/UDraw.pas
index 98d5f274..65cd859f 100644
--- a/Game/Code/Classes/UDraw.pas
+++ b/Game/Code/Classes/UDraw.pas
@@ -19,7 +19,7 @@ type
end;
procedure SingDraw(Alpha: TAlpha);
-procedure SingDrawLyricHelper(CP: integer; NR: TRecR);
+procedure SingDrawLyricHelper(CP: integer; NR: TRecR; Alpha: real);
procedure SingDrawNotes(P4Mode: boolean; NR: TRecR; Alpha: TAlpha);
procedure SingDrawNotesDuet(P4Mode: boolean; NR: TRecR; Alpha: TAlpha);
procedure SingModiDraw(PlayerInfo: TPlayerInfo; Alpha: TAlpha);
@@ -584,7 +584,7 @@ begin
end;
end;
-procedure SingDrawLyricHelper(CP: integer; NR: TRecR);
+procedure SingDrawLyricHelper(CP: integer; NR: TRecR; Alpha: real);
var
BarFrom: integer;
BarWspol: real;
@@ -622,7 +622,7 @@ begin
glColor4f(1, 1, 1, 0);
glTexCoord2f(0, 0); glVertex2f(Rec.Left, Rec.Top);
glTexCoord2f(0, 1); glVertex2f(Rec.Left, Rec.Bottom);
- glColor4f(1, 1, 1, 0.5);
+ glColor4f(1, 1, 1, 0.5*Alpha);
glTexCoord2f(1, 1); glVertex2f(Rec.Right, Rec.Bottom);
glTexCoord2f(1, 0); glVertex2f(Rec.Right, Rec.Top);
glEnd;
@@ -718,7 +718,7 @@ begin
ScreenSing.LyricMain[0].Draw;
ScreenSing.LyricSub[0].Draw;
- SingDrawLyricHelper(0, NR);
+ SingDrawLyricHelper(0, NR, Alpha[0]);
end;
if (AktSong.isDuet) then
@@ -730,7 +730,7 @@ begin
begin
ScreenSing.LyricMain[1].Draw;
ScreenSing.LyricSub[1].Draw;
- SingDrawLyricHelper(1, NR);
+ SingDrawLyricHelper(1, NR, Alpha[1]);
end;
end;