This commit is contained in:
h z
2024-06-26 14:23:02 +08:00
parent cbe5887f5f
commit b8af5f3ccd
22 changed files with 467 additions and 174 deletions

29
Scenes/VirtualChemistryDemo.cs Executable file
View File

@@ -0,0 +1,29 @@
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;
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}