This commit is contained in:
h z
2024-06-27 22:58:30 +08:00
parent 8703f92b4e
commit 3645f8a607
2 changed files with 2 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ public partial class MainControlPanel : HBoxContainer
sRoot.SetMeta("isoExp", h.Dump()); sRoot.SetMeta("isoExp", h.Dump());
foreach (var group in h.Compounds.GroupBy(x => x.Expression)) 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.SetText(0, group.Key);
t.SetSelectable(0, false); t.SetSelectable(0, false);
int j = 1; int j = 1;

View File

@@ -7,10 +7,7 @@ public partial class VirtualChemistryDemo : Node2D
public Bottle SelectedBottle { get; set; } public Bottle SelectedBottle { get; set; }
private StringLoader ExpressionLoader { get; set; } private StringLoader ExpressionLoader { get; set; }
public void PopupStringLoader() public void PopupStringLoader() => ExpressionLoader.Visible = true;
{
ExpressionLoader.Visible = true;
}
// Called when the node enters the scene tree for the first time. // Called when the node enters the scene tree for the first time.
public override void _Ready() public override void _Ready()
@@ -22,8 +19,4 @@ public partial class VirtualChemistryDemo : Node2D
GlobalScene.Demo = this; GlobalScene.Demo = this;
} }
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
} }