diff --git a/CLEditor/viewmodel/MainViewModel.cs b/CLEditor/viewmodel/MainViewModel.cs index 46c79bca472a3e115b5a55ff58f10bb86a0b3c84..0c47662ce2651311c13d39b32c88eb5df4bdce3e 100644 --- a/CLEditor/viewmodel/MainViewModel.cs +++ b/CLEditor/viewmodel/MainViewModel.cs @@ -83,7 +83,7 @@ namespace CLEngine.Editor.ViewModel private bool CanDataBaseAction() { - return false; + return true; } private void ClearTextureBuffAction() diff --git a/CLEditor/windows/DataBaseWindow.xaml b/CLEditor/windows/DataBaseWindow.xaml index 4ec111a5a340cfb95df0c4ac87caadd00be80b6e..a4a8a4dae8bf8ccd31c303874a063dcaede27716 100644 --- a/CLEditor/windows/DataBaseWindow.xaml +++ b/CLEditor/windows/DataBaseWindow.xaml @@ -1,15 +1,110 @@ - - - + Title="游戏数据库" Height="768" Width="1366" Background="{DynamicResource PanelBackground}"> + + + + - - + + + + diff --git a/CLEditor/windows/ManageTagsWindow.xaml.cs b/CLEditor/windows/ManageTagsWindow.xaml.cs index 5d9766ea0dd089343e36f0cea4b4616b1cea5e57..e3b254dfd911012bdafe91bd4d8da854039141b7 100644 --- a/CLEditor/windows/ManageTagsWindow.xaml.cs +++ b/CLEditor/windows/ManageTagsWindow.xaml.cs @@ -24,7 +24,7 @@ namespace CLEngine.Editor.windows { if (e.Key == Key.Enter) { - string text = this.addBtn.Text.Trim(); + string text = this.AddTextBox.Text.Trim(); if (text.Equals(string.Empty)) return; if (!SceneManager.ActiveScene.CommonTags.Contains(text))