using Godot;

namespace ReactorMaintenance.Godot.Screens;

public partial class GameWonScreen : ScreenBase
{
    public void Configure(AppController app, int completedLevels)
    {
        var body = CreatePage("Campaign Complete");
        body.Alignment = BoxContainer.AlignmentMode.Center;
        body.AddChild(CreateBodyText($"All {completedLevels} handcrafted reactor incidents are resolved."));
        body.AddChild(CreateBodyText("The maintenance crew has restored enough capacity to bring the station back online."));
        body.AddChild(CreateButton("Main Menu", app.ShowMainMenu));
    }
}