This commit is contained in:
CortexCore
2023-07-08 14:03:19 +08:00
parent 506d2b2c72
commit 6fc4279878
3 changed files with 107 additions and 81 deletions

View File

@@ -22,9 +22,6 @@ public partial class IDIS_RegisterService : Node
{
templateList.AddItem(x.TemplateName);
}
var lineEdit = new LineEdit();
lineEdit.PlaceholderText = "请输入标识名称";
templateList.ItemClicked += OnItemClicked;
@@ -34,6 +31,9 @@ public partial class IDIS_RegisterService : Node
{
handleEdit.Text = $"88.123.99/{Mathf.Abs(Guid.NewGuid().GetHashCode())}";
};
handleEdit.Editable = false;
registerButton.Disabled = true;
}
private void OnItemClicked(long index, Vector2 atPosition, long mouseButtonIndex)
@@ -72,6 +72,9 @@ public partial class IDIS_RegisterService : Node
grid.AddChild(label);
grid.AddChild(lineEdit);
}
handleEdit.Editable = true;
registerButton.Disabled = false;
}
private void Register()