Files
VirtualChemistry.Demo/Scenes/VirtualChemistryDemo.cs
2024-06-27 22:58:30 +08:00

23 lines
638 B
C#
Executable File

using Godot;
public partial class VirtualChemistryDemo : Node2D
{
public Flask Flask { get; set; }
public RichTextLabel FullRepr { get; set; }
public Bottle SelectedBottle { get; set; }
private StringLoader ExpressionLoader { get; set; }
public void PopupStringLoader() => ExpressionLoader.Visible = true;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
ExpressionLoader = GetNode<StringLoader>("ExpressionLoader");
ExpressionLoader.Visible = false;
FullRepr = GetNode<RichTextLabel>("HRepr/FullRepr");
Flask = GetNode<Flask>("Flask");
GlobalScene.Demo = this;
}
}