From a0aa92ee3c8fce319469ff1292938b6a83fd4463 Mon Sep 17 00:00:00 2001 From: m4xxed Date: Fri, 21 Oct 2022 02:46:37 +0200 Subject: [PATCH] #479 Added ActionStateType for Marking --- Assets/SEE/Controls/Actions/ActionStateType.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Assets/SEE/Controls/Actions/ActionStateType.cs b/Assets/SEE/Controls/Actions/ActionStateType.cs index 10cacd6db2..42c7b4dc67 100644 --- a/Assets/SEE/Controls/Actions/ActionStateType.cs +++ b/Assets/SEE/Controls/Actions/ActionStateType.cs @@ -33,8 +33,8 @@ public class ActionStateType RotateAction.CreateReversibleAction); public static ActionStateType Hide { get; } = new ActionStateType(2, "Hide", "Hides nodes or edges", - Color.yellow.Darker(), "Materials/ModernUIPack/Eye", HideAction.CreateReversibleAction); - + Color.yellow.Darker(), "Materials/ModernUIPack/Eye", + HideAction.CreateReversibleAction); public static ActionStateType NewEdge { get; } = new ActionStateType(3, "New Edge", "Draw a new edge between two nodes", Color.green.Darker(), "Materials/ModernUIPack/Minus", @@ -57,11 +57,16 @@ public class ActionStateType DeleteAction.CreateReversibleAction); public static ActionStateType ShowCode { get; } = new ActionStateType(8, "Show Code", "Display the source code of a node.", - Color.black, "Materials/ModernUIPack/Document", ShowCodeAction.CreateReversibleAction); + Color.black, "Materials/ModernUIPack/Document", + ShowCodeAction.CreateReversibleAction); public static ActionStateType Draw { get; } = new ActionStateType(9, "Draw", "Draw a line", - Color.magenta.Darker(), "Materials/ModernUIPack/Pencil", - DrawAction.CreateReversibleAction); + Color.magenta.Darker(), "Materials/ModernUIPack/Pencil", + DrawAction.CreateReversibleAction); + public static ActionStateType Mark { get; } = + new ActionStateType(10, "Mark", "Mark a node", + Color.green.Darker(), "Materials/ModernUIPack/Pencil", + MarkAction.CreateReversibleAction); #endregion ///