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

@@ -14,7 +14,7 @@ namespace RebootKitEditor.RebootWindow {
}
public VisualElement Build() {
VisualElement root = new() {
VisualElement root = new VisualElement {
style = {
paddingBottom = 4,
paddingTop = 4,
@@ -33,7 +33,7 @@ namespace RebootKitEditor.RebootWindow {
}
VisualElement CreateWorldView(WorldConfigAsset worldConfigAsset) {
VisualElement root = new() {
VisualElement root = new VisualElement {
style = {
backgroundColor = new Color(0.1f, 0.1f, 0.1f),
paddingBottom = 4,
@@ -45,7 +45,7 @@ namespace RebootKitEditor.RebootWindow {
}
};
Label label = new(worldConfigAsset.name) {
Label label = new Label(worldConfigAsset.name) {
style = {
color = new Color(0.7f, 0.9f, 0.9f),
unityFontStyleAndWeight = FontStyle.Bold
@@ -53,7 +53,7 @@ namespace RebootKitEditor.RebootWindow {
};
root.Add(label);
Button openButton = new(() => OpenWorldScenes(worldConfigAsset)) {
Button openButton = new Button(() => OpenWorldScenes(worldConfigAsset)) {
text = "Open",
style = {
backgroundColor = new Color(0.2f, 0.2f, 0.2f),