Files
sbox-public/game/addons/base/code/UI/Option.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

49 lines
793 B
C#

namespace Sandbox.UI
{
/// <summary>
/// An option for a <see cref="DropDown"/> or <see cref="ButtonGroup"/>.
/// </summary>
public class Option
{
/// <summary>
/// The user-friendly text to show.
/// </summary>
public string Title;
/// <summary>
/// Icon for this option.
/// </summary>
public string Icon;
public string Subtitle;
/// <summary>
/// Tooltip for this option.
/// </summary>
public string Tooltip;
/// <summary>
/// The internal value for this option.
/// </summary>
public object Value;
public Option()
{
}
public Option( string title, object value )
{
Title = title;
Value = value;
}
public Option( string title, string icon, object value )
{
Title = title;
Icon = icon;
Value = value;
}
}
}