something
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user