mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-20 04:10:00 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
38 lines
707 B
C#
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 );
|
|
}
|
|
}
|