Survival mode ready
This commit is contained in:
parent
0fff33d196
commit
7614b12076
50 changed files with 586 additions and 81 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue