From a858c9ef37c07e17289896dfbed3f0ba4709c0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=94=E5=87=A4=E5=95=B8=E5=A4=A9?= <1379113792@qq.com> Date: Wed, 24 Jul 2019 13:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=BC=80=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLEditor/windows/DataBaseWindow.xaml | 12 +++++++----- CLEditor/windows/DataBaseWindow.xaml.cs | 17 ++++++++++++++++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/CLEditor/windows/DataBaseWindow.xaml b/CLEditor/windows/DataBaseWindow.xaml index a757d1a..1025e9d 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 b92d9a7..e87d509 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)){ + + } + } + } } } -- Gitee