예제 #1
0
파일: MoviePanel.cs 프로젝트: KHCmaster/PPD
        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;
        }
예제 #2
0
파일: MoviePanel.cs 프로젝트: KHCmaster/PPD
            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);
            }