Table of Contents

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

string

Methods

Expose(string)

Expose the setting value, you should apply any formatting here.

public virtual string Expose(string value)

Parameters

value string

The 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 ISettingHandler

The 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 ISettingsSaveLoad

The loader to load the setting with.

Save(ISettingsSaveLoad)

Save the setting using the provided loader.

public override void Save(ISettingsSaveLoad saver)

Parameters

saver ISettingsSaveLoad

The 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 string

The new value of the setting.

settingHandler ISettingHandler

The setting handler to save the setting with.