Implemented colors based on the unreal engines blueprints
Some checks failed
Build / build (push) Has been cancelled
Some checks failed
Build / build (push) Has been cancelled
This commit is contained in:
@@ -24,9 +24,9 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
SystemOperationType = info.sysOp
|
||||
};
|
||||
if (info.sysOp == SystemOperations.BEGIN)
|
||||
op.Output.Add(new ConnectorViewModel { Title = "", IsInput = false, Shape = ConnectorShape.Triangle, ConnectorColor = Color.DarkRed });
|
||||
op.Output.Add(new ConnectorViewModel { Title = "", IsInput = false, Shape = ConnectorShape.Triangle, ConnectorColor = NodeColors.Event });
|
||||
else
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, ConnectorColor = Color.DarkRed });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, ConnectorColor = NodeColors.Event });
|
||||
return op;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
Title = info.Title ?? "COPY",
|
||||
SystemOperationType = SystemOperations.COPY
|
||||
};
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Circle, ConnectorColor = Color.White, IsCopyConnector = true });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Circle, ConnectorColor = NodeColors.Universal, IsCopyConnector = true });
|
||||
return op;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
Title = info.Title ?? "Split",
|
||||
SystemOperationType = SystemOperations.SPLIT
|
||||
};
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = Color.MediumPurple });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = NodeColors.Model });
|
||||
return op;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
};
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle });
|
||||
op.Output.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Triangle, IsInput = false });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "Value", ConnectorColor = Color.LimeGreen });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "Value", ConnectorColor = NodeColors.Object });
|
||||
return op;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
{
|
||||
Title = "List",
|
||||
Shape = ConnectorShape.Circle,
|
||||
ConnectorColor = Color.White,
|
||||
ConnectorColor = NodeColors.Universal,
|
||||
IsCopyConnector = true,
|
||||
IsTakeListConnector = true
|
||||
});
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
Title = info.ClassName ?? "",
|
||||
IsInput = false,
|
||||
Shape = ConnectorShape.Square,
|
||||
ConnectorColor = Color.MediumPurple,
|
||||
ConnectorColor = NodeColors.Model,
|
||||
DataType = info.ClassName ?? "object"
|
||||
});
|
||||
}
|
||||
@@ -145,7 +145,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
var properties = OperationFactory.GetPropertiesFromClassPublic(fileContent);
|
||||
|
||||
// Square input for the class object
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = Color.MediumPurple });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = NodeColors.Model });
|
||||
|
||||
// Circle output per property, colored by type
|
||||
foreach (var property in properties)
|
||||
@@ -164,13 +164,13 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
else
|
||||
{
|
||||
// Fallback: generic square I/O
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = Color.MediumPurple });
|
||||
op.Input.Add(new ConnectorViewModel { Title = "", Shape = ConnectorShape.Square, ConnectorColor = NodeColors.Model });
|
||||
op.Output.Add(new ConnectorViewModel
|
||||
{
|
||||
Title = info.ClassName ?? "",
|
||||
IsInput = false,
|
||||
Shape = ConnectorShape.Square,
|
||||
ConnectorColor = Color.MediumPurple,
|
||||
ConnectorColor = NodeColors.Model,
|
||||
DataType = info.ClassName ?? "object"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
Title = rc,
|
||||
IsInput = false,
|
||||
Shape = ConnectorShape.Grid,
|
||||
ConnectorColor = Color.MediumSpringGreen,
|
||||
ConnectorColor = NodeColors.List,
|
||||
DataType = rc
|
||||
});
|
||||
}
|
||||
@@ -137,7 +137,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
Title = "Response",
|
||||
IsInput = false,
|
||||
Shape = ConnectorShape.Circle,
|
||||
ConnectorColor = Color.LimeGreen,
|
||||
ConnectorColor = NodeColors.Object,
|
||||
DataType = "object"
|
||||
});
|
||||
}
|
||||
@@ -154,7 +154,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
{
|
||||
Title = $"Body ({bc})",
|
||||
Shape = isList ? ConnectorShape.Grid : ConnectorShape.Square,
|
||||
ConnectorColor = isList ? Color.MediumSpringGreen : Color.MediumPurple,
|
||||
ConnectorColor = isList ? NodeColors.List : NodeColors.Model,
|
||||
DataType = bc
|
||||
});
|
||||
}
|
||||
@@ -164,7 +164,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
{
|
||||
Title = "Body",
|
||||
Shape = ConnectorShape.Circle,
|
||||
ConnectorColor = Color.LimeGreen,
|
||||
ConnectorColor = NodeColors.Object,
|
||||
DataType = "object"
|
||||
});
|
||||
}
|
||||
@@ -173,7 +173,7 @@ namespace Nodify.Calculator.NodeHandlers
|
||||
// Other data inputs (query/path params)
|
||||
foreach (var label in info.Input)
|
||||
{
|
||||
op.Input.Add(new ConnectorViewModel { Title = label, ConnectorColor = Color.LimeGreen });
|
||||
op.Input.Add(new ConnectorViewModel { Title = label, ConnectorColor = NodeColors.ApiParam });
|
||||
}
|
||||
return op;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user