InfoBoxAttributeclass

Draw a box with information above this property

objectAttributeInfoBoxAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public sealed class Sandbox.InfoBoxAttribute : System.Attribute

Constructors1

Showing 1 constructors

public InfoBoxAttribute(string message, string icon = info, Sandbox.EditorTint tint = 4)PUBLICCONSTRUCTOR

ParameterTypeDescription
messagestring
icon = infostring
tint = 4EditorTint

Properties3

Showing 3 properties

public string Sandbox.InfoBoxAttribute.Icon { get; set; }PUBLICGETSET

The icon to show (material icons)

Returns:string

public string Sandbox.InfoBoxAttribute.Message { get; set; }PUBLICGETSET

Message to display

Returns:string

public Sandbox.EditorTint Sandbox.InfoBoxAttribute.Tint { get; set; }PUBLICGETSET

The color of this info box. Helps group things, helps things to stand out. Defaults to blue.

Returns:EditorTint

On this page