Click or drag to resize
MessageBoxShowMsgBox Method (String, String, MessageBoxMsgBoxOption, Entity, NullableVector2, Action, Entity)
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 MessageBoxMessageBoxHandle ShowMsgBox(
	string header,
	string text,
	MessageBoxMsgBoxOption[] options,
	Entity[] extraEntities = null,
	Nullable<Vector2> size = null,
	Action onDone = null,
	Entity parent = null
)

Parameters

header
Type: SystemString
Messagebox header.
text
Type: SystemString
Main text.
options
Type: GeonBit.UI.UtilsMessageBoxMsgBoxOption
Msgbox response options.
extraEntities (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.
parent (Optional)
Type: GeonBit.UI.EntitiesEntity
Parent to add message box to (if not defined will use root)

Return Value

Type: MessageBoxMessageBoxHandle
Message box handle.
See Also