31 lines
870 B
C#
31 lines
870 B
C#
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);
|
|
}
|
|
}
|
|
} |