Survival mode ready

This commit is contained in:
Rendo 2025-06-26 20:18:19 +05:00
commit 7614b12076
50 changed files with 586 additions and 81 deletions

View file

@ -7,6 +7,9 @@ public partial class Previewport : SubViewport
{
private RuntimePlantData current_display;
[Export] private Label title;
[Export] private Label description;
public override void _Ready()
{
GetParent().GetViewport().GuiFocusChanged += OnFocusChanged;
@ -28,6 +31,8 @@ public partial class Previewport : SubViewport
current_display.QueueFree();
}
current_display = resource.Scene.Instantiate<RuntimePlantData>();
title.Text = resource.display_name;
description.Text = resource.display_description;
AddChild(current_display);
current_display.DisableBrain();
}