Exemplo n.º 1
0
    public override void _Ready()
    {
        compoundListContainer = GetNode <VBoxContainer>(CompoundListContainerPath);

        childCache = new ChildObjectCache <Compound, CompoundAmount>(compoundListContainer,
                                                                     compound => new CompoundAmount {
            Compound = compound, PrefixPositiveWithPlus = true
        });
    }
Exemplo n.º 2
0
    public override void _Ready()
    {
        chemicalEquationScene = GD.Load <PackedScene>("res://src/gui_common/ChemicalEquation.tscn");

        createdProcessControls = new ChildObjectCache <IProcessDisplayInfo, ChemicalEquation>(this, CreateEquation);
    }
Exemplo n.º 3
0
 public CompoundListBox()
 {
     compoundAmountControls = new ChildObjectCache <Compound, CompoundAmount>(this, CreateChild);
 }