Merge remote-tracking branch 'origin/main' into claude/f6-tooltip
# Conflicts: # client/RailEnterprise.Client/scripts/Hud/TopBar.cs # docs/STATE.md
This commit is contained in:
commit
69416e7db8
22 files changed
+1750
-14
No files matched your search
@@ -48,6 +48,9 @@ public partial class Toolbar : PanelContainer
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Pulsante di uno strumento (per l'evidenziazione del tutorial).</summary>
|
||||
public Control? ButtonFor(Tool tool) => _buttons.GetValueOrDefault(tool);
|
||||
|
||||
public void Select(Tool tool)
|
||||
{
|
||||
Current = tool;
|
||||
|
||||
@@ -28,6 +28,14 @@ public partial class TopBar : PanelContainer
|
||||
private readonly Label _server = UiTheme.Text("", 14);
|
||||
private readonly ColorRect _serverDot = new() { CustomMinimumSize = new Vector2(10, 10) };
|
||||
private readonly List<Button> _speeds = [];
|
||||
private VBoxContainer? _tierBox;
|
||||
private HBoxContainer? _speedBox;
|
||||
|
||||
/// <summary>Pulsanti della velocità (per l'evidenziazione del tutorial).</summary>
|
||||
public Control? SpeedBox => _speedBox;
|
||||
|
||||
/// <summary>Livello e avanzamento (per l'evidenziazione del tutorial).</summary>
|
||||
public Control? TierBox => _tierBox;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
@@ -66,6 +74,7 @@ public partial class TopBar : PanelContainer
|
||||
speeds.AddChild(b);
|
||||
}
|
||||
row.AddChild(speeds);
|
||||
_speedBox = speeds;
|
||||
row.AddChild(new Control { SizeFlagsHorizontal = SizeFlags.ExpandFill });
|
||||
row.AddChild(Stat(T("Cassa"), _cash));
|
||||
row.AddChild(Stat(T("Patrimonio netto"), _worth));
|
||||
|
||||
Reference in new issue
Block a user