mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Nodes - Added XML docs for remaining types
Nodes - Fully implemented nullable reference types
This commit is contained in:
1 parent
c1dab91c16
commit
c21acf87a7
30 files changed
+644
-265
No files matched your search
@@ -110,7 +110,7 @@ namespace Artemis.VisualScripting.Nodes
|
||||
CreateOutputPin(dataBindingRegistration.ValueType, dataBindingRegistration.DisplayName);
|
||||
}
|
||||
|
||||
private void ProfileOnChildRemoved(object? sender, EventArgs e)
|
||||
private void ProfileOnChildRemoved(object sender, EventArgs e)
|
||||
{
|
||||
if (Script.Context is not Profile profile)
|
||||
return;
|
||||
|
||||
@@ -8,7 +8,7 @@ using NoStringEvaluating.Models.Values;
|
||||
|
||||
namespace Artemis.VisualScripting.Nodes.Maths
|
||||
{
|
||||
[Node("Math Expression", "Outputs the result of a math expression.", "Math", OutputType = typeof(int))]
|
||||
[Node("Math Expression", "Outputs the result of a math expression.", "Math", InputType = typeof(float), OutputType = typeof(float))]
|
||||
public class MathExpressionNode : Node<string, MathExpressionNodeCustomViewModel>
|
||||
{
|
||||
private readonly INoStringEvaluator _evaluator;
|
||||
@@ -42,6 +42,7 @@ namespace Artemis.VisualScripting.Nodes.Maths
|
||||
|
||||
public override void Evaluate()
|
||||
{
|
||||
var test = _evaluator.ToString();
|
||||
if (Storage != null)
|
||||
Output.Value = (float) _evaluator.CalcNumber(Storage, _variables);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user