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
- 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
- idint
- labelstring
- buttonTextstring
- holdTimefloat
- hintDescriptionstring
- headerHeaderSetting
- onChangedAction<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
LastPress
Gets the last press time.
public Stopwatch LastPress { get; }Property Value
Text
Gets or sets the button text.
public string Text { get; set; }Property Value
Methods
ToString()
Returns a representation of this ButtonSetting.
public override string ToString()Returns
- string
- A string in human-readable format. 
UpdateSetting(string, float, bool, Predicate<Player>)
Sends updated values to clients.
public void UpdateSetting(string text, float holdTime, bool overrideValue = true, Predicate<Player> filter = null)