aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSingModi.pas
diff options
context:
space:
mode:
authorwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-03-22 19:59:00 +0000
committerwhiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-03-22 19:59:00 +0000
commitc33620b856f5106ba95638106c5a55ff88e5290c (patch)
tree3c77d4a382cbd23a05dfb4a59547e77a7af6c936 /Game/Code/Screens/UScreenSingModi.pas
parent541b91c3f40f283411faebe83d7cc50e2507c66e (diff)
downloadusdx-c33620b856f5106ba95638106c5a55ff88e5290c.tar.gz
usdx-c33620b856f5106ba95638106c5a55ff88e5290c.tar.xz
usdx-c33620b856f5106ba95638106c5a55ff88e5290c.zip
Fixed Bug: No BG in Party Mode and little Code clean up
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@16 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Screens/UScreenSingModi.pas41
1 files changed, 23 insertions, 18 deletions
diff --git a/Game/Code/Screens/UScreenSingModi.pas b/Game/Code/Screens/UScreenSingModi.pas
index 88034f61..ec47dc60 100644
--- a/Game/Code/Screens/UScreenSingModi.pas
+++ b/Game/Code/Screens/UScreenSingModi.pas
@@ -585,16 +585,16 @@ begin
Log.LogStatus('End', 'onShow'); }
-PlayersPlay := TeamInfo.NumTeams;
+ PlayersPlay := TeamInfo.NumTeams;
-if DLLMan.Selected.LoadSong then //Start with Song
-begin
- inherited;
-end
-else //Start Without Song
-begin
- Music.CaptureStart;
-end;
+ if DLLMan.Selected.LoadSong then //Start with Song
+ begin
+ inherited;
+ end
+ else //Start Without Song
+ begin
+ Music.CaptureStart;
+ end;
//Set Playerinfo
PlayerInfo.NumPlayers := PlayersPlay;
@@ -648,16 +648,21 @@ end;
//Music.CaptureStart;
//Music.MoveTo(AktSong.Start);
-//Init Plugin
-if not DLLMan.PluginInit(TeamInfo, PlayerInfo, ToSentences(Czesci[0]), LoadTex, Print, LoadSound, PlaySound) then
-begin
-//Fehler
-Log.LogError('Could not Init Plugin');
-Halt;
-end;
+ //Init Plugin
+ if not DLLMan.PluginInit(TeamInfo, PlayerInfo, ToSentences(Czesci[0]), LoadTex, Print, LoadSound, PlaySound) then
+ begin
+ //Fehler
+ Log.LogError('Could not Init Plugin');
+ Halt;
+ end;
+
+ // Set Background (Little Workaround, maybe change sometime)
+ if (DLLMan.Selected.LoadBack) AND (DLLMan.Selected.LoadSong) then
+ ScreenSing.Tex_Background := Tex_Background;
+
+ Winner := 0;
-Winner := 0;
-//Set Score Visibility
+ //Set Score Visibility
if PlayersPlay = 1 then begin
Text[TextP1Score].Visible := DLLMan.Selected.ShowScore;
Static[StaticP1ScoreBG].Visible := DLLMan.Selected.ShowScore;