public override void _Ready() { compoundListContainer = GetNode <VBoxContainer>(CompoundListContainerPath); childCache = new ChildObjectCache <Compound, CompoundAmount>(compoundListContainer, compound => new CompoundAmount { Compound = compound, PrefixPositiveWithPlus = true }); }
public override void _Ready() { chemicalEquationScene = GD.Load <PackedScene>("res://src/gui_common/ChemicalEquation.tscn"); createdProcessControls = new ChildObjectCache <IProcessDisplayInfo, ChemicalEquation>(this, CreateEquation); }
public CompoundListBox() { compoundAmountControls = new ChildObjectCache <Compound, CompoundAmount>(this, CreateChild); }