 | MessageWindowShow Method (MessageWindow, String, String, MessageType, MessageButtons, String, Action, Action, Action, Action) |
Show a message window.
Namespace:
Kit.UI.Message
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntaxpublic static void Show(
MessageWindow prefab,
string title,
string message,
MessageType type = MessageType.Info,
MessageButtons buttons = MessageButtons.OK,
string subtitle = "",
Action okayAction = null,
Action cancelAction = null,
Action yesAction = null,
Action noAction = null
)
Request Example
View SourceParameters
- prefab
- Type: Kit.UI.MessageMessageWindow
The prefab to use for displaying the message. - title
- Type: SystemString
Title of the window. - message
- Type: SystemString
The message to show. - type (Optional)
- Type: Kit.UI.MessageMessageType
Type of message to show – determines the icon. - buttons (Optional)
- Type: Kit.UI.MessageMessageButtons
Buttons to show with the message. - subtitle (Optional)
- Type: SystemString
Sub-title to go along with the title. - okayAction (Optional)
- Type: SystemAction
Callback for the Okay button. - cancelAction (Optional)
- Type: SystemAction
Callback for the Cancel button. - yesAction (Optional)
- Type: SystemAction
>Callback for the Yes button. - noAction (Optional)
- Type: SystemAction
>Callback for the No button.
RemarksCan be awaited-upon.
See Also