port from perforce
This commit is contained in:
31
intromat/Intromat/ViewModels/CodeGenOutputViewModel.cs
Normal file
31
intromat/Intromat/ViewModels/CodeGenOutputViewModel.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using NodeNetwork.Toolkit.ValueNode;
|
||||
using NodeNetwork.ViewModels;
|
||||
using NodeNetwork.Views;
|
||||
using ReactiveUI;
|
||||
using Splat;
|
||||
|
||||
namespace Intromat.ViewModels
|
||||
{
|
||||
public class CodeGenOutputViewModel<T> : ValueNodeOutputViewModel<T>
|
||||
{
|
||||
private bool _isMouseOver;
|
||||
|
||||
static CodeGenOutputViewModel()
|
||||
{
|
||||
Locator.CurrentMutable.Register(() => new NodeOutputView(), typeof(IViewFor<CodeGenOutputViewModel<T>>));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user