Skip to content

M_MSCLoader_Settings_AddButton_1

piotrulos edited this page Apr 7, 2023 · 4 revisions

Settings.AddButton Method (Mod, String, Action, Color, Color)

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,
	Color btnColor,
	Color buttonTextColor
)

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
btnColor
Type: Color
Button background color
buttonTextColor
Type: Color
Button text color

See Also

Reference

Settings Class
AddButton Overload
MSCLoader Namespace

Clone this wiki locally