Class TextInputSetting
- Namespace
- Exiled.API.Features.Core.UserSettings
- Assembly
- Exiled.API.dll
Represents a text input setting.
public class TextInputSetting : SettingBase, IWrapper<ServerSpecificSettingBase>, IWrapper<SSTextArea>
- Inheritance
-
TextInputSetting
- Inherited Members
- Extension Methods
Constructors
TextInputSetting(int, string, FoldoutMode, TextAlignmentOptions, string, HeaderSetting, Action<Player, SettingBase>)
Initializes a new instance of the TextInputSetting class.
public TextInputSetting(int id, string label, SSTextArea.FoldoutMode foldoutMode = FoldoutMode.NotCollapsable, TextAlignmentOptions alignment = TextAlignmentOptions.TopLeft, string hintDescription = null, HeaderSetting header = null, Action<Player, SettingBase> onChanged = null)
Parameters
id
intlabel
stringfoldoutMode
SSTextArea.FoldoutModealignment
TextAlignmentOptionshintDescription
stringheader
HeaderSettingonChanged
Action<Player, SettingBase>
Properties
Alignment
Gets or sets the text alignment options.
public TextAlignmentOptions Alignment { get; set; }
Property Value
- TextAlignmentOptions
Base
Gets the base UserSettings.ServerSpecific.SSTextArea that this class is wrapping.
public SSTextArea Base { get; }
Property Value
- SSTextArea
FoldoutMode
Gets or sets the foldout mode.
public SSTextArea.FoldoutMode FoldoutMode { get; set; }
Property Value
- SSTextArea.FoldoutMode
Label
Gets or sets the text for the setting.
public string Label { get; set; }
Property Value
Methods
ToString()
Returns a representation of this TextInputSetting.
public override string ToString()
Returns
- string
A string in human-readable format.