Merge remote-tracking branch 'origin/main' into claude/f6-pannelli
# Conflicts: # client/RailEnterprise.Client/assets/i18n/strings.csv # client/RailEnterprise.Client/scripts/Main.cs # client/RailEnterprise.Client/scripts/Screens/MenuScreen.cs # docs/ARCHITECTURE.md # docs/PROTOCOL.md # docs/STATE.md # src/RailEnterprise.Protocol/Client/ClientWorld.cs
This commit is contained in:
commit
767661957b
52 files changed
+4074
-91
No files matched your search
@@ -68,6 +68,8 @@ public partial class ConnectScreen : Control
|
||||
/// <summary>La sessione di prova diventa la partita: la schermata non la chiude più.</summary>
|
||||
public event Action<GameSession>? PlayRequested;
|
||||
public event Action<string>? LanguageChanged;
|
||||
/// <summary>Apre il pannello delle impostazioni audio.</summary>
|
||||
public event Action? AudioRequested;
|
||||
|
||||
/// <param name="remember">Falso per l'anteprima del collaudo: non legge né scrive le impostazioni.</param>
|
||||
/// <param name="autoStart">Avvia subito il server locale o verifica il server ricordato (falso nel collaudo).</param>
|
||||
@@ -219,7 +221,7 @@ public partial class ConnectScreen : Control
|
||||
_status.AutowrapMode = TextServer.AutowrapMode.WordSmart;
|
||||
col.AddChild(_status);
|
||||
|
||||
// piede: lingua, uscita, avviso sulla cifratura
|
||||
// piede: lingua, audio, uscita, avviso sulla cifratura
|
||||
var foot = PanelKit.Row(8);
|
||||
foreach (var (code, label) in new[] { ("it", "Italiano"), ("en", "English") })
|
||||
{
|
||||
@@ -227,6 +229,9 @@ public partial class ConnectScreen : Control
|
||||
b.Pressed += () => LanguageChanged?.Invoke(code);
|
||||
foot.AddChild(b);
|
||||
}
|
||||
var audio = new Button { Text = T("Audio") };
|
||||
audio.Pressed += () => AudioRequested?.Invoke();
|
||||
foot.AddChild(audio);
|
||||
foot.AddChild(new Control { SizeFlagsHorizontal = SizeFlags.ExpandFill });
|
||||
var quit = new Button { Text = T("Esci"), CustomMinimumSize = new Vector2(100, 0) };
|
||||
quit.Pressed += () => GetTree().Quit();
|
||||
|
||||
Reference in new issue
Block a user