diff --git a/CLEditor/windows/DataBaseWindow.xaml b/CLEditor/windows/DataBaseWindow.xaml
index a757d1ac93e034e9517496f32b620b251bbc1872..1025e9df7736c25486bd192860c3681dec498965 100644
--- a/CLEditor/windows/DataBaseWindow.xaml
+++ b/CLEditor/windows/DataBaseWindow.xaml
@@ -79,12 +79,14 @@
-
-
-
-
+
+
+
+
+
+
-
+
diff --git a/CLEditor/windows/DataBaseWindow.xaml.cs b/CLEditor/windows/DataBaseWindow.xaml.cs
index b92d9a7d37ffb17798f34922be5c5a96134da1ce..e87d50917ad3dca635c67183c221b08d45c800c8 100644
--- a/CLEditor/windows/DataBaseWindow.xaml.cs
+++ b/CLEditor/windows/DataBaseWindow.xaml.cs
@@ -1,5 +1,7 @@
-using System.Windows;
+using System.IO;
+using System.Windows;
using System.Windows.Controls;
+using CLEngine.Core;
using CLEngine.Core.framework;
using CLEngine.Editor.viewmodel;
@@ -43,5 +45,18 @@ namespace CLEngine.Editor.windows
{
(DataContext as DataBaseViewModel)?.ClearItemChildTypes(ClassificationComboBox.SelectedValue);
}
+ ///
+ /// 创建脚本
+ ///
+ private void CreateScript(){
+ string FileName = FileNameInput.Text;
+ string path = System.IO.Path.Combine(SceneManager.GameProject.ProjectPath,"\\\\Scripts\\\\");
+ string ScriptName = System.IO.Path.Combine(path, FileName);
+ if(!File.Exists(ScriptName)){
+ using(var sw=new StreamWriter(ScriptName)){
+
+ }
+ }
+ }
}
}