diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-30 16:44:20 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-03-30 16:44:20 +0000 |
commit | d520f9f6ed8a3a0cb8e3063040db19758b7c6f38 (patch) | |
tree | b506e6c32265bea8d5dc5b96cab09ad8dd60b12c /Game/Code/Classes/UPlaylist.pas | |
parent | 61cbc6464e0c9469c4ddcf35285db220a18f153f (diff) | |
download | usdx-d520f9f6ed8a3a0cb8e3063040db19758b7c6f38.tar.gz usdx-d520f9f6ed8a3a0cb8e3063040db19758b7c6f38.tar.xz usdx-d520f9f6ed8a3a0cb8e3063040db19758b7c6f38.zip |
Prepared some classes for enhanced Song loading.
Commited to work with s_alexander in this task.
Song loading doesn't work at this point
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@983 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes/UPlaylist.pas')
-rw-r--r-- | Game/Code/Classes/UPlaylist.pas | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Game/Code/Classes/UPlaylist.pas b/Game/Code/Classes/UPlaylist.pas index 4f181d73..c05460cf 100644 --- a/Game/Code/Classes/UPlaylist.pas +++ b/Game/Code/Classes/UPlaylist.pas @@ -267,13 +267,13 @@ begin exit; //Hide all Songs - For I := 0 to high(CatSongs.Song) do - CatSongs.Song[I].Visible := False; + {For I := 0 to high(CatSongs.Song) do + CatSongs.Song[I].Visible := False;} //Show Songs in PL For I := 0 to high(PlayLists[Index].Items) do begin - CatSongs.Song[PlayLists[Index].Items[I].SongID].Visible := True; + //CatSongs.Song[PlayLists[Index].Items[I].SongID].Visible := True; end; //Set CatSongsMode + Playlist Mode @@ -335,8 +335,8 @@ Procedure TPlayListManager.DelPlaylist(const Index: Cardinal); var I: Integer; Filename: String; -begin - If Int(Index) > High(Playlists) then +begin // to - do : new Song management + {If Int(Index) > High(Playlists) then Exit; Filename := PlaylistPath + Playlists[Index].Filename; @@ -368,7 +368,7 @@ begin ScreenSong.Interaction := 0; ScreenSong.FixSelected; ScreenSong.ChangeMusic; - end; + end; } end; //---------- @@ -385,8 +385,8 @@ begin P := iPlaylist else exit; - - if (Int(SongID) <= High(CatSongs.Song)) AND (NOT CatSongs.Song[SongID].Main) then + // to - do : new Song management + {if (Int(SongID) <= High(CatSongs.Song)) AND (NOT CatSongs.Song[SongID].Main) then begin Len := Length(Playlists[P].Items); SetLength(Playlists[P].Items, Len + 1); @@ -401,7 +401,7 @@ begin //Correct Display when Editing current Playlist if (CatSongs.CatNumShow = -3) and (P = CurPlaylist) then SetPlaylist(P); - end; + end; } end; //---------- |