Skip to content

M_MSCLoader_Settings_AddTextBox_1

piotrulos edited this page Apr 7, 2023 · 4 revisions

Settings.AddTextBox Method (Mod, String, String, String, String, InputField.ContentType)

Add TextBox where user can type any text

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286

Syntax

C#

public static <a href="T_MSCLoader_SettingsTextBox">SettingsTextBox</a> AddTextBox(
	<a href="T_MSCLoader_Mod">Mod</a> mod,
	string settingID,
	string name,
	string value,
	string placeholderText,
	ContentType contentType
)

View Source

Parameters

 

mod
Type: MSCLoader.Mod
Your mod instance
settingID
Type: System.String
Your unique settings ID
name
Type: System.String
Name of text box
value
Type: System.String
Default TextBox value
placeholderText
Type: System.String
Placeholder text (like "Enter text...")
contentType
Type: ContentType
InputField content type

Return Value

Type: SettingsTextBox
[Missing documentation for "M:MSCLoader.Settings.AddTextBox(MSCLoader.Mod,System.String,System.String,System.String,System.String,UnityEngine.UI.InputField.ContentType)"]

See Also

Reference

Settings Class
AddTextBox Overload
MSCLoader Namespace

Clone this wiki locally