Files
sbox-public/game/editor/ShaderGraph/Code/CommentNode.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

38 lines
707 B
C#

namespace Editor.ShaderGraph;
[Icon( "notes" ), Hide]
public class CommentNode : BaseNode, ICommentNode
{
[Hide, Browsable( false )]
public Vector2 Size { get; set; }
public CommentColor Color { get; set; } = CommentColor.Green;
public string Title { get; set; } = "Untitled";
[TextArea]
public string Description { get; set; } = "";
[Hide, Browsable( false )]
public int Layer { get; set; } = 5;
[Hide, JsonIgnore]
public override DisplayInfo DisplayInfo
{
get
{
var info = DisplayInfo.For( this );
info.Name = Title;
info.Description = Description;
return info;
}
}
public override NodeUI CreateUI( GraphView view )
{
return new CommentUI( view, this );
}
}