trunk/src/emu/ui/ui.c
| r29598 | r29599 | |
| 1558 | 1558 | |
| 1559 | 1559 | UINT32 ui_manager::handler_confirm_quit(running_machine &machine, render_container *container, UINT32 state) |
| 1560 | 1560 | { |
| 1561 | | astring quit_message("Are you sure you want to quit?\n\n"); |
| 1562 | | quit_message.cat("Press ''UI Select'' (default: Enter) to quit,\n"); |
| 1563 | | quit_message.cat("Press ''UI Cancel'' (default: Esc) to return to emulation."); |
| 1561 | // get the text for 'UI Select' |
| 1562 | astring ui_select_text; |
| 1563 | machine.input().seq_name(ui_select_text, machine.ioport().type_seq(IPT_UI_SELECT, 0, SEQ_TYPE_STANDARD)); |
| 1564 | 1564 | |
| 1565 | // get the text for 'UI Cancel' |
| 1566 | astring ui_cancel_text; |
| 1567 | machine.input().seq_name(ui_cancel_text, machine.ioport().type_seq(IPT_UI_CANCEL, 0, SEQ_TYPE_STANDARD)); |
| 1568 | |
| 1569 | // assemble the quit message |
| 1570 | astring quit_message; |
| 1571 | quit_message.printf( |
| 1572 | "Are you sure you want to quit?\n\n" |
| 1573 | "Press ''%s'' to quit,\n" |
| 1574 | "Press ''%s'' to return to emulation.", |
| 1575 | ui_select_text.cstr(), |
| 1576 | ui_cancel_text.cstr()); |
| 1577 | |
| 1565 | 1578 | machine.ui().draw_text_box(container, quit_message, JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR); |
| 1566 | 1579 | machine.pause(); |
| 1567 | 1580 | |