Esempio n. 1
0
        /// <summary>
        /// CGギャラリー用のデータを取得
        /// </summary>
        /// <param name="saveData">セーブデータ</param>
        /// <param name="gallery">ギャリーのデータ</param>
        public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData)
        {
            List <AdvCgGalleryData> list        = new List <AdvCgGalleryData>();
            AdvCgGalleryData        currentData = null;

            foreach (var item in List)
            {
                if (item.TextureType == AdvTextureSettingData.Type.Event)
                {
                    if (string.IsNullOrEmpty(item.ThumbnailPath))
                    {
                        continue;
                    }

                    string path = item.ThumbnailPath;
                    if (currentData == null)
                    {
                        currentData = new AdvCgGalleryData(path, saveData);
                        list.Add(currentData);
                    }
                    else
                    {
                        if (path != currentData.ThumbnailPath)
                        {
                            currentData = new AdvCgGalleryData(path, saveData);
                            list.Add(currentData);
                        }
                    }
                    currentData.AddTextureData(item);
                }
            }
            return(list);
        }
Esempio n. 2
0
        public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData, string category)
        {
            List <AdvCgGalleryData> list = new List <AdvCgGalleryData>();
            AdvCgGalleryData        item = null;

            foreach (AdvTextureSettingData data2 in base.List)
            {
                if (((data2.TextureType == AdvTextureSettingData.Type.Event) && !string.IsNullOrEmpty(data2.ThumbnailPath)) && (string.IsNullOrEmpty(category) || (data2.CgCategory == category)))
                {
                    string thumbnailPath = data2.ThumbnailPath;
                    if (item == null)
                    {
                        item = new AdvCgGalleryData(thumbnailPath, saveData);
                        list.Add(item);
                    }
                    else if (thumbnailPath != item.ThumbnailPath)
                    {
                        item = new AdvCgGalleryData(thumbnailPath, saveData);
                        list.Add(item);
                    }
                    item.AddTextureData(data2);
                }
            }
            return(list);
        }
Esempio n. 3
0
        //シーンギャラリーを全部解放
        public void OpenAllSceneGallery()
        {
            AdvGallerySaveData save = Engine.SystemSaveData.GalleryData;
            List <AdvSceneGallerySettingData> list =  Engine.DataManager.SettingDataManager.SceneGallerySetting.List;

            foreach (AdvSceneGallerySettingData item in list)
            {
                save.AddSceneLabel(item.ScenarioLabel);
            }
        }
Esempio n. 4
0
        //Cgギャラリーを全部解放
        public void OpenAllCgGallery()
        {
            AdvGallerySaveData           save = Engine.SystemSaveData.GalleryData;
            List <AdvTextureSettingData> list = Engine.DataManager.SettingDataManager.TextureSetting.List;

            foreach (AdvTextureSettingData item in list)
            {
                if (item.TextureType != AdvTextureSettingData.Type.Event)
                {
                    continue;
                }
                if (string.IsNullOrEmpty(item.ThumbnailPath))
                {
                    continue;
                }

                save.AddCgLabel(item.Key);
            }
        }
		/// <summary>
		/// コンストラクタ
		/// </summary>
		/// <param name="title">表示タイトル</param>
		public AdvCgGalleryData(string thumbnailPath, AdvGallerySaveData saveData)
		{
			this.thumbnailPath = thumbnailPath;
			this.list = new List<AdvTextureSettingData>();
			this.saveData = saveData;
		}
Esempio n. 6
0
 /// <summary>
 /// CGギャラリー用のデータを取得
 /// </summary>
 /// <param name="saveData">セーブデータ</param>
 /// <param name="gallery">ギャリーのデータ</param>
 public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData)
 {
     return(CreateCgGalleryList(saveData, ""));
 }
Esempio n. 7
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="title">表示タイトル</param>
 public AdvCgGalleryData(string thumbnailPath, AdvGallerySaveData saveData)
 {
     this.thumbnailPath = thumbnailPath;
     this.list          = new List <AdvTextureSettingData>();
     this.saveData      = saveData;
 }
Esempio n. 8
0
 public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData)
 {
     return(this.CreateCgGalleryList(saveData, string.Empty));
 }