Previous 199869 Revisions Next

r29599 Sunday 13th April, 2014 at 12:47:01 UTC by Nathan Woods
I really got tired of looking at the text 'UI Select' and 'UI Cancel' in a
blood red dialog, especially given how easy this was to fix
[src/emu/ui]ui.c

trunk/src/emu/ui/ui.c
r29598r29599
15581558
15591559UINT32 ui_manager::handler_confirm_quit(running_machine &machine, render_container *container, UINT32 state)
15601560{
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));
15641564
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
15651578   machine.ui().draw_text_box(container, quit_message, JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR);
15661579   machine.pause();
15671580

Previous 199869 Revisions Next


© 1997-2024 The MAME Team