Implement Godot UX scene scaffold

This commit is contained in:
2026-05-12 21:06:48 +02:00
parent 8cf554574b
commit 33859d2cf6
74 changed files with 1060 additions and 8 deletions

View File

@@ -0,0 +1,19 @@
using Godot;
using ReactorMaintenance.Godot.Data;
namespace ReactorMaintenance.Godot.Screens;
public partial class GameOverScreen : ScreenBase
{
public void Configure(AppController app, CampaignLevel level)
{
var body = CreatePage("Game Over");
body.Alignment = BoxContainer.AlignmentMode.Center;
body.AddChild(CreateBodyText($"Failed level: {level.Name}"));
var actions = new HBoxContainer { SizeFlagsHorizontal = SizeFlags.ShrinkCenter };
body.AddChild(actions);
actions.AddChild(CreateButton("Retry Current Level", app.RetryCurrentLevel));
actions.AddChild(CreateButton("Main Menu", app.ShowMainMenu));
}
}