|
private |
Shows message dialog.
| caption | |
| text | |
| id | custom user id |
| butts | DialogBoxType |
| def | DialogBoxButton |
| type | DialogMessageType |
| handler | usage : const int QUIT_DIALOG_ID = 76;
g_Game.GetUIManager().ShowDialog("Quit", "Do You really want to quit?", QUIT_DIALOG_ID, DBT_YESNO, DBB_YES, DMT_QUESTION, this);
...
// after user pass dialog, callback on menu/event handler is called
{
if (code == QUIT_DIALOG_ID && result == DBB_YES) // yes this is callback for dialog we show earlier and user press YES button
{
Quit();
}
}
Icon x Icon y Определения EnWidgets.c:190 |