diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-07-18 20:18:27 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-07-18 20:18:27 +0000 |
commit | 2722fcd0ddec2fa8f7cd9af74efd54870cc94e8d (patch) | |
tree | b03492488a28f411252e43a2dd9f9d0d5682c18e /Game/Code/Screens/UScreenSong.pas | |
parent | ead7034cef8782f3a5eafa4f6c837be341e994a9 (diff) | |
download | usdx-2722fcd0ddec2fa8f7cd9af74efd54870cc94e8d.tar.gz usdx-2722fcd0ddec2fa8f7cd9af74efd54870cc94e8d.tar.xz usdx-2722fcd0ddec2fa8f7cd9af74efd54870cc94e8d.zip |
Little hack in SongScreen that fixes problems with blending. Drawing order changed only for SongScreen:
Buttons -> Statics -> Texts
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@301 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenSong.pas | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas index 87aa122e..3221f21e 100644 --- a/Game/Code/Screens/UScreenSong.pas +++ b/Game/Code/Screens/UScreenSong.pas @@ -1340,6 +1340,7 @@ function TScreenSong.Draw: boolean; var
dx: real;
dt: real;
+ I: Integer;
begin
dx := SongTarget-SongCurrent;
dt := TimeSkip*7;
@@ -1393,7 +1394,26 @@ begin end;
- inherited Draw;
+ //inherited Draw;
+ //heres a little Hack, that causes the Statics
+ //are Drawn after the Buttons because of some Blending Problems.
+ //This should cause no Problems because all Buttons on this screen
+ //Has Z Position.
+ //Draw BG
+ DrawBG;
+
+ //Instead of Draw FG Procedure:
+ //We draw Buttons for our own
+ for I := 0 to Length(Button) - 1 do
+ Button[I].Draw;
+
+ // Statics
+ for I := 0 to Length(Static) - 1 do
+ Static[I].Draw;
+
+ // and texts
+ for I := 0 to Length(Text) - 1 do
+ Text[I].Draw;
//Draw Equalizer
|