From 3645f8a6079fa52953aebf4e3ceeb590db8b217e Mon Sep 17 00:00:00 2001 From: hzhang Date: Thu, 27 Jun 2024 22:58:30 +0800 Subject: [PATCH] Finished --- Scenes/MainControlPanel.cs | 2 +- Scenes/VirtualChemistryDemo.cs | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Scenes/MainControlPanel.cs b/Scenes/MainControlPanel.cs index 87679c2..da1ba9a 100644 --- a/Scenes/MainControlPanel.cs +++ b/Scenes/MainControlPanel.cs @@ -67,7 +67,7 @@ public partial class MainControlPanel : HBoxContainer sRoot.SetMeta("isoExp", h.Dump()); foreach (var group in h.Compounds.GroupBy(x => x.Expression)) { - TreeItem t = Compounds.CreateItem(root); + TreeItem t = Compounds.CreateItem(sRoot); t.SetText(0, group.Key); t.SetSelectable(0, false); int j = 1; diff --git a/Scenes/VirtualChemistryDemo.cs b/Scenes/VirtualChemistryDemo.cs index 01284b3..2567b5d 100755 --- a/Scenes/VirtualChemistryDemo.cs +++ b/Scenes/VirtualChemistryDemo.cs @@ -7,10 +7,7 @@ public partial class VirtualChemistryDemo : Node2D public Bottle SelectedBottle { get; set; } private StringLoader ExpressionLoader { get; set; } - public void PopupStringLoader() - { - ExpressionLoader.Visible = true; - } + public void PopupStringLoader() => ExpressionLoader.Visible = true; // Called when the node enters the scene tree for the first time. public override void _Ready() @@ -22,8 +19,4 @@ public partial class VirtualChemistryDemo : Node2D GlobalScene.Demo = this; } - // Called every frame. 'delta' is the elapsed time since the previous frame. - public override void _Process(double delta) - { - } }