generative modeling for Rhino
I have a few conditions I want to have warnings or errors for in my code. I see the GH_RuntimeMessageLevel enum, but how is it that one can utilize it to display the appropriate warning or error color for the component? I will probably bump into it sooner or later, but I wanted to ask here as a bit of searching didn't turn up anything obvious.
AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Warning message here");
Warning turns component orange, Error turns it red.
Exactly what I needed. Thanks a lot!