Demo Finish
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Godot;
|
||||
using VirtualChemDemo;
|
||||
using VirtualChemDemo.Concepts;
|
||||
using VirtualChemistry.Chemistry.Atoms.Implements;
|
||||
using VirtualChemistry.Chemistry.Atoms.Resolver;
|
||||
@@ -19,13 +17,14 @@ public partial class CompoundConstructor : Panel
|
||||
public BaseBond ConnectPending { get; set; } = BaseBond.Null;
|
||||
public Atom PendingAtom { get; set; }
|
||||
public Dictionary<Atom, HashSet<Bond2D>> BondMap { get; set; } = new();
|
||||
private Viewer PanelViewer { get; set; }
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
GlobalScene.CompoundConstructor = this;
|
||||
HeterogeneousMixture = new();
|
||||
HomogeneousMixture = HeterogeneousMixture.AddLayer();
|
||||
PanelViewer = GetNode<Viewer>("Viewer");
|
||||
}
|
||||
|
||||
private static class AtomPositionFixMemory
|
||||
@@ -214,4 +213,5 @@ public partial class CompoundConstructor : Panel
|
||||
}
|
||||
|
||||
private void ForceClear() => Clear(false);
|
||||
private void BackToCenter() => PanelViewer.BackToCenter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user