Demo Finish

This commit is contained in:
h z
2024-06-27 04:16:35 +08:00
parent b8af5f3ccd
commit 8703f92b4e
8 changed files with 75 additions and 30 deletions

View File

@@ -57,12 +57,14 @@ public partial class MainControlPanel : HBoxContainer
{
Compounds.Clear();
TreeItem root = Compounds.CreateItem();
root.SetText(0, "Mixtures: ");
root.SetText(0, $"Mixtures({GlobalScene.Flask.Content.Layers.Count}): ");
root.SetMeta("isoExp", GlobalScene.Flask.Content.Dump());
int i = 1;
foreach (HomogeneousMixture h in GlobalScene.Flask.Content.LayerOrder)
{
TreeItem sRoot = Compounds.CreateItem(root);
sRoot.SetText(0,$"Mixture{i} Amt{h.Amount}");
sRoot.SetMeta("isoExp", h.Dump());
foreach (var group in h.Compounds.GroupBy(x => x.Expression))
{
TreeItem t = Compounds.CreateItem(root);