Table of Contents

Class ButtonSetting

Namespace
Exiled.API.Features.Core.UserSettings
Assembly
Exiled.API.dll

Represents a button setting.

public class ButtonSetting : SettingBase, IWrapper<ServerSpecificSettingBase>, IWrapper<SSButton>
Inheritance
ButtonSetting
Implements
IWrapper<ServerSpecificSettingBase>
IWrapper<SSButton>
Inherited Members
Extension Methods

Constructors

ButtonSetting(int, string, string, float, string, HeaderSetting, Action<Player, SettingBase>)

Initializes a new instance of the ButtonSetting class.

public ButtonSetting(int id, string label, string buttonText, float holdTime = 0, string hintDescription = null, HeaderSetting header = null, Action<Player, SettingBase> onChanged = null)

Parameters

id int
label string
buttonText string
holdTime float
hintDescription string
header HeaderSetting
onChanged Action<Player, SettingBase>

Properties

Base

Gets the base UserSettings.ServerSpecific.SSButton that this class is wrapping.

public SSButton Base { get; }

Property Value

SSButton

HoldTime

Gets or sets the hold time in seconds.

public float HoldTime { get; set; }

Property Value

float

LastPress

Gets the last press time.

public Stopwatch LastPress { get; }

Property Value

Stopwatch

Text

Gets or sets the button text.

public string Text { 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.