Class TextSetting
- Namespace
- ContentSettings.API.Settings
- Assembly
- RedstoneWizard08.ContentLibrary.dll
A setting that contains a text value.
public abstract class TextSetting : Setting, IDisposable
- Inheritance
-
TextSetting
- Implements
- Derived
- Inherited Members
Properties
Value
Gets the value of the setting.
public string Value { get; protected set; }
Property Value
Methods
Expose(string)
Expose the setting value, you should apply any formatting here.
public virtual string Expose(string value)
Parameters
value
stringThe value to expose.
Returns
- string
The exposed value.
GetDebugUI(ISettingHandler)
Gets the debug UI for the setting.
public override SettingUI GetDebugUI(ISettingHandler settingHandler)
Parameters
settingHandler
ISettingHandlerThe setting handler to get the debug UI for.
Returns
- SettingUI
The debug UI for the setting.
GetDefaultValue()
Get the default value for the setting.
public abstract string GetDefaultValue()
Returns
- string
The default value for the setting.
GetSettingUICell()
Gets the setting UI for the setting.
public override GameObject GetSettingUICell()
Returns
- GameObject
The setting UI for the setting.
Load(ISettingsSaveLoad)
Loads the setting using the provided loader.
public override void Load(ISettingsSaveLoad loader)
Parameters
loader
ISettingsSaveLoadThe loader to load the setting with.
Save(ISettingsSaveLoad)
Save the setting using the provided loader.
public override void Save(ISettingsSaveLoad saver)
Parameters
saver
ISettingsSaveLoadThe loader to save the setting with.
SetValue(string, ISettingHandler)
Sets the value of the setting and saves it.
public void SetValue(string newValue, ISettingHandler settingHandler)
Parameters
newValue
stringThe new value of the setting.
settingHandler
ISettingHandlerThe setting handler to save the setting with.