M_MSCLoader_Settings_AddTextBox_1 - piotrulos/MSCModLoader GitHub Wiki

AddTextBox(String, String, String, String, InputField.ContentType, Boolean) Method

Add TextBox where user can type any text

Definition

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

C#

public static <a href="T_MSCLoader_SettingsTextBox">SettingsTextBox</a> AddTextBox(
	string settingID,
	string name,
	string value,
	string placeholderText,
	ContentType contentType,
	bool visibleByDefault = true
)

View Source

Parameters

  String
Your unique settings ID
  String
Name of text box
  String
Default TextBox value
  String
Placeholder text (like "Enter text...")
  ContentType
InputField content type
  Boolean  (Optional)
Visible by default (default=true)

Return Value

SettingsTextBox
SettingsTextBox

See Also

Reference

Settings Class
AddTextBox Overload
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️