Kerbal Space Program
1.12.4
|
Mission expansion confirm dialogue with OK and Cancel buttons as well as a Checkbox for don't show this dialog again More...
Public Member Functions | |
void | CloseDialog () |
void | OnCancel () |
void | OnConfirm () |
void | OnLeavingScene (GameScenes scn) |
Static Public Member Functions | |
static UIConfirmDialog | Spawn (string title, string message, Callback< bool > onOk, Callback< bool > onCancel, bool showCancelBtn=true) |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called. More... | |
static UIConfirmDialog | Spawn (string title, string message, Callback< bool > onOk, bool showCancelBtn=true) |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called. More... | |
static UIConfirmDialog | Spawn (string title, string message, Callback< bool > onOk, bool showDontShowAgain, string textDontShowAgain) |
This is a confirm button where we can choose th text for son't show again or avoid it entirely. More... | |
static UIConfirmDialog | Spawn (string title, string message, string textCancel, string textOK, string textDontShowAgain, Callback< bool > onOk, Callback< bool > onCancel, bool showCancelBtn=true) |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called. More... | |
Public Attributes | |
bool | modal = true |
If true dialog is modal. More... | |
Protected Attributes | |
Callback< bool > | onOk |
TMPro.TextMeshProUGUI | textCancel = null |
Confirmation Cancel button text More... | |
TMPro.TextMeshProUGUI | textConfirmation = null |
Confirmation ok button More... | |
TMPro.TextMeshProUGUI | textDescription = null |
confirmation body text More... | |
TMPro.TextMeshProUGUI | textHeader = null |
Title of the popup More... | |
Mission expansion confirm dialogue with OK and Cancel buttons as well as a Checkbox for don't show this dialog again
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called.
title | Title text in the dialog |
message | Message text in the dialog |
onOk | Callback to invoke when OK is pressed |
onCancel | Callback to invoked when Cancel is pressed |
showCancelBtn | Tru to show a cancle button, otherwise just show an OK |
|
inlinestatic |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called.
title | Title text in the dialog |
message | Message text in the dialog |
onOk | Callback to invoke when OK is pressed |
showCancelBtn | Tru to show a cancle button, otherwise just show an OK |
|
inlinestatic |
This is a confirm button where we can choose th text for son't show again or avoid it entirely.
title | Title text in the dialog |
message | Message text in the dialog |
onOk | Callback to invoke when OK is pressed |
showDontShowAgain | True if the don't show again text will be displayed |
textDontShowAgain | Pass an empty string for none, ensure showDontShowAgain is true, if not this will not display |
|
inlinestatic |
Spawn and display a simple OK/Cancel dialog If user presses ESC key Cancel Callback will be called first. If no Cancel Callback is set then the OK callback WILL be called.
title | Title text in the dialog |
message | Message text in the dialog |
onOk | Callback to invoke when OK is pressed |
onCancel | Callback to invoked when Cancel is pressed it will be called when player hits ESC instead of the ok callback if present |
showCancelBtn | Tru to show a cancle button, otherwise just show an OK |
textCancel | Text to display in the cancel button |
textOK | Text to Display in the OK button |
textDontShowAgain | Text to show in the Dont show me again toggle |
bool UIConfirmDialog.modal = true |
If true dialog is modal.
|
protected |
|
protected |
Confirmation Cancel button text
|
protected |
Confirmation ok button
|
protected |
confirmation body text
|
protected |
Title of the popup