mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using Artemis.Core;
|
|
|
|
namespace Artemis.VisualScripting.Editor.Controls
|
|
{
|
|
public class VisualScriptEditor : Control
|
|
{
|
|
#region Dependency Properties
|
|
|
|
public static readonly DependencyProperty ScriptProperty = DependencyProperty.Register(
|
|
"Script", typeof(INodeScript), typeof(VisualScriptEditor), new PropertyMetadata(default(INodeScript)));
|
|
|
|
public INodeScript Script
|
|
{
|
|
get => (INodeScript)GetValue(ScriptProperty);
|
|
set => SetValue(ScriptProperty, value);
|
|
}
|
|
|
|
public static readonly DependencyProperty AvailableNodesProperty = DependencyProperty.Register(
|
|
"AvailableNodes", typeof(IEnumerable<NodeData>), typeof(VisualScriptEditor), new PropertyMetadata(default(IEnumerable<NodeData>)));
|
|
|
|
public IEnumerable<NodeData> AvailableNodes
|
|
{
|
|
get => (IEnumerable<NodeData>)GetValue(AvailableNodesProperty);
|
|
set => SetValue(AvailableNodesProperty, value);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|