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

@@ -10,7 +10,7 @@ namespace RebootKitEditor.RebootWindow {
}
public VisualElement Build() {
ScrollView scrollView = new() {
ScrollView scrollView = new ScrollView {
style = {
flexGrow = 1
}
@@ -19,7 +19,7 @@ namespace RebootKitEditor.RebootWindow {
ConfigVarsContainer.Init();
foreach (ConfigVar cvar in ConfigVarsContainer.All()) {
VisualElement varContainer = new() {
VisualElement varContainer = new VisualElement {
style = {
marginBottom = 8,
paddingBottom = 8,
@@ -28,14 +28,14 @@ namespace RebootKitEditor.RebootWindow {
}
};
VisualElement valueContainer = new() {
VisualElement valueContainer = new VisualElement {
style = {
flexDirection = FlexDirection.Row
}
};
varContainer.Add(valueContainer);
Label nameLabel = new(cvar.name) {
Label nameLabel = new Label(cvar.name) {
style = {
color = new Color(0.7f, 0.9f, 0.9f),
unityFontStyleAndWeight = FontStyle.Bold
@@ -43,7 +43,7 @@ namespace RebootKitEditor.RebootWindow {
};
valueContainer.Add(nameLabel);
Label valueLabel = new(cvar.ToString()) {
Label valueLabel = new Label(cvar.ToString()) {
style = {
color = RTheme.s_FirstColor
}
@@ -66,7 +66,7 @@ namespace RebootKitEditor.RebootWindow {
valueContainer.Add(CreateFlagLabel("ReadOnly", new Color(0.13f, 0.07f, 0.47f)));
}
Label descLabel = new(cvar.description) {
Label descLabel = new Label(cvar.description) {
style = {
fontSize = 10,
color = new Color(0.7f, 0.7f, 0.7f)
@@ -81,7 +81,7 @@ namespace RebootKitEditor.RebootWindow {
}
VisualElement CreateFlagLabel(string text, Color color) {
Label label = new(text) {
Label label = new Label(text) {
style = {
fontSize = 12,
color = new Color(0.7f, 0.7f, 0.7f),