Integrate Godot cutout art

This commit is contained in:
2026-05-12 22:36:13 +02:00
parent 3224f3768b
commit 390a09015b
26 changed files with 466 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
using Godot;
using Godot;
namespace ReactorMaintenance.Godot.Controls;
@@ -6,10 +6,21 @@ public partial class CellInspector : PanelContainer
{
public override void _Ready()
{
AddChild(m_Text);
var body = new VBoxContainer();
AddChild(body);
var header = new HBoxContainer();
header.AddChild(FrontendAssets.CreateIcon(FrontendAssets.ScannerEyeIcon, new(34, 34)));
header.AddChild(new Label {
Text = "Inspector",
VerticalAlignment = VerticalAlignment.Center
});
body.AddChild(header);
body.AddChild(m_Text);
m_Text.Text = "Selected Cell: 0,0\nTerrain: service floor\nProp: none\nHazards: none\nUnderground: hidden";
m_Text.AutowrapMode = TextServer.AutowrapMode.WordSmart;
}
private readonly Label m_Text = new();
}
}