2.10.9: beta notice in the MSCO menu and the in-game status bar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-04 20:45:59 +02:00
co-authored by Claude Opus 5.5
parent d195a484d8
commit dd4e004d51
4 changed files with 33 additions and 2 deletions
+15
View File
@@ -73,6 +73,7 @@ namespace MSCO
GUIStyle dangerStyle;
GUIStyle windowBox, sidebarBox, rowBox, accentBox, pillStyle, pillMutedStyle, chipOnStyle, chipOffStyle;
GUIStyle featuredRowBox, pillFeaturedStyle;
GUIStyle betaPillStyle, betaNoteStyle;
GUIStyle logoStyle, taglineStyle, navStyle, navActiveStyle, titleStyle, textStyle, captionStyle,
fieldStyle, primaryStyle, secondaryStyle, statusStyle, tabStyle, headerCellStyle,
rowNameStyle, rowTagStyle, badgeStyle, toggleStyle, placeholderStyle;
@@ -193,6 +194,9 @@ namespace MSCO
textX = r.x + S(72);
}
GUI.Label(new Rect(textX, r.y + S(24), r.xMax - textX, S(40)), "MSCO", logoStyle);
// Beta-Abzeichen direkt hinter dem Schriftzug
float logoWidth = logoStyle.CalcSize(new GUIContent("MSCO")).x;
GUI.Box(new Rect(textX + logoWidth + S(6), r.y + S(36), S(40), S(18)), "BETA", betaPillStyle);
GUI.Label(new Rect(r.x + S(22), r.y + S(70), r.width - S(30), S(20)), "MY SUMMER CAR ONLINE", taglineStyle);
GUI.DrawTexture(new Rect(r.x + S(20), r.y + S(98), r.width - S(40), S(1)), texDivider);
@@ -206,6 +210,9 @@ namespace MSCO
y += S(44);
int modCount = ModLoader.All.Count;
if (NavButton(new Rect(r.x, y, r.width, S(42)), "Mods" + (modCount > 0 ? " (" + modCount + ")" : ""), page == Page.Mods)) page = Page.Mods;
y += S(54);
GUI.Label(new Rect(r.x + S(22), y, r.width - S(40), S(64)),
"MSCO is still in beta - bugs can happen. If something goes wrong, please tell us.", betaNoteStyle);
// Eigenes Hauptmenü: Spiel beenden (die Knöpfe des Spiel-Menüs sind ausgeblendet)
if (quitConfirm)
@@ -1120,6 +1127,14 @@ namespace MSCO
logoStyle = Label(P(28), Color.white, FontStyle.Bold);
taglineStyle = Label(P(10), Muted, FontStyle.Bold);
betaPillStyle = UiTheme.Panel9(UiTheme.Accent, 4);
if (UiTheme.DynamicFont != null) betaPillStyle.font = UiTheme.DynamicFont;
betaPillStyle.normal.textColor = new Color(0.1f, 0.07f, 0.02f);
betaPillStyle.fontSize = P(10);
betaPillStyle.fontStyle = FontStyle.Bold;
betaPillStyle.alignment = TextAnchor.MiddleCenter;
betaNoteStyle = Label(P(11), Muted, FontStyle.Normal);
betaNoteStyle.wordWrap = true;
titleStyle = Label(P(24), Color.white, FontStyle.Bold);
textStyle = Label(P(13), Muted, FontStyle.Normal);
textStyle.wordWrap = true;