something

This commit is contained in:
2025-06-17 23:39:51 +02:00
parent 76b2c8c1bf
commit 518fd29d75
29 changed files with 118 additions and 101 deletions

View File

@@ -29,13 +29,13 @@ namespace SzafaKitEditor.VisualElements {
}
void CreateInlineField() {
VisualElement box = new() {
VisualElement box = new VisualElement {
style = {
height = 48
}
};
Label nameLabel = new("NAME") {
Label nameLabel = new Label("NAME") {
style = {
unityFontStyleAndWeight = FontStyle.Bold,
backgroundColor = new Color(0.1f, 0.1f, 0.1f, 1.0f)
@@ -43,7 +43,7 @@ namespace SzafaKitEditor.VisualElements {
};
box.Add(nameLabel);
Button button = new(ToggleDetails) {
Button button = new Button(ToggleDetails) {
text = "...",
style = {
width = new StyleLength(new Length(64.0f, LengthUnit.Pixel)),
@@ -62,10 +62,10 @@ namespace SzafaKitEditor.VisualElements {
}
void CreateDetailsBox() {
PropertyField nameField = new(_nameProperty);
PropertyField defaultValueKindField = new(_defaultValueKindProperty);
PropertyField numberField = new(_defaultValueNumberProperty);
PropertyField stringField = new(_defaultValueStringProperty);
PropertyField nameField = new PropertyField(_nameProperty);
PropertyField defaultValueKindField = new PropertyField(_defaultValueKindProperty);
PropertyField numberField = new PropertyField(_defaultValueNumberProperty);
PropertyField stringField = new PropertyField(_defaultValueStringProperty);
_details = new VisualElement {
style = {