Example #1
0
    public void SetInput(ComparatorInput item, TabSchemeObject schemeObject)
    {
        int index = tabButtons.IndexOf(item);

        item.text.text = schemeObject.name;
        objects[index] = schemeObject.schemeObject;
        panel.AddInput(index);
    }
Example #2
0
    public void Add()
    {
        GameObject newO = Instantiate(inputPrefab, content);

        list.Add(newO);
        ComparatorInput input = newO.GetComponent <ComparatorInput>();

        input.panel = this;
        input.group = group;
        group.Subscribe(input);
        transform.SetAsLastSibling();
        fitter.SetLayoutVertical();
        LayoutRebuilder.ForceRebuildLayoutImmediate(rect);
        subject.inputs.Add(null);
        subject.types.Add(false);
    }
Example #3
0
    public void SetInputType(ComparatorInput item, bool newType)
    {
        int index = tabButtons.IndexOf(item);

        bools[index] = newType;
    }
Example #4
0
    public void SetInputType(ComparatorInput item)
    {
        int index = tabButtons.IndexOf(item);

        bools[index] = !bools[index];
    }