/// <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); }
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); }
//シーンギャラリーを全部解放 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); } }
//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; }
/// <summary> /// CGギャラリー用のデータを取得 /// </summary> /// <param name="saveData">セーブデータ</param> /// <param name="gallery">ギャリーのデータ</param> public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData) { return(CreateCgGalleryList(saveData, "")); }
/// <summary> /// コンストラクタ /// </summary> /// <param name="title">表示タイトル</param> public AdvCgGalleryData(string thumbnailPath, AdvGallerySaveData saveData) { this.thumbnailPath = thumbnailPath; this.list = new List <AdvTextureSettingData>(); this.saveData = saveData; }
public List <AdvCgGalleryData> CreateCgGalleryList(AdvGallerySaveData saveData) { return(this.CreateCgGalleryList(saveData, string.Empty)); }