Integrate Godot cutout art
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user