Class KeybindSetting
- Namespace
- Exiled.API.Features.Core.UserSettings
- Assembly
- Exiled.API.dll
Represents a keybind setting.
public class KeybindSetting : SettingBase, IWrapper<ServerSpecificSettingBase>, IWrapper<SSKeybindSetting>
- Inheritance
-
KeybindSetting
- Inherited Members
- Extension Methods
Constructors
KeybindSetting(int, string, KeyCode, bool, string, HeaderSetting, Action<Player, SettingBase>)
Initializes a new instance of the KeybindSetting class.
public KeybindSetting(int id, string label, KeyCode suggested, bool preventInteractionOnGUI = false, string hintDescription = "", HeaderSetting header = null, Action<Player, SettingBase> onChanged = null)
Parameters
id
intlabel
stringsuggested
KeyCodepreventInteractionOnGUI
boolhintDescription
stringheader
HeaderSettingonChanged
Action<Player, SettingBase>
Properties
Base
Gets the base UserSettings.ServerSpecific.SSKeybindSetting that this class is wrapping.
public SSKeybindSetting Base { get; }
Property Value
- SSKeybindSetting
IsPressed
Gets a value indicating whether the key is pressed.
public bool IsPressed { get; }
Property Value
KeyCode
Gets or sets the assigned key.
public KeyCode KeyCode { get; set; }
Property Value
- KeyCode
PreventInteractionOnGUI
Gets or sets a value indicating whether the interaction is prevented while player is in RA, Settings etc.
public bool PreventInteractionOnGUI { get; set; }
Property Value
Methods
ToString()
Returns a representation of this KeybindSetting.
public override string ToString()
Returns
- string
A string in human-readable format.