1
This commit is contained in:
@@ -32,7 +32,7 @@ namespace BITKit.GameEditor
|
||||
|
||||
var css = AssetDatabase.LoadAssetAtPath<StyleSheet>(BITEditorUtils.InspectorPath);
|
||||
|
||||
rootVisualElement.styleSheets.Add(css);
|
||||
rootVisualElement.styleSheets.Add(css);
|
||||
|
||||
var leftSlider = rootVisualElement.Create<VisualElement>();
|
||||
leftSlider.name = "LeftSlider";
|
||||
@@ -90,7 +90,18 @@ namespace BITKit.GameEditor
|
||||
var scroll = rootVisualElement.Create<ScrollView>();
|
||||
scroll.name = "Scroll";
|
||||
scroll.style.flexGrow = 1;
|
||||
|
||||
|
||||
{
|
||||
var newNameContainer = scroll.Create<GroupBox>();
|
||||
newNameContainer.style.flexDirection = FlexDirection.Row;
|
||||
var newNameField = newNameContainer.Create<TextField>();
|
||||
newNameField.style.flexGrow = 1;
|
||||
|
||||
var confirmButton = newNameContainer.Create<Button>();
|
||||
confirmButton.text = "重命名";
|
||||
}
|
||||
|
||||
|
||||
this.container = scroll.Create<GroupBox>();
|
||||
|
||||
var pingButton = toolbarContainer.Create<Button>();
|
||||
@@ -146,6 +157,9 @@ namespace BITKit.GameEditor
|
||||
var icon = container.Create<VisualElement>();
|
||||
var label = container.Create<Label>();
|
||||
|
||||
icon.name = nameof(VisualElement) + "--0";
|
||||
label.name = nameof(Label) + "--0";
|
||||
|
||||
container.style.flexDirection = FlexDirection.Row;
|
||||
container.style.alignContent = Align.Center;
|
||||
container.style.alignItems = Align.Center;
|
||||
@@ -210,7 +224,7 @@ namespace BITKit.GameEditor
|
||||
|
||||
var path = $"{AssetsPath}{name}.asset";
|
||||
|
||||
if (EditorUtility.DisplayDialog("创建", $"是否创建{name}与{path}?", "是", "否") is false) return;
|
||||
if (EditorUtility.DisplayDialog("创建", $"是否创建{name}到{path}?", "是", "否") is false) return;
|
||||
|
||||
new DirectoryInfo(Path.GetDirectoryName(path)!).Create();
|
||||
|
||||
|
Reference in New Issue
Block a user