MessageBox.ShowMsgBox Method (String, String, MessageBox.MsgBoxOption[], Entity[], Nullable(Vector2), Action)

GeonBit.UI

MessageBoxShowMsgBox Method (String, String, MessageBoxMsgBoxOption, Entity, NullableVector2, Action)
Show a message box with custom buttons and callbacks.

Namespace:  GeonBit.UI.Utils
Assembly:  GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Panel ShowMsgBox(
	string header,
	string text,
	MessageBoxMsgBoxOption[] options,
	Entity[] append = null,
	Nullable<Vector2> size = null,
	Action onDone = null
)

Parameters

header
Type: SystemString
Messagebox header.
text
Type: SystemString
Main text.
options
Type: GeonBit.UI.UtilsMessageBoxMsgBoxOption
Msgbox response options.
append (Optional)
Type: GeonBit.UI.EntitiesEntity
Optional array of entities to add to msg box under the text and above the buttons.
size (Optional)
Type: SystemNullableVector2
Alternative size to use.
onDone (Optional)
Type: SystemAction
Optional callback to call when this msgbox closes.

Return Value

Type: Panel
Message box panel.
See Also