diff options
author | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-05-03 20:12:20 +0000 |
---|---|---|
committer | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-05-03 20:12:20 +0000 |
commit | 3114977b5509c775c93d5ba3d5220a1ff9d363a7 (patch) | |
tree | 0d3f0c68e8e20d6dbe92c040371c9a7c1818a782 /Game/Code | |
parent | f38292d6da93cf20c075e4ed74c377819af88091 (diff) | |
download | usdx-3114977b5509c775c93d5ba3d5220a1ff9d363a7.tar.gz usdx-3114977b5509c775c93d5ba3d5220a1ff9d363a7.tar.xz usdx-3114977b5509c775c93d5ba3d5220a1ff9d363a7.zip |
slight changes to positions of song covers (in SetScroll5)
ReflectionSpacing now varies with the size of the cover -- the further back a cover, the smaller it is... as should be the reflection spacing
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@163 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenSong.pas | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas index 1f3c7c8f..e0714c2d 100644 --- a/Game/Code/Screens/UScreenSong.pas +++ b/Game/Code/Screens/UScreenSong.pas @@ -1104,24 +1104,26 @@ begin Pos := Pos + VS
else if (Pos > VS/2) then
Pos := Pos - VS;
-
+
if (Abs(Pos) < 2.5) then {fixed Positions}
begin
Angle := Pi * (Pos / 5);
//Button[B].Visible := False;
- Button[B].H := Abs(Theme.Song.Cover.H * cos(Angle));//Power(Z2, 3);
+ Button[B].H := Abs(Theme.Song.Cover.H * cos(Angle*0.8));//Power(Z2, 3);
+
+ Button[B].DeSelectReflectionspacing := 15 * Button[B].H/Theme.Song.Cover.H;
Button[B].Z := 0.95 - Abs(Pos) * 0.01;
- Button[B].Y := (Theme.Song.Cover.Y + (Theme.Song.Cover.H - Button[B].H) * 0.7);
+ Button[B].Y := (Theme.Song.Cover.Y + (Theme.Song.Cover.H - Abs(Theme.Song.Cover.H * cos(Angle))) * 0.7);
Button[B].W := Button[B].H;
Diff := (Button[B].H - Theme.Song.Cover.H)/2;
- X := Sin(Angle);
+ X := Sin(Angle*1.3)*0.9;
Button[B].X := Theme.Song.Cover.X + Theme.Song.Cover.W * X - Diff;
|