/// <summary> /// オートタイル追加 /// </summary> private void tolAutoTileAdd_Click(object sender, EventArgs e) { var path = new CtrlComponent.Common.ctlPathSetter { DialogType = CtrlComponent.Common.ctlPathSetter.SetterDialogType.ProjectRoot, DialogTitle = "オートタイルの追加", FileFilter = Resources.Extension_Graphics, RootPath = Resources.Path_Materials }; if (path.OpenPathDialog()) { this.mgr.EdittingData.AddAutoTile(path.Result); } }
/// <summary> /// フォルダーからオブジェクトタイル追加 /// </summary> private void tolOBJFolderAdd_Click(object sender, EventArgs e) { var path = new CtrlComponent.Common.ctlPathSetter { DialogType = CtrlComponent.Common.ctlPathSetter.SetterDialogType.ProjectRoot, DialogTitle = "フォルダーからオートタイル一括追加", FileFilter = Resources.Extension_Graphics, EnabledFiles = false, RootPath = Resources.Path_Materials }; if (path.OpenPathDialog()) { //素材形式が不正な場合や上限数に達した場合はスキップされる this.mgr.EdittingData.AddObjTileInFolder(path.Result); } }
/// <summary> /// オブジェクトタイル追加 /// </summary> private void tolOBJAdd_Click(object sender, EventArgs e) { var path = new CtrlComponent.Common.ctlPathSetter { DialogType = CtrlComponent.Common.ctlPathSetter.SetterDialogType.ProjectRoot, DialogTitle = "オブジェクトタイルの追加", FileFilter = Resources.Extension_Graphics, RootPath = Resources.Path_Materials }; if (path.OpenPathDialog()) { //素材形式が不正な場合は却下 if (this.mgr.EdittingData.CheckObjTileSize(path.Result, true)) { this.mgr.EdittingData.AddObjTile(path.Result); } } }
/// <summary> /// オートタイル編集 /// </summary> private void tolAutoTileEdit_Click(object sender, EventArgs e) { if (this.ltvAutoTiles.SelectedIndices.Count != 1) { return; } var path = new CtrlComponent.Common.ctlPathSetter { DialogType = CtrlComponent.Common.ctlPathSetter.SetterDialogType.ProjectRoot, DialogTitle = "オートタイルの変更", FileFilter = Resources.Extension_Graphics, Result = this.ltvAutoTiles.SelectedItems[0].Text, RootPath = Resources.Path_Materials }; if (path.OpenPathDialog()) { this.mgr.EdittingData.ReplaceAutoTile(this.ltvAutoTiles.SelectedIndices[0], path.Result); } }