Table of Contents

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
Implements
IWrapper<ServerSpecificSettingBase>
IWrapper<SSTwoButtonsSetting>
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 int
label string
firstOption string
secondOption string
defaultIsSecond bool
hintDescription string
header HeaderSetting
onChanged 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

string

IsFirst

Gets or sets a value indicating whether the first option is chosen.

public bool IsFirst { get; set; }

Property Value

bool

IsSecond

Gets or sets a value indicating whether the second option is chosen.

public bool IsSecond { get; set; }

Property Value

bool

IsSecondDefault

Gets or sets a value indicating whether the second option is default.

public bool IsSecondDefault { get; set; }

Property Value

bool

SecondOption

Gets or sets a label for the second option.

public string SecondOption { get; set; }

Property Value

string

Methods

ToString()

Returns a representation of this ButtonSetting.

public override string ToString()

Returns

string

A string in human-readable format.