Skip to content

M_MSCLoader_Settings_AddButton

piotrulos edited this page Apr 7, 2023 · 4 revisions

Settings.AddButton Method (Mod, String, Action)

Add button that can execute function.

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

Syntax

C#

public static void AddButton(
	<a href="T_MSCLoader_Mod">Mod</a> mod,
	string name,
	Action onClick
)

View Source

Parameters

 

mod
Type: MSCLoader.Mod
your mod
name
Type: System.String
Text on the button
onClick
Type: System.Action
What to do when button is clicked

See Also

Reference

Settings Class
AddButton Overload
MSCLoader Namespace

Clone this wiki locally