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
@@ -29,6 +29,9 @@ public partial class LinesPanel : VBoxContainer
|
||||
|
||||
public event Action? StopsChanged;
|
||||
|
||||
/// <summary>Pulsante «Crea linea» (per l'evidenziazione del tutorial).</summary>
|
||||
public Control? CreateButton { get; }
|
||||
|
||||
public LinesPanel(GameSession session)
|
||||
{
|
||||
_session = session;
|
||||
@@ -54,6 +57,7 @@ public partial class LinesPanel : VBoxContainer
|
||||
RefreshStops();
|
||||
};
|
||||
row.AddChild(create);
|
||||
CreateButton = create;
|
||||
row.AddChild(clear);
|
||||
AddChild(row);
|
||||
_status.AutowrapMode = TextServer.AutowrapMode.WordSmart;
|
||||
|
||||
@@ -27,6 +27,9 @@ public partial class TrackPanel : VBoxContainer
|
||||
public Button Build { get; } = UiTheme.Primary(T("Costruisci"));
|
||||
public Button Cancel { get; } = new() { Text = T("Annulla") };
|
||||
|
||||
/// <summary>Grafico del profilo (per l'evidenziazione del tutorial).</summary>
|
||||
public Control Chart => _chart;
|
||||
|
||||
public event Action? OptionsChanged;
|
||||
|
||||
public TrackPanel(ClientWorld world)
|
||||
|
||||
@@ -44,6 +44,11 @@ public partial class TrainsPanel : VBoxContainer
|
||||
|
||||
public event Action<int>? TrainSelected;
|
||||
|
||||
/// <summary>Pulsanti di acquisto, composizione e assegnazione (per l'evidenziazione del tutorial).</summary>
|
||||
public Control? BuyButton { get; }
|
||||
public Control? ComposeButton { get; }
|
||||
public Control? AssignButton { get; }
|
||||
|
||||
public TrainsPanel(GameSession session)
|
||||
{
|
||||
_session = session;
|
||||
@@ -61,6 +66,7 @@ public partial class TrainsPanel : VBoxContainer
|
||||
var buyButton = UiTheme.Primary(T("Compra veicoli"));
|
||||
buyButton.Pressed += Buy;
|
||||
AddChild(buyButton);
|
||||
BuyButton = buyButton;
|
||||
AddChild(UiTheme.Text(T("Veicoli liberi nel deposito (selezione multipla, in ordine)"), 13, Palette.TextSecondary));
|
||||
AddChild(_inDepot);
|
||||
// «perché»: valore del veicolo sotto il puntatore (residuo, valore contabile, rivendita)
|
||||
@@ -73,6 +79,7 @@ public partial class TrainsPanel : VBoxContainer
|
||||
var composeButton = new Button { Text = T("Componi") };
|
||||
composeButton.Pressed += Compose;
|
||||
compose.AddChild(composeButton);
|
||||
ComposeButton = composeButton;
|
||||
var sellButton = new Button { Text = T("Vendi") };
|
||||
sellButton.Pressed += Sell;
|
||||
compose.AddChild(sellButton);
|
||||
@@ -89,6 +96,7 @@ public partial class TrainsPanel : VBoxContainer
|
||||
var assignButton = new Button { Text = T("Assegna") };
|
||||
assignButton.Pressed += Assign;
|
||||
assign.AddChild(assignButton);
|
||||
AssignButton = assignButton;
|
||||
AddChild(assign);
|
||||
var home = new Button { Text = T("Manda al deposito") };
|
||||
home.Pressed += SendHome;
|
||||
|
||||
Reference in new issue
Block a user