public MultiFloatSlotControlView(AbstractLogicNodeEditor nodeEditor, string[] labels, Func <Vector4> get, Action <Vector4> set) { this.LoadAndAddStyleSheet("Styles/Controls/MultiFloatSlotControlView"); _nodeEditor = nodeEditor; _get = get; _set = set; var initialValue = get(); for (var i = 0; i < labels.Length; i++) { AddField(initialValue, i, labels[i]); } }
public VectorLogicSlot( AbstractLogicNodeEditor owner, string memberName, string displayName, SlotDirection direction, string[] labels, Func <Vector4> get, Action <Vector4> set) : base(owner, memberName, displayName, direction) { _get = get; _set = set; _labels = labels; }