using NodeNetwork.Toolkit.ValueNode; using NodeNetwork.ViewModels; using NodeNetwork.Views; using ReactiveUI; using Splat; namespace Intromat.ViewModels { public class CodeGenOutputViewModel : ValueNodeOutputViewModel { private bool _isMouseOver; static CodeGenOutputViewModel() { Locator.CurrentMutable.Register(() => new NodeOutputView(), typeof(IViewFor>)); } public CodeGenOutputViewModel(EPortType type) { Port = new CodeGenPortViewModel { PortType = type, IsPortVisible = true }; if (type == EPortType.Execution) PortPosition = PortPosition.Left; } public bool IsMouseOver { get => _isMouseOver; set => this.RaiseAndSetIfChanged(ref _isMouseOver, value); } } }