M_MSCLoader_ModUI_CreateMessageBoxBtn_1 - piotrulos/MSCModLoader GitHub Wiki

CreateMessageBoxBtn(String, Action, Color32, Color32, Boolean) Method

Create Message Box Button for ShowCustomMessage(...);

Definition

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

C#

public static <a href="T_MSCLoader_MsgBoxBtn">MsgBoxBtn</a> CreateMessageBoxBtn(
	string ButtonText,
	Action ifClicked,
	Color32 BackgroundColor,
	Color32 TextColor,
	bool noClosing = false
)

View Source

Parameters

  String
Text on the Button
  Action
Action if button was clicked (leave null for just closing message box)
  Color32
Button background color
  Color32
Text color
  Boolean  (Optional)
Don't close MessageBox when action is triggered

Return Value

MsgBoxBtn
MsgBoxBtn

See Also

Reference

ModUI Class
CreateMessageBoxBtn Overload
MSCLoader Namespace

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