private void AddThumbs(SongInformation newParent) { for (int i = removeList.Count - 1; i >= 0; i--) { thumbSprite.RemoveChild(removeList[i]); removeList.RemoveAt(i); } int iter = 0; var temp = new ThumbList(device) { Position = new SharpDX.Vector2(200 * newParent.Depth, 0) }; foreach (SongInformation songInfo in newParent.Children) { var component = new LoadablePictureComponent(device, resourceManager, songInfo) { Position = new SharpDX.Vector2(100, 225 + 100 * iter) }; temp.AddChild(component); iter++; } thumbSprite.AddChild(temp); currentParent = newParent; }
public MoviePlayer(PPDDevice device, IMovie movie, SongInformation songInfo, LoadablePictureComponent picture) : base(device) { this.movie = movie; this.songInfo = songInfo; this.picture = picture; movie.TrimmingData = songInfo.TrimmingData; movie.Initialize(); movie.Volume = songInfo.MovieVolume; movie.Seek(songInfo.StartTime); movie.Finished += movie_Finished; movie.Play(); Movie = movie; this.AddChild(movie as GameComponent); }