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
@@ -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