aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSong.pas
diff options
context:
space:
mode:
authorb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-08-22 13:40:42 +0000
committerb1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-08-22 13:40:42 +0000
commitbcc359df110e8fbd6737aba1e3365f880d1413e4 (patch)
tree6098c7454799d3889cece89ca7d9ac444761c25b /Game/Code/Screens/UScreenSong.pas
parent1492c2f949ded1bfc34623676d132cb07fb5ba1f (diff)
downloadusdx-bcc359df110e8fbd6737aba1e3365f880d1413e4.tar.gz
usdx-bcc359df110e8fbd6737aba1e3365f880d1413e4.tar.xz
usdx-bcc359df110e8fbd6737aba1e3365f880d1413e4.zip
limit number of displayed background covers to no more than 21 - need comments on this
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@352 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSong.pas')
-rw-r--r--Game/Code/Screens/UScreenSong.pas27
1 files changed, 20 insertions, 7 deletions
diff --git a/Game/Code/Screens/UScreenSong.pas b/Game/Code/Screens/UScreenSong.pas
index 3221f21e..9d3111cb 100644
--- a/Game/Code/Screens/UScreenSong.pas
+++ b/Game/Code/Screens/UScreenSong.pas
@@ -4,7 +4,7 @@ interface
uses
UMenu, SDL, UMusic, UFiles, UTime, UDisplay, USongs, SysUtils, ULog, UThemes, UTexture, ULanguage,
- ULCD, ULight, UIni;
+ ULCD, ULight, UIni, TextGL;
type
TScreenSong = class(TMenu)
@@ -1185,7 +1185,7 @@ begin
if (Abs(Pos) < 2.5) then {fixed Positions}
begin
Angle := Pi * (Pos / 5);
- //Button[B].Visible := False;
+// Button[B].Visible := False;
Button[B].H := Abs(Theme.Song.Cover.H * cos(Angle*0.8));//Power(Z2, 3);
@@ -1208,13 +1208,16 @@ begin
end
else
begin {Behind the Front Covers}
-// Button[B].Visible := False;
-// if VS/2-abs(Pos)>VS*0.4 then Button[B].Visible := False;
+
+ // limit-bg-covers hack
+ if (abs(VS/2-abs(Pos))>10) then Button[B].Visible:=False;
+ if VS > 25 then VS:=25;
+ // end of limit-bg-covers hack
if Pos < 0 then
- Pos := (Pos - VS/2) /VS
+ Pos := (Pos - VS/2)/VS
else
- Pos := (Pos + VS/2) /VS;
+ Pos := (Pos + VS/2)/VS;
Angle := pi * Pos*2;
@@ -1381,7 +1384,7 @@ begin
Music.SetMusicVolume(Round (CoverTime * Ini.PreviewVolume / Ini.PreviewFading * 10))
else
Music.SetMusicVolume(Ini.PreviewVolume * 10);
-
+
end;
@@ -1421,6 +1424,16 @@ begin
DrawEqualizer;
DrawExtensions;
+
+
+ glColor4f(1, 1, 1, 1);
+ SetFontStyle (2);
+ SetFontItalic(False);
+ SetFontSize(9);
+ SetFontPos (5, 0);
+ glPrint(pAnsiChar(inttostr(floor(CatSongs.VisibleSongs))));
+
+
end;
procedure TScreenSong.SelectNext;