mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
24 lines
595 B
C#
24 lines
595 B
C#
using Artemis.Core;
|
|
|
|
namespace Artemis.VisualScripting.Nodes.CustomViewModels
|
|
{
|
|
public class StaticIntegerValueNodeCustomViewModel : CustomNodeViewModel
|
|
{
|
|
private readonly StaticIntegerValueNode _node;
|
|
|
|
public StaticIntegerValueNodeCustomViewModel(StaticIntegerValueNode node) : base(node)
|
|
{
|
|
_node = node;
|
|
}
|
|
|
|
public int Input
|
|
{
|
|
get => (int)(long) _node.Storage;
|
|
set
|
|
{
|
|
_node.Storage = value;
|
|
OnPropertyChanged(nameof(Input));
|
|
}
|
|
}
|
|
}
|
|
} |