mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Added first visual-scripting draft [WIP]
This commit is contained in:
1 parent
719d95bd33
commit
a45dd094a0
56 files changed
+5139
-21
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Artemis.VisualScripting.Editor.Controls.Wrapper;
|
||||
|
||||
namespace Artemis.VisualScripting.Events
|
||||
{
|
||||
public class PinConnectedEventArgs : EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public VisualScriptPin Pin { get; }
|
||||
public VisualScriptCable Cable { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public PinConnectedEventArgs(VisualScriptPin pin, VisualScriptCable cable)
|
||||
{
|
||||
this.Pin = pin;
|
||||
this.Cable = cable;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using Artemis.VisualScripting.Editor.Controls.Wrapper;
|
||||
|
||||
namespace Artemis.VisualScripting.Events
|
||||
{
|
||||
public class PinDisconnectedEventArgs : EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public VisualScriptPin Pin { get; }
|
||||
public VisualScriptCable Cable { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public PinDisconnectedEventArgs(VisualScriptPin pin, VisualScriptCable cable)
|
||||
{
|
||||
this.Pin = pin;
|
||||
this.Cable = cable;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.VisualScripting.Events
|
||||
{
|
||||
public class VisualScriptNodeDragMovingEventArgs : EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public double DX { get; }
|
||||
public double DY { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public VisualScriptNodeDragMovingEventArgs(double dx, double dy)
|
||||
{
|
||||
this.DX = dx;
|
||||
this.DY = dy;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Artemis.VisualScripting.Events
|
||||
{
|
||||
public class VisualScriptNodeIsSelectedChangedEventArgs : EventArgs
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
public bool IsSelected { get; }
|
||||
public bool AlterSelection { get; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public VisualScriptNodeIsSelectedChangedEventArgs(bool isSelected, bool alterSelection)
|
||||
{
|
||||
this.IsSelected = isSelected;
|
||||
this.AlterSelection = alterSelection;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user