Class TwoButtonsSetting
- Namespace
- Exiled.API.Features.Core.UserSettings
- Assembly
- Exiled.API.dll
Represents a two-button setting.
public class TwoButtonsSetting : SettingBase, IWrapper<ServerSpecificSettingBase>, IWrapper<SSTwoButtonsSetting>
- Inheritance
-
TwoButtonsSetting
- Inherited Members
- Extension Methods
Constructors
TwoButtonsSetting(int, string, string, string, bool, string, HeaderSetting, Action<Player, SettingBase>)
Initializes a new instance of the TwoButtonsSetting class.
public TwoButtonsSetting(int id, string label, string firstOption, string secondOption, bool defaultIsSecond = false, string hintDescription = "", HeaderSetting header = null, Action<Player, SettingBase> onChanged = null)
Parameters
id
intlabel
stringfirstOption
stringsecondOption
stringdefaultIsSecond
boolhintDescription
stringheader
HeaderSettingonChanged
Action<Player, SettingBase>
Properties
Base
Gets the base UserSettings.ServerSpecific.SSTwoButtonsSetting that this class is wrapping.
public SSTwoButtonsSetting Base { get; }
Property Value
- SSTwoButtonsSetting
FirstOption
Gets or sets a label for the first option.
public string FirstOption { get; set; }
Property Value
IsFirst
Gets or sets a value indicating whether the first option is chosen.
public bool IsFirst { get; set; }
Property Value
IsSecond
Gets or sets a value indicating whether the second option is chosen.
public bool IsSecond { get; set; }
Property Value
IsSecondDefault
Gets or sets a value indicating whether the second option is default.
public bool IsSecondDefault { get; set; }
Property Value
SecondOption
Gets or sets a label for the second option.
public string SecondOption { get; set; }
Property Value
Methods
ToString()
Returns a representation of this ButtonSetting.
public override string ToString()
Returns
- string
A string in human-readable format.