Passenger/driver sit still in moving cars: seat pose sent relative to the vehicle (backward-compatible), no backward pull; remote cars/traffic extrapolate in physics time and interpolate; UI polish (shadows, borders, gradient buttons, server list hover, fill bars, colored ping)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
33a415139b
commit
ce2fbdfc10
+4
-2
@@ -136,6 +136,7 @@ namespace MSCO
|
||||
{
|
||||
float width = Mathf.Min(Screen.width - 40, 960);
|
||||
var rect = new Rect((Screen.width - width) / 2f, 20, width, Mathf.Min(340, Screen.height * 0.5f));
|
||||
UiTheme.DrawShadow(rect);
|
||||
GUI.Box(rect, GUIContent.none, panel);
|
||||
|
||||
GUI.Label(new Rect(rect.x + 16, rect.y + 10, 300, 20), "MSCO CONSOLE", caption);
|
||||
@@ -271,6 +272,7 @@ namespace MSCO
|
||||
{
|
||||
float width = Mathf.Min(720, Screen.width - 40), height = Mathf.Min(580, Screen.height - 40);
|
||||
var rect = new Rect((Screen.width - width) / 2f, (Screen.height - height) / 2f, width, height);
|
||||
UiTheme.DrawShadow(rect);
|
||||
GUI.Box(rect, GUIContent.none, panel);
|
||||
|
||||
if (Event.current.type == EventType.KeyDown && Event.current.keyCode == KeyCode.Escape)
|
||||
@@ -493,7 +495,7 @@ namespace MSCO
|
||||
void EnsureStyles()
|
||||
{
|
||||
if (stylesReady && panel.normal.background != null) return;
|
||||
panel = UiTheme.Panel9(UiTheme.Background);
|
||||
panel = UiTheme.Card(UiTheme.Background, 10);
|
||||
rowStyle = UiTheme.Panel9(new Color(0.06f, 0.06f, 0.07f, 0.72f));
|
||||
rowStyle.padding = new RectOffset(12, 12, 6, 6);
|
||||
field = UiTheme.Field(14);
|
||||
@@ -505,7 +507,7 @@ namespace MSCO
|
||||
title = UiTheme.Label(22, UiTheme.Text, FontStyle.Bold);
|
||||
title.wordWrap = false;
|
||||
small = UiTheme.Label(11, UiTheme.Muted);
|
||||
primary = UiTheme.Button(UiTheme.Accent, UiTheme.AccentHover, Color.white);
|
||||
primary = UiTheme.PrimaryButton();
|
||||
secondary = UiTheme.Button(UiTheme.Secondary, UiTheme.SecondaryHover, UiTheme.Text, 12);
|
||||
danger = UiTheme.Button(UiTheme.Danger, UiTheme.DangerHover, Color.white, 12);
|
||||
chatName = UiTheme.Label(13, UiTheme.AccentHover, FontStyle.Bold, TextAnchor.MiddleLeft);
|
||||
|
||||
Reference in New Issue
Block a user