Exemplo n.º 1
0
        /// <summary>
        /// Adds Opacity-Objects to list when they enter the collider
        /// </summary>
        /// <param name="collision">Collider with which collision occurred</param>
        private void OnTriggerEnter2D(Collider2D collision)
        {
            IOpacity opacity = collision.gameObject.GetComponent <IOpacity>();

            if (opacity != null)
            {
                objects.Add(new OpacityObject {
                    Transform = collision.transform, Opacity = opacity
                });
            }
        }
Exemplo n.º 2
0
        public NodeField(Instance instance, IObservableValue <string> name, IOpacity opacity, ILaminarValueStore valueStore, IUserInterfaceManager userInterfaces)
            : base(name, opacity)
        {
            _valueStore    = valueStore;
            UserInterfaces = userInterfaces;

            UserInterfaces.Displays = instance.RegisteredDisplays;
            UserInterfaces.Editors  = instance.RegisteredEditors;
            _factory = instance.Factory;

            _valueStore.AnyValueChanged += ValueStore_AnyValueChanged;
            _valueStore.ChangedAtKey    += (o, e) => AnyValueChanged?.Invoke(this, e);
            Name.OnChange += _valueStore.SetValueName;
        }
 public NodeComponentAutoCloner(IOpacity opacity) : base(opacity)
 {
 }
Exemplo n.º 4
0
 public EditableNodeLabel(IObservableValue <string> name, IOpacity opacity, IObservableValue <string> labelText)
     : base(name, opacity, labelText)
 {
 }
Exemplo n.º 5
0
 public NodeDecorator(IOpacity opacity) : base(opacity)
 {
 }
Exemplo n.º 6
0
 public NodeComponentList(IOpacity opacity) : base(opacity)
 {
 }
Exemplo n.º 7
0
 public NodeComponent(IOpacity opacity)
 {
     Opacity = opacity;
 }
 public EditableNodeLabel(IObservableValue <string> name, IFlow flowInput, IFlow flowOutput, IOpacity opacity, IObservableValue <string> labelText)
     : base(name, flowInput, flowOutput, opacity, labelText)
 {
 }
Exemplo n.º 9
0
 public Separator(IObservableValue <string> name, IFlow flowInput, IFlow flowOutput, IOpacity opacity, IObjectFactory factory)
     : base(name, flowInput, flowOutput, opacity)
 {
     _factory = factory;
 }
Exemplo n.º 10
0
 public Separator(IObservableValue <string> name, IOpacity opacity, IObjectFactory factory)
     : base(name, opacity)
 {
     _factory = factory;
 }
Exemplo n.º 11
0
 public NodeLabel(IOpacity opacity) : base(opacity)
 {
 }
Exemplo n.º 12
0
        public VisualNodeComponent(IObservableValue <string> name, IFlow flowInput, IFlow flowOutput, IOpacity opacity) : base(opacity)
        {
            Name       = name;
            FlowInput  = flowInput;
            FlowOutput = flowOutput;
            FlowInput.ParentComponent  = this;
            FlowOutput.ParentComponent = this;

            VisualComponentList = new List <IVisualNodeComponent>()
            {
                this
            };
        }
Exemplo n.º 13
0
 public NodeLabel(IObservableValue <string> name, IFlow flowInput, IFlow flowOutput, IOpacity opacity, IObservableValue <string> labelText)
     : base(name, flowInput, flowOutput, opacity)
 {
     LabelText             = labelText;
     LabelText.Value       = Name.Value;
     Name.PropertyChanged += (o, e) =>
     {
         LabelText.Value = Name.Value;
     };
 }