trunk/src/emu/ui/custui.cpp
| r253617 | r253618 | |
| 29 | 29 | const char *lang = machine.options().language(); |
| 30 | 30 | const osd_directory_entry *dirent; |
| 31 | 31 | int cnt = 0; |
| 32 | | for (int x = 0; (dirent = path.next()) != nullptr; ++x) |
| 32 | while ((dirent = path.next()) != nullptr) |
| 33 | 33 | if (dirent->type == ENTTYPE_DIR && strcmp(dirent->name, ".") != 0 && strcmp(dirent->name, "..") != 0) |
| 34 | 34 | { |
| 35 | 35 | auto name = std::string(dirent->name); |
| r253617 | r253618 | |
| 130 | 130 | void ui_menu_custom_ui::populate() |
| 131 | 131 | { |
| 132 | 132 | UINT32 arrow_flags; |
| 133 | | item_append("Fonts", nullptr, 0, (void *)(FPTR)FONT_MENU); |
| 134 | | item_append("Colors", nullptr, 0, (void *)(FPTR)COLORS_MENU); |
| 133 | item_append(_("Fonts"), nullptr, 0, (void *)(FPTR)FONT_MENU); |
| 134 | item_append(_("Colors"), nullptr, 0, (void *)(FPTR)COLORS_MENU); |
| 135 | 135 | |
| 136 | 136 | if (!m_lang.empty()) |
| 137 | 137 | { |
| 138 | 138 | arrow_flags = get_arrow_flags(0, m_lang.size() - 1, m_currlang); |
| 139 | | item_append("Language", m_lang[m_currlang].c_str(), arrow_flags, (void *)(FPTR)LANGUAGE_MENU); |
| 139 | item_append(_("Language"), m_lang[m_currlang].c_str(), arrow_flags, (void *)(FPTR)LANGUAGE_MENU); |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | arrow_flags = get_arrow_flags(0, (int)HIDE_BOTH, ui_globals::panels_status); |
| 143 | | item_append("Show side panels", hide_status[ui_globals::panels_status], arrow_flags, (void *)(FPTR)HIDE_MENU); |
| 143 | item_append(_("Show side panels"), hide_status[ui_globals::panels_status], arrow_flags, (void *)(FPTR)HIDE_MENU); |
| 144 | 144 | |
| 145 | 145 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 146 | 146 | customtop = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; |
| r253617 | r253618 | |
| 155 | 155 | float width; |
| 156 | 156 | ui_manager &mui = machine().ui(); |
| 157 | 157 | |
| 158 | | mui.draw_text_full(container, "Custom UI Settings", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 158 | mui.draw_text_full(container, _("Custom UI Settings"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 159 | 159 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 160 | 160 | width += 2 * UI_BOX_LR_BORDER; |
| 161 | 161 | float maxwidth = MAX(origx2 - origx1, width); |
| r253617 | r253618 | |
| 175 | 175 | y1 += UI_BOX_TB_BORDER; |
| 176 | 176 | |
| 177 | 177 | // draw the text within it |
| 178 | | mui.draw_text_full(container, "Custom UI Settings", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 178 | mui.draw_text_full(container, _("Custom UI Settings"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 179 | 179 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 180 | 180 | } |
| 181 | 181 | |
| r253617 | r253618 | |
| 362 | 362 | // add fonts option |
| 363 | 363 | arrow_flags = get_arrow_flags(0, m_fonts.size() - 1, m_actual); |
| 364 | 364 | std::string name(m_fonts[m_actual]); |
| 365 | | item_append("UI Font", name.c_str(), arrow_flags, (void *)(FPTR)MUI_FNT); |
| 365 | item_append(_("UI Font"), name.c_str(), arrow_flags, (void *)(FPTR)MUI_FNT); |
| 366 | 366 | |
| 367 | 367 | if (name != "default") |
| 368 | 368 | { |
| 369 | | item_append("Bold", m_bold ? "On" : "Off", m_bold ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)MUI_BOLD); |
| 370 | | item_append("Italic", m_italic ? "On" : "Off", m_italic ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)MUI_ITALIC); |
| 369 | item_append(_("Bold"), m_bold ? "On" : "Off", m_bold ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)MUI_BOLD); |
| 370 | item_append(_("Italic"), m_italic ? "On" : "Off", m_italic ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)MUI_ITALIC); |
| 371 | 371 | } |
| 372 | 372 | #endif |
| 373 | 373 | |
| 374 | 374 | arrow_flags = get_arrow_flags(m_font_min, m_font_max, m_font_size); |
| 375 | 375 | strprintf(tmptxt, "%2d", m_font_size); |
| 376 | | item_append("Lines", tmptxt.c_str(), arrow_flags, (void *)(FPTR)FONT_SIZE); |
| 376 | item_append(_("Lines"), tmptxt.c_str(), arrow_flags, (void *)(FPTR)FONT_SIZE); |
| 377 | 377 | |
| 378 | 378 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 379 | 379 | |
| r253617 | r253618 | |
| 381 | 381 | tmptxt.clear(); |
| 382 | 382 | strprintf(tmptxt, "%3.2f", m_info_size); |
| 383 | 383 | arrow_flags = get_arrow_flags(m_info_min, m_info_max, m_info_size); |
| 384 | | item_append("Infos text size", tmptxt.c_str(), arrow_flags, (void *)(FPTR)INFOS_SIZE); |
| 384 | item_append(_("Infos text size"), tmptxt.c_str(), arrow_flags, (void *)(FPTR)INFOS_SIZE); |
| 385 | 385 | |
| 386 | 386 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 387 | 387 | |
| r253617 | r253618 | |
| 398 | 398 | ui_manager &mui = machine().ui(); |
| 399 | 399 | |
| 400 | 400 | // top text |
| 401 | | std::string topbuf("UI Fonts Settings"); |
| 401 | std::string topbuf(_("UI Fonts Settings")); |
| 402 | 402 | |
| 403 | 403 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 404 | 404 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| r253617 | r253618 | |
| 425 | 425 | |
| 426 | 426 | if ((FPTR)selectedref == INFOS_SIZE) |
| 427 | 427 | { |
| 428 | | topbuf = "Sample text - Lorem ipsum dolor sit amet, consectetur adipiscing elit."; |
| 428 | topbuf = _("Sample text - Lorem ipsum dolor sit amet, consectetur adipiscing elit."); |
| 429 | 429 | |
| 430 | 430 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_LEFT, WRAP_NEVER, |
| 431 | 431 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr, m_info_size); |
| r253617 | r253618 | |
| 523 | 523 | |
| 524 | 524 | void ui_menu_colors_ui::populate() |
| 525 | 525 | { |
| 526 | | item_append("Normal text", nullptr, 0, (void *)(FPTR)MUI_TEXT_COLOR); |
| 527 | | item_append("Selected color", nullptr, 0, (void *)(FPTR)MUI_SELECTED_COLOR); |
| 528 | | item_append("Normal text background", nullptr, 0, (void *)(FPTR)MUI_TEXT_BG_COLOR); |
| 529 | | item_append("Selected background color", nullptr, 0, (void *)(FPTR)MUI_SELECTED_BG_COLOR); |
| 530 | | item_append("Subitem color", nullptr, 0, (void *)(FPTR)MUI_SUBITEM_COLOR); |
| 531 | | item_append("Clone", nullptr, 0, (void *)(FPTR)MUI_CLONE_COLOR); |
| 532 | | item_append("Border", nullptr, 0, (void *)(FPTR)MUI_BORDER_COLOR); |
| 533 | | item_append("Background", nullptr, 0, (void *)(FPTR)MUI_BACKGROUND_COLOR); |
| 534 | | item_append("Dipswitch", nullptr, 0, (void *)(FPTR)MUI_DIPSW_COLOR); |
| 535 | | item_append("Unavailable color", nullptr, 0, (void *)(FPTR)MUI_UNAVAILABLE_COLOR); |
| 536 | | item_append("Slider color", nullptr, 0, (void *)(FPTR)MUI_SLIDER_COLOR); |
| 537 | | item_append("Gfx viewer background", nullptr, 0, (void *)(FPTR)MUI_GFXVIEWER_BG_COLOR); |
| 538 | | item_append("Mouse over color", nullptr, 0, (void *)(FPTR)MUI_MOUSEOVER_COLOR); |
| 539 | | item_append("Mouse over background color", nullptr, 0, (void *)(FPTR)MUI_MOUSEOVER_BG_COLOR); |
| 540 | | item_append("Mouse down color", nullptr, 0, (void *)(FPTR)MUI_MOUSEDOWN_COLOR); |
| 541 | | item_append("Mouse down background color", nullptr, 0, (void *)(FPTR)MUI_MOUSEDOWN_BG_COLOR); |
| 526 | item_append(_("Normal text"), nullptr, 0, (void *)(FPTR)MUI_TEXT_COLOR); |
| 527 | item_append(_("Selected color"), nullptr, 0, (void *)(FPTR)MUI_SELECTED_COLOR); |
| 528 | item_append(_("Normal text background"), nullptr, 0, (void *)(FPTR)MUI_TEXT_BG_COLOR); |
| 529 | item_append(_("Selected background color"), nullptr, 0, (void *)(FPTR)MUI_SELECTED_BG_COLOR); |
| 530 | item_append(_("Subitem color"), nullptr, 0, (void *)(FPTR)MUI_SUBITEM_COLOR); |
| 531 | item_append(_("Clone"), nullptr, 0, (void *)(FPTR)MUI_CLONE_COLOR); |
| 532 | item_append(_("Border"), nullptr, 0, (void *)(FPTR)MUI_BORDER_COLOR); |
| 533 | item_append(_("Background"), nullptr, 0, (void *)(FPTR)MUI_BACKGROUND_COLOR); |
| 534 | item_append(_("Dipswitch"), nullptr, 0, (void *)(FPTR)MUI_DIPSW_COLOR); |
| 535 | item_append(_("Unavailable color"), nullptr, 0, (void *)(FPTR)MUI_UNAVAILABLE_COLOR); |
| 536 | item_append(_("Slider color"), nullptr, 0, (void *)(FPTR)MUI_SLIDER_COLOR); |
| 537 | item_append(_("Gfx viewer background"), nullptr, 0, (void *)(FPTR)MUI_GFXVIEWER_BG_COLOR); |
| 538 | item_append(_("Mouse over color"), nullptr, 0, (void *)(FPTR)MUI_MOUSEOVER_COLOR); |
| 539 | item_append(_("Mouse over background color"), nullptr, 0, (void *)(FPTR)MUI_MOUSEOVER_BG_COLOR); |
| 540 | item_append(_("Mouse down color"), nullptr, 0, (void *)(FPTR)MUI_MOUSEDOWN_COLOR); |
| 541 | item_append(_("Mouse down background color"), nullptr, 0, (void *)(FPTR)MUI_MOUSEDOWN_BG_COLOR); |
| 542 | 542 | |
| 543 | 543 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 544 | | item_append("Restore originals colors", nullptr, 0, (void *)(FPTR)MUI_RESTORE); |
| 544 | item_append(_("Restore originals colors"), nullptr, 0, (void *)(FPTR)MUI_RESTORE); |
| 545 | 545 | |
| 546 | 546 | custombottom = customtop = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; |
| 547 | 547 | } |
| r253617 | r253618 | |
| 557 | 557 | float line_height = mui.get_line_height(); |
| 558 | 558 | |
| 559 | 559 | // top text |
| 560 | | std::string topbuf("UI Colors Settings"); |
| 560 | std::string topbuf(_("UI Colors Settings")); |
| 561 | 561 | |
| 562 | 562 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, |
| 563 | 563 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| r253617 | r253618 | |
| 585 | 585 | // bottom text |
| 586 | 586 | // get the text for 'UI Select' |
| 587 | 587 | std::string ui_select_text = machine().input().seq_name(machine().ioport().type_seq(IPT_UI_SELECT, 0, SEQ_TYPE_STANDARD)); |
| 588 | | topbuf.assign("Double click or press ").append(ui_select_text.c_str()).append(" to change the color value"); |
| 588 | topbuf.assign(_("Double click or press ")).append(ui_select_text.c_str()).append(_(" to change the color value")); |
| 589 | 589 | |
| 590 | 590 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, |
| 591 | 591 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| r253617 | r253618 | |
| 611 | 611 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 612 | 612 | |
| 613 | 613 | // compute maxwidth |
| 614 | | topbuf = "Menu Preview"; |
| 614 | topbuf = _("Menu Preview"); |
| 615 | 615 | |
| 616 | 616 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, |
| 617 | 617 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| r253617 | r253618 | |
| 619 | 619 | |
| 620 | 620 | std::string sampletxt[5]; |
| 621 | 621 | |
| 622 | | sampletxt[0] = "Normal"; |
| 623 | | sampletxt[1] = "Subitem"; |
| 624 | | sampletxt[2] = "Selected"; |
| 625 | | sampletxt[3] = "Mouse Over"; |
| 626 | | sampletxt[4] = "Clone"; |
| 622 | sampletxt[0] = _("Normal"); |
| 623 | sampletxt[1] = _("Subitem"); |
| 624 | sampletxt[2] = _("Selected"); |
| 625 | sampletxt[3] = _("Mouse Over"); |
| 626 | sampletxt[4] = _("Clone"); |
| 627 | 627 | |
| 628 | 628 | for (auto & elem: sampletxt) |
| 629 | 629 | { |
| r253617 | r253618 | |
| 889 | 889 | item_append("Blue", s_text.c_str(), 0, (void *)(FPTR)RGB_BLUE); |
| 890 | 890 | |
| 891 | 891 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 892 | | item_append("Choose from palette", nullptr, 0, (void *)(FPTR)PALETTE_CHOOSE); |
| 892 | item_append(_("Choose from palette"), nullptr, 0, (void *)(FPTR)PALETTE_CHOOSE); |
| 893 | 893 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 894 | 894 | |
| 895 | 895 | custombottom = customtop = machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; |
| r253617 | r253618 | |
| 905 | 905 | ui_manager &mui = machine().ui(); |
| 906 | 906 | |
| 907 | 907 | // top text |
| 908 | | std::string topbuf = std::string(m_title).append(" - ARGB Settings"); |
| 908 | std::string topbuf = std::string(m_title).append(_(" - ARGB Settings")); |
| 909 | 909 | mui.draw_text_full(container, topbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, |
| 910 | 910 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 911 | 911 | width += 2 * UI_BOX_LR_BORDER; |
| r253617 | r253618 | |
| 929 | 929 | mui.draw_text_full(container, topbuf.c_str(), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_NEVER, |
| 930 | 930 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 931 | 931 | |
| 932 | | std::string sampletxt("Color preview ="); |
| 932 | std::string sampletxt(_("Color preview =")); |
| 933 | 933 | maxwidth = origx2 - origx1; |
| 934 | 934 | mui.draw_text_full(container, sampletxt.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, |
| 935 | 935 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
trunk/src/emu/ui/dirmenu.cpp
| r253617 | r253618 | |
| 278 | 278 | float width, maxwidth = origx2 - origx1; |
| 279 | 279 | ui_manager &mui = machine().ui(); |
| 280 | 280 | std::string tempbuf[2]; |
| 281 | | tempbuf[0] = (m_change) ? "Change" : "Add"; |
| 282 | | tempbuf[0].append(" ").append(s_folders_entry[m_ref].name).append(" Folder - Search: ").append(m_search).append("_"); |
| 281 | tempbuf[0] = (m_change) ? _("Change)") : _("Add"); |
| 282 | tempbuf[0].append(" ").append(s_folders_entry[m_ref].name).append(_(" Folder - Search: ")).append(m_search).append("_"); |
| 283 | 283 | tempbuf[1] = m_current_path; |
| 284 | 284 | |
| 285 | 285 | // get the size of the text |
| r253617 | r253618 | |
| 314 | 314 | } |
| 315 | 315 | |
| 316 | 316 | // bottom text |
| 317 | | tempbuf[0] = "Press TAB to set"; |
| 317 | tempbuf[0] = _("Press TAB to set"); |
| 318 | 318 | |
| 319 | 319 | mui.draw_text_full(container, tempbuf[0].c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 320 | 320 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| r253617 | r253618 | |
| 422 | 422 | ui_manager &mui = machine().ui(); |
| 423 | 423 | |
| 424 | 424 | // get the size of the text |
| 425 | | mui.draw_text_full(container, "Folder Setup", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 425 | mui.draw_text_full(container, _("Folders Setup"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 426 | 426 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 427 | 427 | width += (2.0f * UI_BOX_LR_BORDER) + 0.01f; |
| 428 | 428 | float maxwidth = MAX(width, origx2 - origx1); |
| r253617 | r253618 | |
| 442 | 442 | y1 += UI_BOX_TB_BORDER; |
| 443 | 443 | |
| 444 | 444 | // draw the text within it |
| 445 | | mui.draw_text_full(container, "Folder Setup", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 445 | mui.draw_text_full(container, _("Folders Setup"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 446 | 446 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 447 | 447 | } |
| 448 | 448 | |
| r253617 | r253618 | |
| 491 | 491 | |
| 492 | 492 | void ui_menu_display_actual::populate() |
| 493 | 493 | { |
| 494 | | m_tempbuf.assign("Current ").append(s_folders_entry[m_ref - 1].name).append(" Folders"); |
| 494 | m_tempbuf.assign(_("Current ")).append(s_folders_entry[m_ref - 1].name).append(_(" Folders")); |
| 495 | 495 | if (machine().ui().options().exists(s_folders_entry[m_ref - 1].option)) { |
| 496 | 496 | m_searchpath.assign(machine().ui().options().value(s_folders_entry[m_ref - 1].option)); |
| 497 | 497 | } |
| r253617 | r253618 | |
| 505 | 505 | m_folders.push_back(curpath); |
| 506 | 506 | |
| 507 | 507 | if (m_change) |
| 508 | | item_append("Change Folder", nullptr, 0, (void *)CHANGE_FOLDER); |
| 508 | item_append(_("Change Folder"), nullptr, 0, (void *)CHANGE_FOLDER); |
| 509 | 509 | else |
| 510 | | item_append("Add Folder", nullptr, 0, (void *)ADD_FOLDER); |
| 510 | item_append(_("Add Folder"), nullptr, 0, (void *)ADD_FOLDER); |
| 511 | 511 | |
| 512 | 512 | if (m_folders.size() > 1) |
| 513 | | item_append("Remove Folder", nullptr, 0, (void *)REMOVE_FOLDER); |
| 513 | item_append(_("Remove Folder"), nullptr, 0, (void *)REMOVE_FOLDER); |
| 514 | 514 | |
| 515 | 515 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 516 | 516 | customtop = (m_folders.size() + 1) * machine().ui().get_line_height() + 6.0f * UI_BOX_TB_BORDER; |
| r253617 | r253618 | |
| 664 | 664 | { |
| 665 | 665 | float width; |
| 666 | 666 | ui_manager &mui = machine().ui(); |
| 667 | | std::string tempbuf = std::string("Remove ").append(s_folders_entry[m_ref].name).append(" Folder"); |
| 667 | std::string tempbuf = std::string(_("Remove ")).append(s_folders_entry[m_ref].name).append(_(" Folder")); |
| 668 | 668 | |
| 669 | 669 | // get the size of the text |
| 670 | 670 | mui.draw_text_full(container, tempbuf.c_str(), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_NEVER, DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
trunk/src/emu/ui/miscmenu.cpp
| r253617 | r253618 | |
| 32 | 32 | void ui_menu_keyboard_mode::populate() |
| 33 | 33 | { |
| 34 | 34 | bool natural = machine().ui().use_natural_keyboard(); |
| 35 | | item_append("Keyboard Mode:", natural ? "Natural" : "Emulated", natural ? MENU_FLAG_LEFT_ARROW : MENU_FLAG_RIGHT_ARROW, nullptr); |
| 35 | item_append(_("Keyboard Mode:"), natural ? _("Natural") : _("Emulated"), natural ? MENU_FLAG_LEFT_ARROW : MENU_FLAG_RIGHT_ARROW, nullptr); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | ui_menu_keyboard_mode::~ui_menu_keyboard_mode() |
| r253617 | r253618 | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 89 | | item_append("Reset", nullptr, 0, (void *)1); |
| 89 | item_append(_("Reset"), nullptr, 0, (void *)1); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | ui_menu_bios_selection::~ui_menu_bios_selection() |
| r253617 | r253618 | |
| 260 | 260 | |
| 261 | 261 | /* display whether or not we are locked out */ |
| 262 | 262 | if (machine().bookkeeping().coin_lockout_get_state(ctrnum)) |
| 263 | | tempstring.append(" (locked)"); |
| 263 | tempstring.append(_(" (locked)")); |
| 264 | 264 | tempstring.append("\n"); |
| 265 | 265 | } |
| 266 | 266 | |
| r253617 | r253618 | |
| 520 | 520 | |
| 521 | 521 | /* add CROSSHAIR_ITEM_AUTO_TIME menu */ |
| 522 | 522 | sprintf(temp_text, "%d", settings.auto_time); |
| 523 | | item_append("Visible Delay", temp_text, flags, data); |
| 523 | item_append(_("Visible Delay"), temp_text, flags, data); |
| 524 | 524 | } |
| 525 | 525 | // else |
| 526 | 526 | // /* leave a blank filler line when not in auto time so size does not rescale */ |
| r253617 | r253618 | |
| 559 | 559 | |
| 560 | 560 | ui_menu_misc_options::misc_option ui_menu_misc_options::m_options[] = { |
| 561 | 561 | { 0, nullptr, nullptr }, |
| 562 | | { 0, "Re-select last machine played", OPTION_REMEMBER_LAST }, |
| 563 | | { 0, "Enlarge images in the right panel", OPTION_ENLARGE_SNAPS }, |
| 564 | | { 0, "DATs info", OPTION_DATS_ENABLED }, |
| 565 | | { 0, "Cheats", OPTION_CHEAT }, |
| 566 | | { 0, "Show mouse pointer", OPTION_UI_MOUSE }, |
| 567 | | { 0, "Confirm quit from machines", OPTION_UI_CONFIRM_QUIT }, |
| 568 | | { 0, "Skip displaying information's screen at startup", OPTION_UI_SKIP_GAMEINFO }, |
| 569 | | { 0, "Force 4:3 appearance for software snapshot", OPTION_FORCED4X3 }, |
| 570 | | { 0, "Use image as background", OPTION_USE_BACKGROUND }, |
| 571 | | { 0, "Skip bios selection menu", OPTION_SKIP_BIOS_MENU }, |
| 572 | | { 0, "Skip software parts selection menu", OPTION_SKIP_PARTS_MENU } |
| 562 | { 0, __("Re-select last machine played"), OPTION_REMEMBER_LAST }, |
| 563 | { 0, __("Enlarge images in the right panel"), OPTION_ENLARGE_SNAPS }, |
| 564 | { 0, __("DATs info"), OPTION_DATS_ENABLED }, |
| 565 | { 0, __("Cheats"), OPTION_CHEAT }, |
| 566 | { 0, __("Show mouse pointer"), OPTION_UI_MOUSE }, |
| 567 | { 0, __("Confirm quit from machines"), OPTION_UI_CONFIRM_QUIT }, |
| 568 | { 0, __("Skip displaying information's screen at startup"), OPTION_UI_SKIP_GAMEINFO }, |
| 569 | { 0, __("Force 4:3 appearance for software snapshot"), OPTION_FORCED4X3 }, |
| 570 | { 0, __("Use image as background"), OPTION_USE_BACKGROUND }, |
| 571 | { 0, __("Skip bios selection menu"), OPTION_SKIP_BIOS_MENU }, |
| 572 | { 0, __("Skip software parts selection menu"), OPTION_SKIP_PARTS_MENU } |
| 573 | 573 | }; |
| 574 | 574 | |
| 575 | 575 | //------------------------------------------------- |
| r253617 | r253618 | |
| 635 | 635 | { |
| 636 | 636 | // add options items |
| 637 | 637 | for (int opt = 1; opt < ARRAY_LENGTH(m_options); ++opt) |
| 638 | | item_append(m_options[opt].description, m_options[opt].status ? "On" : "Off", m_options[opt].status ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)opt); |
| 638 | item_append(_(m_options[opt].description), m_options[opt].status ? "On" : "Off", m_options[opt].status ? MENU_FLAG_RIGHT_ARROW : MENU_FLAG_LEFT_ARROW, (void *)(FPTR)opt); |
| 639 | 639 | |
| 640 | 640 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 641 | 641 | customtop = machine().ui().get_line_height() + (3.0f * UI_BOX_TB_BORDER); |
| r253617 | r253618 | |
| 650 | 650 | float width; |
| 651 | 651 | ui_manager &mui = machine().ui(); |
| 652 | 652 | |
| 653 | | mui.draw_text_full(container, "Miscellaneous Options", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 653 | mui.draw_text_full(container, _("Miscellaneous Options"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 654 | 654 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 655 | 655 | width += 2 * UI_BOX_LR_BORDER; |
| 656 | 656 | float maxwidth = MAX(origx2 - origx1, width); |
| r253617 | r253618 | |
| 670 | 670 | y1 += UI_BOX_TB_BORDER; |
| 671 | 671 | |
| 672 | 672 | // draw the text within it |
| 673 | | mui.draw_text_full(container, "Miscellaneous Options", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 673 | mui.draw_text_full(container, _("Miscellaneous Options"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 674 | 674 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 675 | 675 | } |
trunk/src/emu/ui/optsmenu.cpp
| r253617 | r253618 | |
| 198 | 198 | |
| 199 | 199 | // add filter item |
| 200 | 200 | UINT32 arrow_flags = get_arrow_flags((int)FILTER_FIRST, (int)FILTER_LAST, main_filters::actual); |
| 201 | | item_append("Filter", main_filters::text[main_filters::actual], arrow_flags, (void *)(FPTR)FILTER_MENU); |
| 201 | item_append(_("Filter"), main_filters::text[main_filters::actual], arrow_flags, (void *)(FPTR)FILTER_MENU); |
| 202 | 202 | |
| 203 | 203 | // add category subitem |
| 204 | 204 | if (main_filters::actual == FILTER_CATEGORY && !machine().inifile().ini_index.empty()) |
| r253617 | r253618 | |
| 243 | 243 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 244 | 244 | |
| 245 | 245 | // add options items |
| 246 | | item_append("Customize UI", nullptr, 0, (void *)(FPTR)CUSTOM_MENU); |
| 246 | item_append(_("Customize UI"), nullptr, 0, (void *)(FPTR)CUSTOM_MENU); |
| 247 | 247 | } |
| 248 | | item_append("Display Options", nullptr, 0, (void *)(FPTR)DISPLAY_MENU); |
| 249 | | item_append("Sound Options", nullptr, 0, (void *)(FPTR)SOUND_MENU); |
| 250 | | item_append("Miscellaneous Options", nullptr, 0, (void *)(FPTR)MISC_MENU); |
| 251 | | item_append("Device Mapping", nullptr, 0, (void *)(FPTR)CONTROLLER_MENU); |
| 252 | | item_append("General Inputs", nullptr, 0, (void *)(FPTR)CGI_MENU); |
| 248 | item_append(_("Display Options"), nullptr, 0, (void *)(FPTR)DISPLAY_MENU); |
| 249 | item_append(_("Sound Options"), nullptr, 0, (void *)(FPTR)SOUND_MENU); |
| 250 | item_append(_("Miscellaneous Options"), nullptr, 0, (void *)(FPTR)MISC_MENU); |
| 251 | item_append(_("Device Mapping"), nullptr, 0, (void *)(FPTR)CONTROLLER_MENU); |
| 252 | item_append(_("General Inputs"), nullptr, 0, (void *)(FPTR)CGI_MENU); |
| 253 | 253 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 254 | 254 | |
| 255 | 255 | custombottom = 2.0f * machine().ui().get_line_height() + 3.0f * UI_BOX_TB_BORDER; |
| r253617 | r253618 | |
| 264 | 264 | { |
| 265 | 265 | float width; |
| 266 | 266 | ui_manager &mui = machine().ui(); |
| 267 | | mui.draw_text_full(container, "Settings", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 267 | mui.draw_text_full(container, _("Settings"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 268 | 268 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 269 | 269 | width += 2 * UI_BOX_LR_BORDER; |
| 270 | 270 | float maxwidth = MAX(origx2 - origx1, width); |
| r253617 | r253618 | |
| 284 | 284 | y1 += UI_BOX_TB_BORDER; |
| 285 | 285 | |
| 286 | 286 | // draw the text within it |
| 287 | | mui.draw_text_full(container, "Settings", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 287 | mui.draw_text_full(container, _("Settings"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 288 | 288 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 289 | 289 | } |
| 290 | 290 | |
| r253617 | r253618 | |
| 304 | 304 | file.close(); |
| 305 | 305 | } |
| 306 | 306 | else |
| 307 | | machine.popmessage("**Error to save ui.ini**", emulator_info::get_configname()); |
| 307 | machine.popmessage(_("**Error to save ui.ini**")); |
| 308 | 308 | } |
trunk/src/emu/ui/selgame.cpp
| r253617 | r253618 | |
| 620 | 620 | // add special items |
| 621 | 621 | if (ui_menu::stack_has_special_main_menu()) |
| 622 | 622 | { |
| 623 | | item_append("Configure Options", nullptr, MENU_FLAG_UI, (void *)(FPTR)1); |
| 624 | | item_append("Configure Directories", nullptr, MENU_FLAG_UI, (void *)(FPTR)2); |
| 625 | | item_append("Save Configuration", nullptr, MENU_FLAG_UI, (void *)(FPTR)3); |
| 623 | item_append(_("Configure Options"), nullptr, MENU_FLAG_UI, (void *)(FPTR)1); |
| 624 | item_append(_("Configure Directories"), nullptr, MENU_FLAG_UI, (void *)(FPTR)2); |
| 625 | item_append(_("Save Configuration"), nullptr, MENU_FLAG_UI, (void *)(FPTR)3); |
| 626 | 626 | skip_main_items = 3; |
| 627 | 627 | } |
| 628 | 628 | else |
| r253617 | r253618 | |
| 743 | 743 | if (isfavorite()) |
| 744 | 744 | tempbuf[1].clear(); |
| 745 | 745 | else |
| 746 | | tempbuf[1].assign(filtered).append(" Search: ").append(m_search).append("_"); |
| 746 | tempbuf[1].assign(filtered).append(_(" Search: ")).append(m_search).append("_"); |
| 747 | 747 | |
| 748 | 748 | // get the size of the text |
| 749 | 749 | for (int line = 0; line < 2; ++line) |
| r253617 | r253618 | |
| 1758 | 1758 | hover = phover + filter; |
| 1759 | 1759 | } |
| 1760 | 1760 | |
| 1761 | | if (afilter == filter) |
| 1761 | /* if (afilter == filter) |
| 1762 | 1762 | { |
| 1763 | 1763 | bgcolor = UI_SELECTED_BG_COLOR; |
| 1764 | 1764 | fgcolor = UI_SELECTED_COLOR; |
| 1765 | 1765 | } |
| 1766 | | |
| 1766 | */ |
| 1767 | 1767 | if (bgcolor != UI_TEXT_BG_COLOR) |
| 1768 | 1768 | container->add_rect(x1, y1, x2, y1 + line_height_max, bgcolor, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXWRAP(TRUE)); |
| 1769 | 1769 | |
| r253617 | r253618 | |
| 1790 | 1790 | } |
| 1791 | 1791 | convert_command_glyph(str); |
| 1792 | 1792 | } |
| 1793 | else if (filter == main_filters::actual) |
| 1794 | { |
| 1795 | str.assign("@custom1 ").append(text[filter]); |
| 1796 | x1t -= text_sign; |
| 1797 | convert_command_glyph(str); |
| 1798 | } |
| 1793 | 1799 | |
| 1794 | 1800 | mui.draw_text_full(container, str.c_str(), x1t, y1, x2 - x1, JUSTIFY_LEFT, WRAP_NEVER, |
| 1795 | 1801 | DRAW_NORMAL, fgcolor, bgcolor, nullptr, nullptr, text_size); |
| r253617 | r253618 | |
| 1942 | 1948 | |
| 1943 | 1949 | if (buffer.empty()) |
| 1944 | 1950 | { |
| 1945 | | mui.draw_text_full(container, "No Infos Available", origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 1951 | mui.draw_text_full(container, _("No Infos Available"), origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 1946 | 1952 | WRAP_WORD, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 1947 | 1953 | return; |
| 1948 | 1954 | } |
| r253617 | r253618 | |
| 2045 | 2051 | // apply title to right panel |
| 2046 | 2052 | if (soft->usage.empty()) |
| 2047 | 2053 | { |
| 2048 | | mui.draw_text_full(container, "History", origx1, origy1, origx2 - origx1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 2054 | mui.draw_text_full(container, _("History"), origx1, origy1, origx2 - origx1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 2049 | 2055 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 2050 | 2056 | ui_globals::cur_sw_dats_view = 0; |
| 2051 | 2057 | } |
| r253617 | r253618 | |
| 2054 | 2060 | float title_size = 0.0f; |
| 2055 | 2061 | float txt_lenght = 0.0f; |
| 2056 | 2062 | std::string t_text[2]; |
| 2057 | | t_text[0] = "History"; |
| 2058 | | t_text[1] = "Usage"; |
| 2063 | t_text[0] = _("History"); |
| 2064 | t_text[1] = _("Usage"); |
| 2059 | 2065 | |
| 2060 | 2066 | for (auto & elem: t_text) |
| 2061 | 2067 | { |
| r253617 | r253618 | |
| 2089 | 2095 | |
| 2090 | 2096 | if (buffer.empty()) |
| 2091 | 2097 | { |
| 2092 | | mui.draw_text_full(container, "No Infos Available", origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 2098 | mui.draw_text_full(container, _("No Infos Available"), origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 2093 | 2099 | WRAP_WORD, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 2094 | 2100 | return; |
| 2095 | 2101 | } |
trunk/src/emu/ui/selsoft.cpp
| r253617 | r253618 | |
| 106 | 106 | |
| 107 | 107 | if (bname == default_name) |
| 108 | 108 | { |
| 109 | | name.append(" (default)"); |
| 109 | name.append(_(" (default)")); |
| 110 | 110 | biosname.emplace(biosname.begin(), name, bios_flags - 1); |
| 111 | 111 | } |
| 112 | 112 | else |
| r253617 | r253618 | |
| 618 | 618 | tempbuf[1].assign("Driver: \"").append(m_driver->description).append("\" software list "); |
| 619 | 619 | |
| 620 | 620 | if (sw_filters::actual == UI_SW_REGION && m_filter.region.ui.size() != 0) |
| 621 | | filtered.assign("Region: ").append(m_filter.region.ui[m_filter.region.actual]).append(" - "); |
| 621 | filtered.assign(_("Region: ")).append(m_filter.region.ui[m_filter.region.actual]).append(" - "); |
| 622 | 622 | else if (sw_filters::actual == UI_SW_PUBLISHERS) |
| 623 | | filtered.assign("Publisher: ").append(m_filter.publisher.ui[m_filter.publisher.actual]).append(" - "); |
| 623 | filtered.assign(_("Publisher: ")).append(m_filter.publisher.ui[m_filter.publisher.actual]).append(" - "); |
| 624 | 624 | else if (sw_filters::actual == UI_SW_YEARS) |
| 625 | | filtered.assign("Year: ").append(m_filter.year.ui[m_filter.year.actual]).append(" - "); |
| 625 | filtered.assign(_("Year: ")).append(m_filter.year.ui[m_filter.year.actual]).append(" - "); |
| 626 | 626 | else if (sw_filters::actual == UI_SW_LIST) |
| 627 | | filtered.assign("Software List: ").append(m_filter.swlist.description[m_filter.swlist.actual]).append(" - "); |
| 627 | filtered.assign(_("Software List: ")).append(m_filter.swlist.description[m_filter.swlist.actual]).append(" - "); |
| 628 | 628 | else if (sw_filters::actual == UI_SW_TYPE) |
| 629 | | filtered.assign("Device type: ").append(m_filter.type.ui[m_filter.type.actual]).append(" - "); |
| 629 | filtered.assign(_("Device type: ")).append(m_filter.type.ui[m_filter.type.actual]).append(" - "); |
| 630 | 630 | |
| 631 | | tempbuf[2].assign(filtered).append("Search: ").append(m_search).append("_"); |
| 631 | tempbuf[2].assign(filtered).append(_("Search: ")).append(m_search).append("_"); |
| 632 | 632 | |
| 633 | 633 | // get the size of the text |
| 634 | 634 | float maxwidth = origx2 - origx1; |
| r253617 | r253618 | |
| 1319 | 1319 | hover = phover + filter; |
| 1320 | 1320 | } |
| 1321 | 1321 | |
| 1322 | | if (afilter == filter) |
| 1322 | /* if (afilter == filter) |
| 1323 | 1323 | { |
| 1324 | 1324 | bgcolor = UI_SELECTED_BG_COLOR; |
| 1325 | 1325 | fgcolor = UI_SELECTED_COLOR; |
| 1326 | 1326 | } |
| 1327 | | |
| 1327 | */ |
| 1328 | 1328 | if (bgcolor != UI_TEXT_BG_COLOR) |
| 1329 | 1329 | container->add_rect(x1, y1, x2, y1 + line_height, bgcolor, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXWRAP(TRUE)); |
| 1330 | 1330 | |
| r253617 | r253618 | |
| 1351 | 1351 | } |
| 1352 | 1352 | convert_command_glyph(str); |
| 1353 | 1353 | } |
| 1354 | else if (filter == sw_filters::actual) |
| 1355 | { |
| 1356 | str.assign("@custom1 ").append(text[filter]); |
| 1357 | x1t -= text_sign; |
| 1358 | convert_command_glyph(str); |
| 1359 | } |
| 1354 | 1360 | |
| 1355 | 1361 | mui.draw_text_full(container, str.c_str(), x1t, y1, x2 - x1, JUSTIFY_LEFT, WRAP_NEVER, |
| 1356 | 1362 | DRAW_NORMAL, fgcolor, bgcolor, nullptr, nullptr, text_size); |
| r253617 | r253618 | |
| 1432 | 1438 | // apply title to right panel |
| 1433 | 1439 | if (soft && soft->usage.empty()) |
| 1434 | 1440 | { |
| 1435 | | mui.draw_text_full(container, "History", origx1, origy1, origx2 - origx1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1441 | mui.draw_text_full(container, _("History"), origx1, origy1, origx2 - origx1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1436 | 1442 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 1437 | 1443 | ui_globals::cur_sw_dats_view = 0; |
| 1438 | 1444 | } |
| r253617 | r253618 | |
| 1441 | 1447 | float title_size = 0.0f; |
| 1442 | 1448 | float txt_lenght = 0.0f; |
| 1443 | 1449 | std::string t_text[2]; |
| 1444 | | t_text[0] = "History"; |
| 1445 | | t_text[1] = "Usage"; |
| 1450 | t_text[0] = _("History"); |
| 1451 | t_text[1] = _("Usage"); |
| 1446 | 1452 | |
| 1447 | 1453 | for (auto & elem : t_text) |
| 1448 | 1454 | { |
| r253617 | r253618 | |
| 1477 | 1483 | |
| 1478 | 1484 | if (buffer.empty()) |
| 1479 | 1485 | { |
| 1480 | | mui.draw_text_full(container, "No Infos Available", origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 1486 | mui.draw_text_full(container, _("No Infos Available"), origx1, (origy2 + origy1) * 0.5f, origx2 - origx1, JUSTIFY_CENTER, |
| 1481 | 1487 | WRAP_WORD, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 1482 | 1488 | return; |
| 1483 | 1489 | } |
| r253617 | r253618 | |
| 1813 | 1819 | { |
| 1814 | 1820 | float width; |
| 1815 | 1821 | ui_manager &mui = machine().ui(); |
| 1816 | | mui.draw_text_full(container, "Software part selection:", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1822 | mui.draw_text_full(container, _("Software part selection:"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1817 | 1823 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 1818 | 1824 | width += 2 * UI_BOX_LR_BORDER; |
| 1819 | 1825 | float maxwidth = MAX(origx2 - origx1, width); |
| r253617 | r253618 | |
| 1833 | 1839 | y1 += UI_BOX_TB_BORDER; |
| 1834 | 1840 | |
| 1835 | 1841 | // draw the text within it |
| 1836 | | mui.draw_text_full(container, "Software part selection:", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1842 | mui.draw_text_full(container, _("Software part selection:"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1837 | 1843 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 1838 | 1844 | } |
| 1839 | 1845 | |
| r253617 | r253618 | |
| 1951 | 1957 | { |
| 1952 | 1958 | float width; |
| 1953 | 1959 | ui_manager &mui = machine().ui(); |
| 1954 | | mui.draw_text_full(container, "Bios selection:", 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1960 | mui.draw_text_full(container, _("Bios selection:"), 0.0f, 0.0f, 1.0f, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1955 | 1961 | DRAW_NONE, ARGB_WHITE, ARGB_BLACK, &width, nullptr); |
| 1956 | 1962 | width += 2 * UI_BOX_LR_BORDER; |
| 1957 | 1963 | float maxwidth = MAX(origx2 - origx1, width); |
| r253617 | r253618 | |
| 1971 | 1977 | y1 += UI_BOX_TB_BORDER; |
| 1972 | 1978 | |
| 1973 | 1979 | // draw the text within it |
| 1974 | | mui.draw_text_full(container, "Bios selection:", x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1980 | mui.draw_text_full(container, _("Bios selection:"), x1, y1, x2 - x1, JUSTIFY_CENTER, WRAP_TRUNCATE, |
| 1975 | 1981 | DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr); |
| 1976 | 1982 | } |