Previous 199869 Revisions Next

r44668 Thursday 4th February, 2016 at 14:36:33 UTC by Miodrag Milanović
clear the rest of mewui mentioning (nw)
[src/emu]ioport.h
[src/emu/ui]auditmenu.cpp cmdrender.h custmenu.cpp custui.cpp datfile.cpp datfile.h datmenu.cpp dirmenu.cpp dirmenu.h dsplmenu.cpp dsplmenu.h icorender.h inifile.cpp inifile.h mainmenu.cpp menu.cpp menu.h moptions.cpp moptions.h optsmenu.cpp optsmenu.h selgame.cpp selgame.h selsoft.cpp selsoft.h toolbar.h ui.cpp ui.h utils.cpp utils.h

trunk/src/emu/ioport.h
r253179r253180
370370      IPT_UI_LOAD_STATE,
371371      IPT_UI_TAPE_START,
372372      IPT_UI_TAPE_STOP,
373
374      // additional MEWUI options
375373      IPT_UI_HISTORY,
376374      IPT_UI_MAMEINFO,
377375      IPT_UI_COMMAND,
trunk/src/emu/ui/auditmenu.cpp
r253179r253180
1515#include "ui/auditmenu.h"
1616#include <algorithm>
1717
18extern const char MEWUI_VERSION_TAG[];
18extern const char UI_VERSION_TAG[];
1919
2020//-------------------------------------------------
2121//  sort
r253179r253180
173173void ui_menu_audit::save_available_machines()
174174{
175175   // attempt to open the output file
176   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
176   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
177177   if (file.open(emulator_info::get_configname(), "_avail.ini") == FILERR_NONE)
178178   {
179179      // generate header
180      std::string buffer = std::string("#\n").append(MEWUI_VERSION_TAG).append(bare_build_version).append("\n#\n\n");
180      std::string buffer = std::string("#\n").append(UI_VERSION_TAG).append(bare_build_version).append("\n#\n\n");
181181      strcatprintf(buffer, "%d\n", (int)m_availablesorted.size());
182182      strcatprintf(buffer, "%d\n", (int)m_unavailablesorted.size());
183183
trunk/src/emu/ui/cmdrender.h
r253179r253180
44
55    ui/cmdrender.h
66
7    MEWUI rendfont.
7    UI rendfont.
88
99***************************************************************************/
1010
trunk/src/emu/ui/custmenu.cpp
r253179r253180
272272void ui_menu_custom_filter::save_custom_filters()
273273{
274274   // attempt to open the output file
275   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
275   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
276276   if (file.open("custom_", emulator_info::get_configname(), "_filter.ini") == FILERR_NONE)
277277   {
278278      // generate custom filters info
r253179r253180
338338            if (m_event->iptkey == IPT_UI_SELECT)
339339            {
340340               sw_custfltr::numother++;
341               sw_custfltr::other[sw_custfltr::numother] = MEWUI_SW_UNAVAILABLE + 1;
341               sw_custfltr::other[sw_custfltr::numother] = UI_SW_UNAVAILABLE + 1;
342342               m_added = true;
343343            }
344344            break;
r253179r253180
346346         case REMOVE_FILTER:
347347            if (m_event->iptkey == IPT_UI_SELECT)
348348            {
349               sw_custfltr::other[sw_custfltr::numother] = MEWUI_SW_UNAVAILABLE + 1;
349               sw_custfltr::other[sw_custfltr::numother] = UI_SW_UNAVAILABLE + 1;
350350               sw_custfltr::numother--;
351351               changed = true;
352352            }
r253179r253180
356356      if ((FPTR)m_event->itemref >= OTHER_FILTER && (FPTR)m_event->itemref < OTHER_FILTER + MAX_CUST_FILTER)
357357      {
358358         int pos = (int)((FPTR)m_event->itemref - OTHER_FILTER);
359         if (m_event->iptkey == IPT_UI_LEFT && sw_custfltr::other[pos] > MEWUI_SW_UNAVAILABLE + 1)
359         if (m_event->iptkey == IPT_UI_LEFT && sw_custfltr::other[pos] > UI_SW_UNAVAILABLE + 1)
360360         {
361361            sw_custfltr::other[pos]--;
362362            changed = true;
363363         }
364         else if (m_event->iptkey == IPT_UI_RIGHT && sw_custfltr::other[pos] < MEWUI_SW_LAST - 1)
364         else if (m_event->iptkey == IPT_UI_RIGHT && sw_custfltr::other[pos] < UI_SW_LAST - 1)
365365         {
366366            sw_custfltr::other[pos]++;
367367            changed = true;
r253179r253180
371371            size_t total = sw_filters::length;
372372            std::vector<std::string> s_sel(total);
373373            for (size_t index = 0; index < total; ++index)
374               if (index <= MEWUI_SW_UNAVAILABLE|| index == MEWUI_SW_CUSTOM)
374               if (index <= UI_SW_UNAVAILABLE|| index == UI_SW_CUSTOM)
375375                  s_sel[index] = "_skip_";
376376               else
377377                  s_sel[index] = sw_filters::text[index];
r253179r253180
473473void ui_menu_swcustom_filter::populate()
474474{
475475   // add main filter
476   UINT32 arrow_flags = get_arrow_flags((int)MEWUI_SW_ALL, (int)MEWUI_SW_UNAVAILABLE, sw_custfltr::main);
476   UINT32 arrow_flags = get_arrow_flags((int)UI_SW_ALL, (int)UI_SW_UNAVAILABLE, sw_custfltr::main);
477477   item_append("Main filter", sw_filters::text[sw_custfltr::main], arrow_flags, (void *)(FPTR)MAIN_FILTER);
478478
479479   // add other filters
r253179r253180
482482      item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
483483
484484      // add filter items
485      arrow_flags = get_arrow_flags((int)MEWUI_SW_UNAVAILABLE + 1, (int)MEWUI_SW_LAST - 1, sw_custfltr::other[x]);
485      arrow_flags = get_arrow_flags((int)UI_SW_UNAVAILABLE + 1, (int)UI_SW_LAST - 1, sw_custfltr::other[x]);
486486      item_append("Other filter", sw_filters::text[sw_custfltr::other[x]], arrow_flags, (void *)(FPTR)(OTHER_FILTER + x));
487487
488488      if (m_added)
489489         selected = item.size() - 2;
490490
491491      // add publisher subitem
492      if (sw_custfltr::other[x] == MEWUI_SW_PUBLISHERS && m_filter.publisher.ui.size() > 0)
492      if (sw_custfltr::other[x] == UI_SW_PUBLISHERS && m_filter.publisher.ui.size() > 0)
493493      {
494494         arrow_flags = get_arrow_flags(0, m_filter.publisher.ui.size() - 1, sw_custfltr::mnfct[x]);
495495         std::string fbuff("^!Publisher");
r253179r253180
498498      }
499499
500500      // add year subitem
501      else if (sw_custfltr::other[x] == MEWUI_SW_YEARS && m_filter.year.ui.size() > 0)
501      else if (sw_custfltr::other[x] == UI_SW_YEARS && m_filter.year.ui.size() > 0)
502502      {
503503         arrow_flags = get_arrow_flags(0, m_filter.year.ui.size() - 1, sw_custfltr::year[x]);
504504         std::string fbuff("^!Year");
r253179r253180
507507      }
508508
509509      // add year subitem
510      else if (sw_custfltr::other[x] == MEWUI_SW_LIST && m_filter.swlist.name.size() > 0)
510      else if (sw_custfltr::other[x] == UI_SW_LIST && m_filter.swlist.name.size() > 0)
511511      {
512512         arrow_flags = get_arrow_flags(0, m_filter.swlist.name.size() - 1, sw_custfltr::list[x]);
513513         std::string fbuff("^!Software List");
r253179r253180
516516      }
517517
518518      // add device type subitem
519      else if (sw_custfltr::other[x] == MEWUI_SW_TYPE && m_filter.type.ui.size() > 0)
519      else if (sw_custfltr::other[x] == UI_SW_TYPE && m_filter.type.ui.size() > 0)
520520      {
521521         arrow_flags = get_arrow_flags(0, m_filter.type.ui.size() - 1, sw_custfltr::type[x]);
522522         std::string fbuff("^!Device type");
r253179r253180
525525      }
526526
527527      // add region subitem
528      else if (sw_custfltr::other[x] == MEWUI_SW_REGION && m_filter.region.ui.size() > 0)
528      else if (sw_custfltr::other[x] == UI_SW_REGION && m_filter.region.ui.size() > 0)
529529      {
530530         arrow_flags = get_arrow_flags(0, m_filter.region.ui.size() - 1, sw_custfltr::region[x]);
531531         std::string fbuff("^!Region");
r253179r253180
587587void ui_menu_swcustom_filter::save_sw_custom_filters()
588588{
589589   // attempt to open the output file
590   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
590   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
591591   if (file.open("custom_", m_driver->name, "_filter.ini") == FILERR_NONE)
592592   {
593593      // generate custom filters info
r253179r253180
598598      for (int x = 1; x <= sw_custfltr::numother; x++)
599599      {
600600         cinfo.append("Other filter = ").append(sw_filters::text[sw_custfltr::other[x]]).append("\n");
601         if (sw_custfltr::other[x] == MEWUI_SW_PUBLISHERS)
601         if (sw_custfltr::other[x] == UI_SW_PUBLISHERS)
602602            cinfo.append("  Manufacturer filter = ").append(m_filter.publisher.ui[sw_custfltr::mnfct[x]]).append("\n");
603         else if (sw_custfltr::other[x] == MEWUI_SW_LIST)
603         else if (sw_custfltr::other[x] == UI_SW_LIST)
604604            cinfo.append("  Software List filter = ").append(m_filter.swlist.name[sw_custfltr::list[x]]).append("\n");
605         else if (sw_custfltr::other[x] == MEWUI_SW_YEARS)
605         else if (sw_custfltr::other[x] == UI_SW_YEARS)
606606            cinfo.append("  Year filter = ").append(m_filter.year.ui[sw_custfltr::year[x]]).append("\n");
607         else if (sw_custfltr::other[x] == MEWUI_SW_TYPE)
607         else if (sw_custfltr::other[x] == UI_SW_TYPE)
608608            cinfo.append("  Type filter = ").append(m_filter.type.ui[sw_custfltr::type[x]]).append("\n");
609         else if (sw_custfltr::other[x] == MEWUI_SW_REGION)
609         else if (sw_custfltr::other[x] == UI_SW_REGION)
610610            cinfo.append("  Region filter = ").append(m_filter.region.ui[sw_custfltr::region[x]]).append("\n");
611611      }
612612      file.puts(cinfo.c_str());
trunk/src/emu/ui/custui.cpp
r253179r253180
10161016void ui_menu_palette_sel::handle()
10171017{
10181018   // process the menu
1019   const ui_menu_event *m_event = process(MENU_FLAG_MEWUI_PALETTE);
1019   const ui_menu_event *m_event = process(MENU_FLAG_UI_PALETTE);
10201020   if (m_event != nullptr && m_event->itemref != nullptr)
10211021   {
10221022      if (m_event->iptkey == IPT_UI_SELECT)
r253179r253180
10351035void ui_menu_palette_sel::populate()
10361036{
10371037   for (int x = 0; x < ARRAY_LENGTH(m_palette); ++x)
1038      item_append(m_palette[x].name, m_palette[x].argb, MENU_FLAG_MEWUI_PALETTE, (void *)(FPTR)(x + 1));
1038      item_append(m_palette[x].name, m_palette[x].argb, MENU_FLAG_UI_PALETTE, (void *)(FPTR)(x + 1));
10391039
10401040   item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
10411041}
trunk/src/emu/ui/datfile.cpp
r253179r253180
44
55    ui/datfile.cpp
66
7    MEWUI DATs manager.
7    UI DATs manager.
88
99***************************************************************************/
1010
r253179r253180
215215
216216   switch (type)
217217   {
218      case MEWUI_HISTORY_LOAD:
218      case UI_HISTORY_LOAD:
219219         filename = "history.dat";
220220         tag = TAG_BIO;
221221         index_idx = m_histidx;
222222         break;
223      case MEWUI_MAMEINFO_LOAD:
223      case UI_MAMEINFO_LOAD:
224224         filename = "mameinfo.dat";
225225         tag = TAG_MAME;
226226         index_idx = m_mameidx;
227227         driver_idx = m_drvidx;
228228         break;
229      case MEWUI_SYSINFO_LOAD:
229      case UI_SYSINFO_LOAD:
230230         filename = "sysinfo.dat";
231231         tag = TAG_BIO;
232232         index_idx = m_sysidx;
233233         break;
234      case MEWUI_MESSINFO_LOAD:
234      case UI_MESSINFO_LOAD:
235235         filename = "messinfo.dat";
236236         tag = TAG_MAME;
237237         index_idx = m_messidx;
238238         driver_idx = m_messdrvidx;
239239         break;
240      case MEWUI_STORY_LOAD:
240      case UI_STORY_LOAD:
241241         filename = "story.dat";
242242         tag = TAG_STORY;
243243         index_idx = m_storyidx;
r253179r253180
253253         load_driver_text(drv, buffer, driver_idx, TAG_DRIVER);
254254
255255      // cleanup mameinfo and sysinfo double line spacing
256      if (tag == TAG_MAME || type == MEWUI_SYSINFO_LOAD)
256      if (tag == TAG_MAME || type == UI_SYSINFO_LOAD)
257257         strreplace(buffer, "\n\n", "\n");
258258
259259      parseclose();
trunk/src/emu/ui/datfile.h
r253179r253180
44
55    ui/datfile.h
66
7    MEWUI DATs manager.
7    UI DATs manager.
88
99***************************************************************************/
1010
trunk/src/emu/ui/datmenu.cpp
r253179r253180
161161            std::string first_part(tempbuf.substr(0, first_dspace));
162162            std::string last_part(tempbuf.substr(first_dspace));
163163            strtrimspace(last_part);
164            item_append(first_part.c_str(), last_part.c_str(), MENU_FLAG_MEWUI_HISTORY, nullptr);
164            item_append(first_part.c_str(), last_part.c_str(), MENU_FLAG_UI_HISTORY, nullptr);
165165         }
166166         else
167            item_append(tempbuf.c_str(), nullptr, MENU_FLAG_MEWUI_HISTORY, nullptr);
167            item_append(tempbuf.c_str(), nullptr, MENU_FLAG_UI_HISTORY, nullptr);
168168      }
169169      item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr);
170170   }
r253179r253180
302302      for (int r = 0; r < total_lines; r++)
303303      {
304304         std::string tempbuf(buffer.substr(xstart[r], xend[r] - xstart[r]));
305         item_append(tempbuf.c_str(), nullptr, MENU_FLAG_MEWUI_HISTORY, nullptr);
305         item_append(tempbuf.c_str(), nullptr, MENU_FLAG_UI_HISTORY, nullptr);
306306      }
307307   }
308308   else
r253179r253180
410410   machine().pause();
411411   switch (m_flags)
412412   {
413      case MEWUI_HISTORY_LOAD:
413      case UI_HISTORY_LOAD:
414414         if (!get_data(m_driver, m_flags))
415415            item_append("No available History for this machine.", nullptr, MENU_FLAG_DISABLE, nullptr);
416416         break;
417417
418      case MEWUI_MAMEINFO_LOAD:
418      case UI_MAMEINFO_LOAD:
419419         if (!get_data(m_driver, m_flags))
420420            item_append("No available MameInfo for this machine.", nullptr, MENU_FLAG_DISABLE, nullptr);
421421         break;
422422
423      case MEWUI_MESSINFO_LOAD:
423      case UI_MESSINFO_LOAD:
424424         if (!get_data(m_driver, m_flags))
425425            item_append("No available MessInfo for this machine.", nullptr, MENU_FLAG_DISABLE, nullptr);
426426         break;
427427
428      case MEWUI_STORY_LOAD:
429         if (!get_data(m_driver, MEWUI_STORY_LOAD))
428      case UI_STORY_LOAD:
429         if (!get_data(m_driver, UI_STORY_LOAD))
430430            item_append("No available Mamescore for this machine.", nullptr, MENU_FLAG_DISABLE, nullptr);
431431         break;
432432
433      case MEWUI_SYSINFO_LOAD:
434         if (!get_data(m_driver, MEWUI_SYSINFO_LOAD))
433      case UI_SYSINFO_LOAD:
434         if (!get_data(m_driver, UI_SYSINFO_LOAD))
435435            item_append("No available Sysinfo for this machine.", nullptr, MENU_FLAG_DISABLE, nullptr);
436436         break;
437437   }
r253179r253180
454454
455455   switch (m_flags)
456456   {
457      case MEWUI_HISTORY_LOAD:
457      case UI_HISTORY_LOAD:
458458         tempbuf.assign("History - Game / System: ").append(m_driver->description);
459459         revision.assign("History.dat Revision: ").append(datfile.rev_history());
460460         break;
461461
462      case MEWUI_MESSINFO_LOAD:
462      case UI_MESSINFO_LOAD:
463463         tempbuf.assign("MessInfo - System: ").append(m_driver->description);
464464         revision.assign("Messinfo.dat Revision: ").append(datfile.rev_messinfo());
465465         break;
466466
467      case MEWUI_MAMEINFO_LOAD:
467      case UI_MAMEINFO_LOAD:
468468         tempbuf.assign("MameInfo - Game: ").append(m_driver->description);
469469         revision.assign("Mameinfo.dat Revision: ").append(datfile.rev_mameinfo());
470470         break;
471471
472      case MEWUI_SYSINFO_LOAD:
472      case UI_SYSINFO_LOAD:
473473         tempbuf.assign("Sysinfo - System: ").append(m_driver->description);
474474         revision.assign("Sysinfo.dat Revision: ").append(datfile.rev_sysinfo());
475475         break;
476476
477      case MEWUI_STORY_LOAD:
477      case UI_STORY_LOAD:
478478         tempbuf.assign("MAMESCORE - Game: ").append(m_driver->description);
479479         revision.assign("Story.dat Revision: ").append(machine().datfile().rev_storyinfo());
480480         break;
r253179r253180
552552   {
553553      std::string tempbuf(buffer.substr(xstart[r], xend[r] - xstart[r]));
554554      // special case for mamescore
555      if (flags == MEWUI_STORY_LOAD)
555      if (flags == UI_STORY_LOAD)
556556      {
557557         size_t last_underscore = tempbuf.find_last_of('_');
558558         if (last_underscore != std::string::npos)
r253179r253180
560560            std::string last_part(tempbuf.substr(last_underscore + 1));
561561            int primary = tempbuf.find("___");
562562            std::string first_part(tempbuf.substr(0, primary));
563            item_append(first_part.c_str(), last_part.c_str(), MENU_FLAG_MEWUI_HISTORY, nullptr);
563            item_append(first_part.c_str(), last_part.c_str(), MENU_FLAG_UI_HISTORY, nullptr);
564564         }
565565      }
566566      else
567         item_append(tempbuf.c_str(), nullptr, MENU_FLAG_MEWUI_HISTORY, nullptr);
567         item_append(tempbuf.c_str(), nullptr, MENU_FLAG_UI_HISTORY, nullptr);
568568   }
569569      return true;
570570}
trunk/src/emu/ui/dirmenu.cpp
r253179r253180
2525static const folders_entry s_folders_entry[] =
2626{
2727   { "ROMs",                OPTION_MEDIAPATH },
28   { "MEWUI",               OPTION_MEWUI_PATH },
28   { "UI",                  OPTION_UI_PATH },
2929   { "Samples",             OPTION_SAMPLEPATH },
3030   { "DATs",                OPTION_HISTORY_PATH },
3131   { "INIs",                OPTION_INIPATH },
r253179r253180
342342   if (m_event != nullptr && m_event->itemref != nullptr && m_event->iptkey == IPT_UI_SELECT)
343343   {
344344      int ref = (FPTR)m_event->itemref;
345      bool change = (ref == HISTORY_FOLDERS || ref == EXTRAINI_FOLDERS || ref == MEWUI_FOLDERS);
345      bool change = (ref == HISTORY_FOLDERS || ref == EXTRAINI_FOLDERS || ref == UI_FOLDERS);
346346      ui_menu::stack_push(global_alloc_clear<ui_menu_display_actual>(machine(), container, ref, change));
347347   }
348348}
r253179r253180
354354void ui_menu_directory::populate()
355355{
356356   item_append("Roms", nullptr, 0, (void *)(FPTR)ROM_FOLDERS);
357   item_append("MEWUI", nullptr, 0, (void *)(FPTR)MEWUI_FOLDERS);
357   item_append("UI", nullptr, 0, (void *)(FPTR)UI_FOLDERS);
358358   item_append("Samples", nullptr, 0, (void *)(FPTR)SAMPLE_FOLDERS);
359359   item_append("INIs", nullptr, 0, (void *)(FPTR)INI_FOLDERS);
360360   item_append("Artwork", nullptr, 0, (void *)(FPTR)ARTWORK_FOLDERS);
trunk/src/emu/ui/dirmenu.h
r253179r253180
3030   enum
3131   {
3232      ROM_FOLDERS = 1,
33      MEWUI_FOLDERS,
33      UI_FOLDERS,
3434      SAMPLE_FOLDERS,
3535      HISTORY_FOLDERS,
3636      INI_FOLDERS,
trunk/src/emu/ui/dsplmenu.cpp
r253179r253180
44
55    ui/dsplmenu.cpp
66
7    MEWUI video options menu.
7    UI video options menu.
88
99*********************************************************************/
1010
trunk/src/emu/ui/dsplmenu.h
r253179r253180
44
55    ui/dsplmenu.h
66
7    MEWUI video options menu.
7    UI video options menu.
88
99***************************************************************************/
1010
trunk/src/emu/ui/icorender.h
r253179r253180
99    Original code by Victor Laskin (victor.laskin@gmail.com)
1010    http://vitiy.info/Code/ico.cpp
1111
12    Revised for MEWUI by dankan1890.
13
1412***************************************************************************/
1513#pragma once
1614
trunk/src/emu/ui/inifile.cpp
r253179r253180
44
55    ui/inifile.cpp
66
7    MEWUI INIs file manager.
7    UI INIs file manager.
88
99***************************************************************************/
1010
r253179r253180
4747      int length = strlen(dir->name);
4848      std::string filename(dir->name);
4949
50      // skip mewui_favorite file
51      if (!core_stricmp("mewui_favorite.ini", filename.c_str()))
50      // skip ui_favorite file
51      if (!core_stricmp("ui_favorite.ini", filename.c_str()))
5252         continue;
5353
5454      // check .ini file ending
r253179r253180
357357
358358void favorite_manager::parse_favorite()
359359{
360   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
360   emu_file file(machine().options().ui_path(), OPEN_FLAG_READ);
361361   if (file.open(favorite_filename) == FILERR_NONE)
362362   {
363363      char readbuf[1024];
r253179r253180
416416void favorite_manager::save_favorite_games()
417417{
418418   // attempt to open the output file
419   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
419   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
420420   if (file.open(favorite_filename) == FILERR_NONE)
421421   {
422422      if (m_list.empty())
trunk/src/emu/ui/inifile.h
r253179r253180
44
55    ui/inifile.h
66
7    MEWUI INIs file manager.
7    UI INIs file manager.
88
99***************************************************************************/
1010
r253179r253180
112112   // current
113113   int m_current;
114114
115   // parse file mewui_favorite
115   // parse file ui_favorite
116116   void parse_favorite();
117117
118118   // internal state
trunk/src/emu/ui/mainmenu.cpp
r253179r253180
296296         break;
297297
298298      case HISTORY:
299         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_HISTORY_LOAD));
299         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_HISTORY_LOAD));
300300         break;
301301
302302      case MAMEINFO:
303303         if ((machine().system().flags & MACHINE_TYPE_ARCADE) != 0)
304            ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MAMEINFO_LOAD));
304            ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MAMEINFO_LOAD));
305305         else
306            ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MESSINFO_LOAD));
306            ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MESSINFO_LOAD));
307307         break;
308308
309309      case SYSINFO:
310         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_SYSINFO_LOAD));
310         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_SYSINFO_LOAD));
311311         break;
312312
313313      case COMMAND:
r253179r253180
315315         break;
316316
317317      case STORYINFO:
318         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_STORY_LOAD));
318         ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_STORY_LOAD));
319319         break;
320320
321321      case ADD_FAVORITE:
trunk/src/emu/ui/menu.cpp
r253179r253180
7676render_texture *ui_menu::hilight_main_texture;
7777render_texture *ui_menu::bgrnd_texture;
7878render_texture *ui_menu::star_texture;
79render_texture *ui_menu::toolbar_texture[MEWUI_TOOLBAR_BUTTONS];
80render_texture *ui_menu::sw_toolbar_texture[MEWUI_TOOLBAR_BUTTONS];
79render_texture *ui_menu::toolbar_texture[UI_TOOLBAR_BUTTONS];
80render_texture *ui_menu::sw_toolbar_texture[UI_TOOLBAR_BUTTONS];
8181render_texture *ui_menu::icons_texture[MAX_ICONS_RENDER];
8282std::unique_ptr<bitmap_argb32> ui_menu::snapx_bitmap;
8383std::unique_ptr<bitmap_argb32> ui_menu::no_avail_bitmap;
r253179r253180
8585std::unique_ptr<bitmap_argb32> ui_menu::bgrnd_bitmap;
8686bitmap_argb32 *ui_menu::icons_bitmap[MAX_ICONS_RENDER];
8787std::unique_ptr<bitmap_rgb32> ui_menu::hilight_main_bitmap;
88bitmap_argb32 *ui_menu::toolbar_bitmap[MEWUI_TOOLBAR_BUTTONS];
89bitmap_argb32 *ui_menu::sw_toolbar_bitmap[MEWUI_TOOLBAR_BUTTONS];
88bitmap_argb32 *ui_menu::toolbar_bitmap[UI_TOOLBAR_BUTTONS];
89bitmap_argb32 *ui_menu::sw_toolbar_bitmap[UI_TOOLBAR_BUTTONS];
9090
9191/***************************************************************************
9292   INLINE FUNCTIONS
r253179r253180
149149   // create a texture for arrow icons
150150   arrow_texture = machine.render().texture_alloc(render_triangle);
151151
152   // initialize mewui
153   init_mewui(machine);
152   // initialize ui
153   init_ui(machine);
154154
155155   // add an exit callback to free memory
156156   machine.add_notifier(MACHINE_NOTIFY_EXIT, machine_notify_delegate(FUNC(ui_menu::exit), &machine));
r253179r253180
179179   for (auto & elem : icons_texture)
180180      mre.texture_free(elem);
181181
182   for (int i = 0; i < MEWUI_TOOLBAR_BUTTONS; i++)
182   for (int i = 0; i < UI_TOOLBAR_BUTTONS; i++)
183183   {
184184      mre.texture_free(sw_toolbar_texture[i]);
185185      mre.texture_free(toolbar_texture[i]);
r253179r253180
336336   // draw the menu
337337   if (item.size() > 1 && (item[0].flags & MENU_FLAG_MULTILINE) != 0)
338338      draw_text_box();
339   else if ((item[0].flags & MENU_FLAG_MEWUI ) != 0 || (item[0].flags & MENU_FLAG_MEWUI_SWLIST ) != 0)
339   else if ((item[0].flags & MENU_FLAG_UI ) != 0 || (item[0].flags & MENU_FLAG_UI_SWLIST ) != 0)
340340      draw_select_game(flags & UI_MENU_PROCESS_NOINPUT);
341   else if ((item[0].flags & MENU_FLAG_MEWUI_PALETTE ) != 0)
341   else if ((item[0].flags & MENU_FLAG_UI_PALETTE ) != 0)
342342      draw_palette_menu();
343343   else
344344      draw(flags & UI_MENU_PROCESS_CUSTOM_ONLY, flags & UI_MENU_PROCESS_NOIMAGE, flags & UI_MENU_PROCESS_NOINPUT);
r253179r253180
347347   if (!(flags & UI_MENU_PROCESS_NOKEYS) && !(flags & UI_MENU_PROCESS_NOINPUT))
348348   {
349349      // read events
350      if ((item[0].flags & MENU_FLAG_MEWUI ) != 0 || (item[0].flags & MENU_FLAG_MEWUI_SWLIST ) != 0)
350      if ((item[0].flags & MENU_FLAG_UI ) != 0 || (item[0].flags & MENU_FLAG_UI_SWLIST ) != 0)
351351         handle_main_events(flags);
352352      else
353353         handle_events(flags);
r253179r253180
355355      // handle the keys if we don't already have an menu_event
356356      if (menu_event.iptkey == IPT_INVALID)
357357      {
358         if ((item[0].flags & MENU_FLAG_MEWUI ) != 0 || (item[0].flags & MENU_FLAG_MEWUI_SWLIST ) != 0)
358         if ((item[0].flags & MENU_FLAG_UI ) != 0 || (item[0].flags & MENU_FLAG_UI_SWLIST ) != 0)
359359            handle_main_keys(flags);
360360         else
361361            handle_keys(flags);
r253179r253180
463463   int itemnum, linenum;
464464   bool mouse_hit, mouse_button;
465465   float mouse_x = -1, mouse_y = -1;
466   bool history_flag = ((item[0].flags & MENU_FLAG_MEWUI_HISTORY) != 0);
466   bool history_flag = ((item[0].flags & MENU_FLAG_UI_HISTORY) != 0);
467467
468468   if (machine().options().use_background_image() && &machine().system() == &GAME_NAME(___empty) && bgrnd_bitmap->valid() && !noimage)
469469      container->add_quad(0.0f, 0.0f, 1.0f, 1.0f, ARGB_WHITE, bgrnd_texture, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
r253179r253180
575575
576576         // set the hover if this is our item
577577         if (mouse_hit && line_x0 <= mouse_x && line_x1 > mouse_x && line_y0 <= mouse_y && line_y1 > mouse_y && pitem.is_selectable()
578             && (pitem.flags & MENU_FLAG_MEWUI_HISTORY) == 0)
578             && (pitem.flags & MENU_FLAG_UI_HISTORY) == 0)
579579            hover = itemnum;
580580
581581         // if we're selected, draw with a different background
582         if (itemnum == selected && (pitem.flags & MENU_FLAG_MEWUI_HISTORY) == 0)
582         if (itemnum == selected && (pitem.flags & MENU_FLAG_UI_HISTORY) == 0)
583583         {
584584            fgcolor = UI_SELECTED_COLOR;
585585            bgcolor = UI_SELECTED_BG_COLOR;
r253179r253180
588588         }
589589
590590         // else if the mouse is over this item, draw with a different background
591         else if (itemnum == hover && (((pitem.flags & MENU_FLAG_MEWUI_HISTORY) == 0) || (linenum == 0 && top_line != 0)
591         else if (itemnum == hover && (((pitem.flags & MENU_FLAG_UI_HISTORY) == 0) || (linenum == 0 && top_line != 0)
592592                  || (linenum == visible_lines - 1 && itemnum != item.size() - 1)))
593593         {
594594            fgcolor = UI_MOUSEOVER_COLOR;
r253179r253180
634634            container->add_line(visible_left, line_y + 0.5f * line_height, visible_left + visible_width, line_y + 0.5f * line_height, UI_LINE_WIDTH, UI_BORDER_COLOR, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
635635
636636         // draw the subitem left-justified
637         else if (pitem.subtext == nullptr && (pitem.flags & MENU_FLAG_MEWUI_HISTORY) != 0)
637         else if (pitem.subtext == nullptr && (pitem.flags & MENU_FLAG_UI_HISTORY) != 0)
638638            machine().ui().draw_text_full(container, itemtext, effective_left, line_y, effective_width,
639639               JUSTIFY_LEFT, WRAP_TRUNCATE, DRAW_NORMAL, fgcolor, bgcolor, nullptr, nullptr);
640640
r253179r253180
820820{
821821   int stop = FALSE;
822822   ui_event local_menu_event;
823   bool historyflag = ((item[0].flags & MENU_FLAG_MEWUI_HISTORY) != 0);
823   bool historyflag = ((item[0].flags & MENU_FLAG_UI_HISTORY) != 0);
824824
825825   // loop while we have interesting events
826826   while (!stop && machine().ui_input().pop_event(&local_menu_event))
r253179r253180
917917   // bail if no items
918918   if (item.empty())
919919      return;
920   bool historyflag = ((item[0].flags & MENU_FLAG_MEWUI_HISTORY) != 0);
920   bool historyflag = ((item[0].flags & MENU_FLAG_UI_HISTORY) != 0);
921921
922922
923923   // if we hit select, return TRUE or pop the stack, depending on the item
r253179r253180
12571257}
12581258
12591259//-------------------------------------------------
1260//  init - initialize the mewui menu system
1260//  init - initialize the ui menu system
12611261//-------------------------------------------------
12621262
1263void ui_menu::init_mewui(running_machine &machine)
1263void ui_menu::init_ui(running_machine &machine)
12641264{
12651265   render_manager &mrender = machine.render();
12661266   // create a texture for hilighting items in main menu
r253179r253180
13231323      bgrnd_bitmap->reset();
13241324
13251325   // create a texture for toolbar
1326   for (int x = 0; x < MEWUI_TOOLBAR_BUTTONS; ++x)
1326   for (int x = 0; x < UI_TOOLBAR_BUTTONS; ++x)
13271327   {
13281328      toolbar_bitmap[x] = auto_alloc(machine, bitmap_argb32(32, 32));
13291329      toolbar_texture[x] = mrender.texture_alloc();
r253179r253180
13361336   }
13371337
13381338   // create a texture for toolbar
1339   for (int x = 0; x < MEWUI_TOOLBAR_BUTTONS; ++x)
1339   for (int x = 0; x < UI_TOOLBAR_BUTTONS; ++x)
13401340   {
13411341      sw_toolbar_bitmap[x] = auto_alloc(machine, bitmap_argb32(32, 32));
13421342      sw_toolbar_texture[x] = mrender.texture_alloc();
r253179r253180
13671367   float visible_width = 1.0f - 4.0f * UI_BOX_LR_BORDER;
13681368   float primary_left = (1.0f - visible_width) * 0.5f;
13691369   float primary_width = visible_width;
1370   bool is_swlist = ((item[0].flags & MENU_FLAG_MEWUI_SWLIST) != 0);
1371   bool is_favorites = ((item[0].flags & MENU_FLAG_MEWUI_FAVORITE) != 0);
1370   bool is_swlist = ((item[0].flags & MENU_FLAG_UI_SWLIST) != 0);
1371   bool is_favorites = ((item[0].flags & MENU_FLAG_UI_FAVORITE) != 0);
13721372   ui_manager &mui = machine().ui();
13731373
13741374   // draw background image if available
r253179r253180
21392139   bitmap_argb32 **t_bitmap = (software) ? sw_toolbar_bitmap : toolbar_bitmap;
21402140
21412141   int m_valid = 0;
2142   for (int x = 0; x < MEWUI_TOOLBAR_BUTTONS; ++x)
2142   for (int x = 0; x < UI_TOOLBAR_BUTTONS; ++x)
21432143      if (t_bitmap[x]->valid())
21442144         m_valid++;
21452145
r253179r253180
21482148   h_len = (h_len % 2 == 0) ? h_len : h_len - 1;
21492149   x1 = (x1 + x2) * 0.5f - x_pixel * (m_valid * ((h_len / 2) + 2));
21502150
2151   for (int z = 0; z < MEWUI_TOOLBAR_BUTTONS; ++z)
2151   for (int z = 0; z < UI_TOOLBAR_BUTTONS; ++z)
21522152   {
21532153      if (t_bitmap[z]->valid())
21542154      {
r253179r253180
25432543         hover = itemnum;
25442544
25452545      // if we're selected, draw with a different background
2546      if (itemnum == selected && (pitem.flags & MENU_FLAG_MEWUI_HISTORY) == 0)
2546      if (itemnum == selected && (pitem.flags & MENU_FLAG_UI_HISTORY) == 0)
25472547      {
25482548         fgcolor = UI_SELECTED_COLOR;
25492549         bgcolor = UI_SELECTED_BG_COLOR;
25502550      }
25512551
25522552      // else if the mouse is over this item, draw with a different background
2553      else if (itemnum == hover && (pitem.flags & MENU_FLAG_MEWUI_HISTORY) == 0)
2553      else if (itemnum == hover && (pitem.flags & MENU_FLAG_UI_HISTORY) == 0)
25542554      {
25552555         fgcolor = UI_MOUSEOVER_COLOR;
25562556         bgcolor = UI_MOUSEOVER_BG_COLOR;
trunk/src/emu/ui/menu.h
r253179r253180
2727#define MENU_FLAG_MULTILINE         (1 << 3)
2828#define MENU_FLAG_REDTEXT           (1 << 4)
2929#define MENU_FLAG_DISABLE           (1 << 5)
30#define MENU_FLAG_MEWUI             (1 << 6)
31#define MENU_FLAG_MEWUI_HISTORY     (1 << 7)
32#define MENU_FLAG_MEWUI_SWLIST      (1 << 8)
33#define MENU_FLAG_MEWUI_FAVORITE    (1 << 9)
34#define MENU_FLAG_MEWUI_PALETTE     (1 << 10)
30#define MENU_FLAG_UI                (1 << 6)
31#define MENU_FLAG_UI_HISTORY        (1 << 7)
32#define MENU_FLAG_UI_SWLIST         (1 << 8)
33#define MENU_FLAG_UI_FAVORITE       (1 << 9)
34#define MENU_FLAG_UI_PALETTE        (1 << 10)
3535
3636// special menu item for separators
3737#define MENU_SEPARATOR_ITEM         "---"
r253179r253180
191191   static void clear_free_list(running_machine &machine);
192192   static void render_triangle(bitmap_argb32 &dest, bitmap_argb32 &source, const rectangle &sbounds, void *param);
193193
194/*****************************************
195      MEWUI SECTION
196*****************************************/
197194public:
198195   int  visible_items;
199196   bool ui_error;
r253179r253180
217214   void draw_star(float x0, float y0);
218215
219216   // Global initialization
220   static void init_mewui(running_machine &machine);
217   static void init_ui(running_machine &machine);
221218
222219   // get arrows status
223220   template <typename _T1, typename _T2, typename _T3>
trunk/src/emu/ui/moptions.cpp
r253179r253180
44
55    ui/moptions.c
66
7    MEWUI main options manager.
7    UI main options manager.
88
99***************************************************************************/
1010
r253179r253180
1313
1414
1515//**************************************************************************
16//  MEWUI EXTRA OPTIONS
16//  UI EXTRA OPTIONS
1717//**************************************************************************
1818
1919const options_entry ui_options::s_option_entries[] =
2020{
2121   // seach path options
22   { nullptr,                              nullptr,         OPTION_HEADER,  "MEWUI SEARCH PATH OPTIONS" },
22   { nullptr,                              nullptr,         OPTION_HEADER,  "UI SEARCH PATH OPTIONS" },
2323   { OPTION_HISTORY_PATH,               "history;dats",      OPTION_STRING,  "path to history files" },
2424   { OPTION_EXTRAINI_PATH,               "folders",         OPTION_STRING,  "path to extra ini files" },
2525   { OPTION_CABINETS_PATH,               "cabinets;cabdevs",   OPTION_STRING,  "path to cabinets / devices image" },
r253179r253180
3838   { OPTION_HOWTO_PATH,               "howto",         OPTION_STRING,  "path to howto image" },
3939   { OPTION_SELECT_PATH,               "select",         OPTION_STRING,  "path to select image" },
4040   { OPTION_ICONS_PATH,               "icons",         OPTION_STRING,  "path to ICOns image" },
41   { OPTION_MEWUI_PATH,               "mewui",         OPTION_STRING,  "path to MEWUI files" },
41   { OPTION_UI_PATH,                      "ui",             OPTION_STRING,  "path to UI files" },
4242
4343   // misc options
44   { nullptr,                              nullptr,   OPTION_HEADER,      "MEWUI MISC OPTIONS" },
44   { nullptr,                              nullptr,   OPTION_HEADER,      "UI MISC OPTIONS" },
4545   { OPTION_DATS_ENABLED,                  "1",      OPTION_BOOLEAN,      "enable DATs support" },
4646   { OPTION_REMEMBER_LAST,                 "1",      OPTION_BOOLEAN,      "reselect in main menu last played game" },
4747   { OPTION_ENLARGE_SNAPS,                 "1",      OPTION_BOOLEAN,      "enlarge arts (snapshot, title, etc...) in right panel (keeping aspect ratio)" },
r253179r253180
5454   { OPTION_INFO_AUTO_AUDIT,               "0",      OPTION_BOOLEAN,      "enable auto audit in the general info panel" },
5555
5656   // UI options
57   { nullptr,                              nullptr,      OPTION_HEADER,      "MEWUI UI OPTIONS" },
57   { nullptr,                              nullptr,      OPTION_HEADER,      "UI UI OPTIONS" },
5858   { OPTION_INFOS_SIZE "(0.05-1.00)",      "0.75",         OPTION_FLOAT,      "UI right panel infos text size (0.05 - 1.00)" },
5959   { OPTION_FONT_ROWS "(25-40)",           "30",         OPTION_INTEGER,      "UI font text size (25 - 40)" },
6060   { OPTION_HIDE_PANELS "(0-3)",           "0",         OPTION_INTEGER,      "UI hide left/right panel in main view (0 = Show all, 1 = hide left, 2 = hide right, 3 = hide both" },
trunk/src/emu/ui/moptions.h
r253179r253180
44
55    ui/moptions.h
66
7    MEWUI main options manager.
7    UI main options manager.
88
99***************************************************************************/
1010
r253179r253180
3434#define OPTION_HOWTO_PATH             "howto_directory"
3535#define OPTION_SELECT_PATH            "select_directory"
3636#define OPTION_ICONS_PATH             "icons_directory"
37#define OPTION_MEWUI_PATH             "mewui_path"
37#define OPTION_UI_PATH                "ui_path"
3838
3939// core misc options
4040#define OPTION_DATS_ENABLED           "dats_enabled"
r253179r253180
9595   const char *howto_directory() const { return value(OPTION_HOWTO_PATH); }
9696   const char *select_directory() const { return value(OPTION_SELECT_PATH); }
9797   const char *icons_directory() const { return value(OPTION_ICONS_PATH); }
98   const char *mewui_path() const { return value(OPTION_MEWUI_PATH); }
98   const char *ui_path() const { return value(OPTION_UI_PATH); }
9999
100100   // Misc options
101101   bool enabled_dats() const { return bool_value(OPTION_DATS_ENABLED); }
trunk/src/emu/ui/optsmenu.cpp
r253179r253180
44
55    ui/optsmenu.cpp
66
7    MEWUI main options menu manager.
7    UI main options menu manager.
88
99*********************************************************************/
1010
trunk/src/emu/ui/optsmenu.h
r253179r253180
44
55    ui/optsmenu.h
66
7    MEWUI main options menu manager.
7    UI main options menu manager.
88
99***************************************************************************/
1010
trunk/src/emu/ui/selgame.cpp
r253179r253180
44
55    ui/selgame.cpp
66
7    Main MEWUI menu.
7    Main UI menu.
88
99*********************************************************************/
1010
r253179r253180
3232#include "softlist.h"
3333#include <algorithm>
3434
35extern const char MEWUI_VERSION_TAG[];
35extern const char UI_VERSION_TAG[];
3636
3737static bool first_start = true;
3838static const char *dats_info[] = { "General Info", "History", "Mameinfo", "Sysinfo", "Messinfo", "Command", "Mamescore" };
r253179r253180
170170   moptions.set_value(OPTION_SOFTWARENAME, "", OPTION_PRIORITY_CMDLINE, error_string);
171171
172172   ui_globals::curimage_view = FIRST_VIEW;
173   ui_globals::curdats_view = MEWUI_FIRST_LOAD;
173   ui_globals::curdats_view = UI_FIRST_LOAD;
174174   ui_globals::switch_image = false;
175175   ui_globals::default_image = true;
176176   ui_globals::panels_status = moptions.hide_panels();
r253179r253180
269269         }
270270
271271         // Infos
272         else if (ui_globals::rpanel == RP_INFOS && ui_globals::curdats_view > MEWUI_FIRST_LOAD)
272         else if (ui_globals::rpanel == RP_INFOS && ui_globals::curdats_view > UI_FIRST_LOAD)
273273         {
274274            ui_globals::curdats_view--;
275275            topline_datsview = 0;
r253179r253180
288288         }
289289
290290         // Infos
291         else if (ui_globals::rpanel == RP_INFOS && ui_globals::curdats_view < MEWUI_LAST_LOAD)
291         else if (ui_globals::rpanel == RP_INFOS && ui_globals::curdats_view < UI_LAST_LOAD)
292292         {
293293            ui_globals::curdats_view++;
294294            topline_datsview = 0;
r253179r253180
331331         {
332332            const game_driver *driver = (const game_driver *)m_event->itemref;
333333            if ((FPTR)driver > 2)
334               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_HISTORY_LOAD, driver));
334               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_HISTORY_LOAD, driver));
335335         }
336336         else
337337         {
r253179r253180
339339            if ((FPTR)swinfo > 2)
340340            {
341341               if (swinfo->startempty == 1)
342                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_HISTORY_LOAD, swinfo->driver));
342                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_HISTORY_LOAD, swinfo->driver));
343343               else
344344                  ui_menu::stack_push(global_alloc_clear<ui_menu_history_sw>(machine(), container, swinfo));
345345            }
r253179r253180
355355            if ((FPTR)driver > 2)
356356            {
357357               if ((driver->flags & MACHINE_TYPE_ARCADE) != 0)
358                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MAMEINFO_LOAD, driver));
358                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MAMEINFO_LOAD, driver));
359359               else
360                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MESSINFO_LOAD, driver));
360                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MESSINFO_LOAD, driver));
361361            }
362362         }
363363         else
r253179r253180
366366            if ((FPTR)swinfo > 2 && swinfo->startempty == 1)
367367            {
368368               if ((swinfo->driver->flags & MACHINE_TYPE_ARCADE) != 0)
369                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MAMEINFO_LOAD, swinfo->driver));
369                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MAMEINFO_LOAD, swinfo->driver));
370370               else
371                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_MESSINFO_LOAD, swinfo->driver));
371                  ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_MESSINFO_LOAD, swinfo->driver));
372372            }
373373         }
374374      }
r253179r253180
380380         {
381381            const game_driver *driver = (const game_driver *)m_event->itemref;
382382            if ((FPTR)driver > 2)
383               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_STORY_LOAD, driver));
383               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_STORY_LOAD, driver));
384384         }
385385         else
386386         {
387387            ui_software_info *swinfo  = (ui_software_info *)m_event->itemref;
388388            if ((FPTR)swinfo > 2 && swinfo->startempty == 1)
389               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_STORY_LOAD, swinfo->driver));
389               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_STORY_LOAD, swinfo->driver));
390390         }
391391      }
392392
r253179r253180
397397         {
398398            const game_driver *driver = (const game_driver *)m_event->itemref;
399399            if ((FPTR)driver > 2)
400               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_SYSINFO_LOAD, driver));
400               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_SYSINFO_LOAD, driver));
401401         }
402402         else
403403         {
404404            ui_software_info *swinfo  = (ui_software_info *)m_event->itemref;
405405            if ((FPTR)swinfo > 2 && swinfo->startempty == 1)
406               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, MEWUI_SYSINFO_LOAD, swinfo->driver));
406               ui_menu::stack_push(global_alloc_clear<ui_menu_dats>(machine(), container, UI_SYSINFO_LOAD, swinfo->driver));
407407         }
408408      }
409409
r253179r253180
597597         // iterate over entries
598598         for (size_t curitem = 0; curitem < m_displaylist.size(); ++curitem)
599599         {
600            UINT32 flags_mewui = MENU_FLAG_MEWUI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
600            UINT32 flags_ui = MENU_FLAG_UI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
601601
602602            if (old_item_selected == -1 && !reselect_last::driver.empty() && m_displaylist[curitem]->name == reselect_last::driver)
603603               old_item_selected = curitem;
r253179r253180
610610                  cloneof = false;
611611            }
612612            if (cloneof)
613               flags_mewui |= MENU_FLAG_INVERT;
613               flags_ui |= MENU_FLAG_INVERT;
614614
615            item_append(m_displaylist[curitem]->description, nullptr, flags_mewui, (void *)m_displaylist[curitem]);
615            item_append(m_displaylist[curitem]->description, nullptr, flags_ui, (void *)m_displaylist[curitem]);
616616         }
617617      }
618618   }
r253179r253180
624624      // iterate over entries
625625      for (auto & mfavorite : machine().favorite().m_list)
626626      {
627         UINT32 flags_mewui = MENU_FLAG_MEWUI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW | MENU_FLAG_MEWUI_FAVORITE;
627         UINT32 flags_ui = MENU_FLAG_UI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW | MENU_FLAG_UI_FAVORITE;
628628         if (mfavorite.startempty == 1)
629629         {
630630            if (old_item_selected == -1 && !reselect_last::driver.empty() && mfavorite.shortname == reselect_last::driver)
r253179r253180
638638                  cloneof = false;
639639            }
640640            if (cloneof)
641               flags_mewui |= MENU_FLAG_INVERT;
641               flags_ui |= MENU_FLAG_INVERT;
642642
643            item_append(mfavorite.longname.c_str(), nullptr, flags_mewui, (void *)&mfavorite);
643            item_append(mfavorite.longname.c_str(), nullptr, flags_ui, (void *)&mfavorite);
644644         }
645645         else
646646         {
647647            if (old_item_selected == -1 && !reselect_last::driver.empty() && mfavorite.shortname == reselect_last::driver)
648648               old_item_selected = curitem;
649649            item_append(mfavorite.longname.c_str(), mfavorite.devicetype.c_str(),
650               mfavorite.parentname.empty() ? flags_mewui : (MENU_FLAG_INVERT | flags_mewui), (void *)&mfavorite);
650               mfavorite.parentname.empty() ? flags_ui : (MENU_FLAG_INVERT | flags_ui), (void *)&mfavorite);
651651         }
652652         curitem++;
653653      }
654654   }
655655
656656   // add special items
657   item_append(MENU_SEPARATOR_ITEM, nullptr, MENU_FLAG_MEWUI, nullptr);
658   item_append("Configure Options", nullptr, MENU_FLAG_MEWUI, (void *)(FPTR)1);
659   item_append("Configure Directories", nullptr, MENU_FLAG_MEWUI, (void *)(FPTR)2);
657   item_append(MENU_SEPARATOR_ITEM, nullptr, MENU_FLAG_UI, nullptr);
658   item_append("Configure Options", nullptr, MENU_FLAG_UI, (void *)(FPTR)1);
659   item_append("Configure Directories", nullptr, MENU_FLAG_UI, (void *)(FPTR)2);
660660
661661   // configure the custom rendering
662662   customtop = 3.0f * machine().ui().get_line_height() + 5.0f * UI_BOX_TB_BORDER;
r253179r253180
10241024
10251025         std::vector<s_bios> biosname;
10261026         if (!machine().options().skip_bios_menu() && has_multiple_bios(driver, biosname))
1027            ui_menu::stack_push(global_alloc_clear<ui_mewui_bios_selection>(machine(), container, biosname, (void *)driver, false, false));
1027            ui_menu::stack_push(global_alloc_clear<ui_bios_selection>(machine(), container, biosname, (void *)driver, false, false));
10281028         else
10291029         {
10301030            reselect_last::driver = driver->name;
r253179r253180
10741074      {
10751075         std::vector<s_bios> biosname;
10761076         if (!mopt.skip_bios_menu() && has_multiple_bios(ui_swinfo->driver, biosname))
1077            ui_menu::stack_push(global_alloc_clear<ui_mewui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo->driver, false, false));
1077            ui_menu::stack_push(global_alloc_clear<ui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo->driver, false, false));
10781078         else
10791079         {
10801080            reselect_last::driver = ui_swinfo->driver->name;
r253179r253180
11081108         std::vector<s_bios> biosname;
11091109         if (!mopt.skip_bios_menu() && has_multiple_bios(ui_swinfo->driver, biosname))
11101110         {
1111            ui_menu::stack_push(global_alloc_clear<ui_mewui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo, true, false));
1111            ui_menu::stack_push(global_alloc_clear<ui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo, true, false));
11121112            return;
11131113         }
11141114         else if (!mopt.skip_parts_menu() && swinfo->has_multiple_parts(ui_swinfo->interface.c_str()))
r253179r253180
11241124                  parts.emplace(swpart->name(), menu_part_name);
11251125               }
11261126            }
1127            ui_menu::stack_push(global_alloc_clear<ui_mewui_software_parts>(machine(), container, parts, ui_swinfo));
1127            ui_menu::stack_push(global_alloc_clear<ui_software_parts>(machine(), container, parts, ui_swinfo));
11281128            return;
11291129         }
11301130
r253179r253180
14711471   }
14721472
14731473   (index < VISIBLE_GAMES_IN_SEARCH) ? m_searchlist[index] = nullptr : m_searchlist[VISIBLE_GAMES_IN_SEARCH] = nullptr;
1474   UINT32 flags_mewui = MENU_FLAG_MEWUI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
1474   UINT32 flags_ui = MENU_FLAG_UI | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
14751475   for (int curitem = 0; m_searchlist[curitem]; ++curitem)
14761476   {
14771477      bool cloneof = strcmp(m_searchlist[curitem]->parent, "0");
r253179r253180
14811481         if (cx != -1 && ((driver_list::driver(cx).flags & MACHINE_IS_BIOS_ROOT) != 0))
14821482            cloneof = false;
14831483      }
1484      item_append(m_searchlist[curitem]->description, nullptr, (!cloneof) ? flags_mewui : (MENU_FLAG_INVERT | flags_mewui),
1484      item_append(m_searchlist[curitem]->description, nullptr, (!cloneof) ? flags_ui : (MENU_FLAG_INVERT | flags_ui),
14851485         (void *)m_searchlist[curitem]);
14861486   }
14871487}
r253179r253180
15691569void ui_menu_select_game::inkey_export()
15701570{
15711571   std::string filename("exported");
1572   emu_file infile(machine().options().mewui_path(), OPEN_FLAG_READ);
1572   emu_file infile(machine().options().ui_path(), OPEN_FLAG_READ);
15731573   if (infile.open(filename.c_str(), ".xml") == FILERR_NONE)
15741574      for (int seq = 0; ; ++seq)
15751575      {
r253179r253180
15831583      }
15841584
15851585   // attempt to open the output file
1586   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
1586   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
15871587   if (file.open(filename.c_str(), ".xml") == FILERR_NONE)
15881588   {
15891589      FILE *pfile;
r253179r253180
16141614      info_xml_creator creator(drivlist);
16151615      creator.output(pfile, false);
16161616      fclose(pfile);
1617      machine().popmessage("%s.xml saved under mewui folder.", filename.c_str());
1617      machine().popmessage("%s.xml saved under ui folder.", filename.c_str());
16181618   }
16191619}
16201620
r253179r253180
16251625void ui_menu_select_game::save_cache_info()
16261626{
16271627   // attempt to open the output file
1628   emu_file file(machine().options().mewui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
1628   emu_file file(machine().options().ui_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS);
16291629
16301630   if (file.open("info_", emulator_info::get_configname(), ".ini") == FILERR_NONE)
16311631   {
16321632      m_sortedlist.clear();
16331633
16341634      // generate header
1635      std::string buffer = std::string("#\n").append(MEWUI_VERSION_TAG).append(bare_build_version).append("\n#\n\n");
1635      std::string buffer = std::string("#\n").append(UI_VERSION_TAG).append(bare_build_version).append("\n#\n\n");
16361636
16371637      // generate full list
16381638      for (int x = 0; x < driver_list::total(); ++x)
r253179r253180
17161716   driver_cache.resize(driver_list::total() + 1);
17171717
17181718   // try to load driver cache
1719   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
1719   emu_file file(machine().options().ui_path(), OPEN_FLAG_READ);
17201720   if (file.open("info_", emulator_info::get_configname(), ".ini") != FILERR_NONE)
17211721   {
17221722      save_cache_info();
r253179r253180
17281728   file.gets(rbuf, MAX_CHAR_INFO);
17291729   file.gets(rbuf, MAX_CHAR_INFO);
17301730   readbuf = chartrimcarriage(rbuf);
1731   std::string a_rev = std::string(MEWUI_VERSION_TAG).append(bare_build_version);
1731   std::string a_rev = std::string(UI_VERSION_TAG).append(bare_build_version);
17321732
17331733   // version not matching ? save and exit
17341734   if (a_rev != readbuf)
r253179r253180
17881788bool ui_menu_select_game::load_available_machines()
17891789{
17901790   // try to load available drivers from file
1791   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
1791   emu_file file(machine().options().ui_path(), OPEN_FLAG_READ);
17921792   if (file.open(emulator_info::get_configname(), "_avail.ini") != FILERR_NONE)
17931793      return false;
17941794
r253179r253180
17971797   file.gets(rbuf, MAX_CHAR_INFO);
17981798   file.gets(rbuf, MAX_CHAR_INFO);
17991799   readbuf = chartrimcarriage(rbuf);
1800   std::string a_rev = std::string(MEWUI_VERSION_TAG).append(bare_build_version);
1800   std::string a_rev = std::string(UI_VERSION_TAG).append(bare_build_version);
18011801
18021802   // version not matching ? exit
18031803   if (a_rev != readbuf)
r253179r253180
18401840void ui_menu_select_game::load_custom_filters()
18411841{
18421842   // attempt to open the output file
1843   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
1843   emu_file file(machine().options().ui_path(), OPEN_FLAG_READ);
18441844   if (file.open("custom_", emulator_info::get_configname(), "_filter.ini") == FILERR_NONE)
18451845   {
18461846      char buffer[MAX_CHAR_INFO];
r253179r253180
20692069   float text_size = machine().options().infos_size();
20702070   const game_driver *driver = nullptr;
20712071   ui_software_info *soft = nullptr;
2072   bool is_favorites = ((item[0].flags & MENU_FLAG_MEWUI_FAVORITE) != 0);
2072   bool is_favorites = ((item[0].flags & MENU_FLAG_UI_FAVORITE) != 0);
20732073   static ui_software_info *oldsoft = nullptr;
20742074   static const game_driver *olddriver = nullptr;
20752075   static int oldview = -1;
r253179r253180
20992099      float oy1 = origy1 + line_height;
21002100
21012101      // MAMESCORE? Full size text
2102      if (ui_globals::curdats_view == MEWUI_STORY_LOAD)
2102      if (ui_globals::curdats_view == UI_STORY_LOAD)
21032103         text_size = 1.0f;
21042104
21052105      std::string snaptext(dats_info[ui_globals::curdats_view]);
r253179r253180
21082108      float title_size = 0.0f;
21092109      float txt_lenght = 0.0f;
21102110
2111      for (int x = MEWUI_FIRST_LOAD; x < MEWUI_LAST_LOAD; ++x)
2111      for (int x = UI_FIRST_LOAD; x < UI_LAST_LOAD; ++x)
21122112      {
21132113         mui.draw_text_full(container, dats_info[x], origx1, origy1, origx2 - origx1, JUSTIFY_CENTER,
21142114            WRAP_TRUNCATE, DRAW_NONE, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, &txt_lenght, nullptr);
r253179r253180
21192119      mui.draw_text_full(container, snaptext.c_str(), origx1, origy1, origx2 - origx1, JUSTIFY_CENTER,
21202120         WRAP_TRUNCATE, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr);
21212121
2122      draw_common_arrow(origx1, origy1, origx2, origy2, ui_globals::curdats_view, MEWUI_FIRST_LOAD, MEWUI_LAST_LOAD, title_size);
2122      draw_common_arrow(origx1, origy1, origx2, origy2, ui_globals::curdats_view, UI_FIRST_LOAD, UI_LAST_LOAD, title_size);
21232123
21242124      if (driver != olddriver || ui_globals::curdats_view != oldview)
21252125      {
r253179r253180
21302130         totallines = 0;
21312131         std::vector<std::string> m_item;
21322132
2133         if (ui_globals::curdats_view == MEWUI_GENERAL_LOAD)
2133         if (ui_globals::curdats_view == UI_GENERAL_LOAD)
21342134            general_info(driver, buffer);
2135         else if (ui_globals::curdats_view != MEWUI_COMMAND_LOAD)
2135         else if (ui_globals::curdats_view != UI_COMMAND_LOAD)
21362136            machine().datfile().load_data_info(driver, buffer, ui_globals::curdats_view);
21372137         else
21382138            machine().datfile().command_sub_menu(driver, m_item);
21392139
2140         if (!m_item.empty() && ui_globals::curdats_view == MEWUI_COMMAND_LOAD)
2140         if (!m_item.empty() && ui_globals::curdats_view == UI_COMMAND_LOAD)
21412141         {
21422142            for (size_t x = 0; x < m_item.size(); ++x)
21432143            {
r253179r253180
21572157            WRAP_WORD, DRAW_NORMAL, UI_TEXT_COLOR, UI_TEXT_BG_COLOR, nullptr, nullptr);
21582158         return;
21592159      }
2160      else if (ui_globals::curdats_view != MEWUI_STORY_LOAD && ui_globals::curdats_view != MEWUI_COMMAND_LOAD)
2160      else if (ui_globals::curdats_view != UI_STORY_LOAD && ui_globals::curdats_view != UI_COMMAND_LOAD)
21612161         mui.wrap_text(container, buffer.c_str(), origx1, origy1, origx2 - origx1 - (2.0f * gutter_width), totallines, xstart, xend, text_size);
21622162      else
21632163         mui.wrap_text(container, buffer.c_str(), 0.0f, 0.0f, 1.0f - (2.0f * gutter_width), totallines, xstart, xend, text_size);
r253179r253180
21832183         else if (r == r_visible_lines - 1 && itemline != totallines - 1)
21842184            info_arrow(1, origx1, origx2, oy1, line_height, text_size, ud_arrow_width);
21852185         // special case for mamescore
2186         else if (ui_globals::curdats_view == MEWUI_STORY_LOAD)
2186         else if (ui_globals::curdats_view == UI_STORY_LOAD)
21872187         {
21882188            // check size
21892189            float textlen = mui.get_string_width_ex(tempbuf.c_str(), text_size);
r253179r253180
22132213         }
22142214
22152215         // special case for command
2216         else if (ui_globals::curdats_view == MEWUI_COMMAND_LOAD || ui_globals::curdats_view == MEWUI_GENERAL_LOAD)
2216         else if (ui_globals::curdats_view == UI_COMMAND_LOAD || ui_globals::curdats_view == UI_GENERAL_LOAD)
22172217         {
22182218            // check size
22192219            float textlen = mui.get_string_width_ex(tempbuf.c_str(), text_size);
22202220            float tmp_size = (textlen > sc) ? text_size * (sc / textlen) : text_size;
22212221
2222            int first_dspace = (ui_globals::curdats_view == MEWUI_COMMAND_LOAD) ? tempbuf.find("  ") : tempbuf.find(":");
2222            int first_dspace = (ui_globals::curdats_view == UI_COMMAND_LOAD) ? tempbuf.find("  ") : tempbuf.find(":");
22232223            if (first_dspace > 0)
22242224            {
22252225               float effective_width = origx2 - origx1 - gutter_width;
r253179r253180
22902290         if (ui_globals::cur_sw_dats_view == 0)
22912291         {
22922292            if (soft->startempty == 1)
2293               machine().datfile().load_data_info(soft->driver, buffer, MEWUI_HISTORY_LOAD);
2293               machine().datfile().load_data_info(soft->driver, buffer, UI_HISTORY_LOAD);
22942294            else
22952295               machine().datfile().load_software_info(soft->listname, buffer, soft->shortname, soft->parentname);
22962296         }
r253179r253180
23852385{
23862386   ui_manager &mui = machine().ui();
23872387   float line_height = mui.get_line_height();
2388   bool is_favorites = ((item[0].flags & MENU_FLAG_MEWUI_FAVORITE) != 0);
2388   bool is_favorites = ((item[0].flags & MENU_FLAG_UI_FAVORITE) != 0);
23892389   static ui_software_info *oldsoft = nullptr;
23902390   static const game_driver *olddriver = nullptr;
23912391   const game_driver *driver = nullptr;
trunk/src/emu/ui/selgame.h
r253179r253180
44
55    ui/selgame.h
66
7    Main MEWUI menu.
7    Main UI menu.
88
99***************************************************************************/
1010
trunk/src/emu/ui/selsoft.cpp
r253179r253180
44
55    ui/selsoft.cpp
66
7    MEWUI softwares menu.
7    UI softwares menu.
88
99***************************************************************************/
1010
r253179r253180
134134
135135   ui_globals::curimage_view = SNAPSHOT_VIEW;
136136   ui_globals::switch_image = true;
137   ui_globals::cur_sw_dats_view = MEWUI_FIRST_LOAD;
137   ui_globals::cur_sw_dats_view = UI_FIRST_LOAD;
138138
139139   std::string error_string;
140140   machine.options().set_value(OPTION_SOFTWARENAME, "", OPTION_PRIORITY_CMDLINE, error_string);
r253179r253180
222222      }
223223
224224      // handle UI_UP_FILTER
225      else if (m_event->iptkey == IPT_UI_UP_FILTER && sw_filters::actual > MEWUI_SW_FIRST)
225      else if (m_event->iptkey == IPT_UI_UP_FILTER && sw_filters::actual > UI_SW_FIRST)
226226      {
227227         l_sw_hover = sw_filters::actual - 1;
228228         check_filter = true;
229229      }
230230
231231      // handle UI_DOWN_FILTER
232      else if (m_event->iptkey == IPT_UI_DOWN_FILTER && sw_filters::actual < MEWUI_SW_LAST)
232      else if (m_event->iptkey == IPT_UI_DOWN_FILTER && sw_filters::actual < UI_SW_LAST)
233233      {
234234         l_sw_hover = sw_filters::actual + 1;
235235         check_filter = true;
r253179r253180
289289         check_filter = true;
290290
291291      // handle UI_UP_FILTER
292      else if (m_event->iptkey == IPT_UI_UP_FILTER && sw_filters::actual > MEWUI_SW_FIRST)
292      else if (m_event->iptkey == IPT_UI_UP_FILTER && sw_filters::actual > UI_SW_FIRST)
293293      {
294294         l_sw_hover = sw_filters::actual - 1;
295295         check_filter = true;
296296      }
297297
298298      // handle UI_DOWN_FILTER
299      else if (m_event->iptkey == IPT_UI_DOWN_FILTER && sw_filters::actual < MEWUI_SW_LAST)
299      else if (m_event->iptkey == IPT_UI_DOWN_FILTER && sw_filters::actual < UI_SW_LAST)
300300      {
301301         l_sw_hover = sw_filters::actual + 1;
302302         check_filter = true;
r253179r253180
317317
318318      switch (l_sw_hover)
319319      {
320         case MEWUI_SW_REGION:
320         case UI_SW_REGION:
321321            ui_menu::stack_push(global_alloc_clear<ui_menu_selector>(machine(), container, m_filter.region.ui,
322322               m_filter.region.actual, SELECTOR_SOFTWARE, l_sw_hover));
323323            break;
324         case MEWUI_SW_YEARS:
324         case UI_SW_YEARS:
325325            ui_menu::stack_push(global_alloc_clear<ui_menu_selector>(machine(), container, m_filter.year.ui,
326326               m_filter.year.actual, SELECTOR_SOFTWARE, l_sw_hover));
327327            break;
328         case MEWUI_SW_LIST:
328         case UI_SW_LIST:
329329            ui_menu::stack_push(global_alloc_clear<ui_menu_selector>(machine(), container, m_filter.swlist.description,
330330               m_filter.swlist.actual, SELECTOR_SOFTWARE, l_sw_hover));
331331            break;
332         case MEWUI_SW_TYPE:
332         case UI_SW_TYPE:
333333            ui_menu::stack_push(global_alloc_clear<ui_menu_selector>(machine(), container, m_filter.type.ui,
334334               m_filter.type.actual, SELECTOR_SOFTWARE, l_sw_hover));
335335            break;
336         case MEWUI_SW_PUBLISHERS:
336         case UI_SW_PUBLISHERS:
337337            ui_menu::stack_push(global_alloc_clear<ui_menu_selector>(machine(), container, m_filter.publisher.ui,
338338               m_filter.publisher.actual, SELECTOR_SOFTWARE, l_sw_hover));
339339            break;
340         case MEWUI_SW_CUSTOM:
340         case UI_SW_CUSTOM:
341341            sw_filters::actual = l_sw_hover;
342342            ui_menu::stack_push(global_alloc_clear<ui_menu_swcustom_filter>(machine(), container, m_driver, m_filter));
343343            break;
r253179r253180
355355
356356void ui_menu_select_software::populate()
357357{
358   UINT32 flags_mewui = MENU_FLAG_MEWUI_SWLIST | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
358   UINT32 flags_ui = MENU_FLAG_UI_SWLIST | MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW;
359359   m_has_empty_start = true;
360360   int old_software = -1;
361361
r253179r253180
374374   {
375375      // if the device can be loaded empty, add an item
376376      if (m_has_empty_start)
377         item_append("[Start empty]", nullptr, flags_mewui, (void *)&m_swinfo[0]);
377         item_append("[Start empty]", nullptr, flags_ui, (void *)&m_swinfo[0]);
378378
379379      m_displaylist.clear();
380380      m_tmp.clear();
381381
382382      switch (sw_filters::actual)
383383      {
384         case MEWUI_SW_PUBLISHERS:
384         case UI_SW_PUBLISHERS:
385385            build_list(m_tmp, m_filter.publisher.ui[m_filter.publisher.actual].c_str());
386386            break;
387387
388         case MEWUI_SW_LIST:
388         case UI_SW_LIST:
389389            build_list(m_tmp, m_filter.swlist.name[m_filter.swlist.actual].c_str());
390390            break;
391391
392         case MEWUI_SW_YEARS:
392         case UI_SW_YEARS:
393393            build_list(m_tmp, m_filter.year.ui[m_filter.year.actual].c_str());
394394            break;
395395
396         case MEWUI_SW_TYPE:
396         case UI_SW_TYPE:
397397            build_list(m_tmp, m_filter.type.ui[m_filter.type.actual].c_str());
398398            break;
399399
400         case MEWUI_SW_REGION:
400         case UI_SW_REGION:
401401            build_list(m_tmp, m_filter.region.ui[m_filter.region.actual].c_str());
402402            break;
403403
404         case MEWUI_SW_CUSTOM:
404         case UI_SW_CUSTOM:
405405            build_custom();
406406            break;
407407
r253179r253180
421421            old_software = m_has_empty_start ? curitem + 1 : curitem;
422422
423423         item_append(m_displaylist[curitem]->longname.c_str(), m_displaylist[curitem]->devicetype.c_str(),
424                     m_displaylist[curitem]->parentname.empty() ? flags_mewui : (MENU_FLAG_INVERT | flags_mewui), (void *)m_displaylist[curitem]);
424                     m_displaylist[curitem]->parentname.empty() ? flags_ui : (MENU_FLAG_INVERT | flags_ui), (void *)m_displaylist[curitem]);
425425      }
426426   }
427427
r253179r253180
431431
432432      for (int curitem = 0; m_searchlist[curitem] != nullptr; ++curitem)
433433         item_append(m_searchlist[curitem]->longname.c_str(), m_searchlist[curitem]->devicetype.c_str(),
434                     m_searchlist[curitem]->parentname.empty() ? flags_mewui : (MENU_FLAG_INVERT | flags_mewui),
434                     m_searchlist[curitem]->parentname.empty() ? flags_ui : (MENU_FLAG_INVERT | flags_ui),
435435                     (void *)m_searchlist[curitem]);
436436   }
437437
438   item_append(MENU_SEPARATOR_ITEM, nullptr, flags_mewui, nullptr);
438   item_append(MENU_SEPARATOR_ITEM, nullptr, flags_ui, nullptr);
439439
440440   // configure the custom rendering
441441   customtop = 4.0f * machine().ui().get_line_height() + 5.0f * UI_BOX_TB_BORDER;
r253179r253180
614614   strprintf(tempbuf[0], "MAME %s ( %d / %d softwares )", bare_build_version, vis_item, (int)m_swinfo.size() - 1);
615615   tempbuf[1].assign("Driver: \"").append(m_driver->description).append("\" software list ");
616616
617   if (sw_filters::actual == MEWUI_SW_REGION && m_filter.region.ui.size() != 0)
617   if (sw_filters::actual == UI_SW_REGION && m_filter.region.ui.size() != 0)
618618      filtered.assign("Region: ").append(m_filter.region.ui[m_filter.region.actual]).append(" - ");
619   else if (sw_filters::actual == MEWUI_SW_PUBLISHERS)
619   else if (sw_filters::actual == UI_SW_PUBLISHERS)
620620      filtered.assign("Publisher: ").append(m_filter.publisher.ui[m_filter.publisher.actual]).append(" - ");
621   else if (sw_filters::actual == MEWUI_SW_YEARS)
621   else if (sw_filters::actual == UI_SW_YEARS)
622622      filtered.assign("Year: ").append(m_filter.year.ui[m_filter.year.actual]).append(" - ");
623   else if (sw_filters::actual == MEWUI_SW_LIST)
623   else if (sw_filters::actual == UI_SW_LIST)
624624      filtered.assign("Software List: ").append(m_filter.swlist.description[m_filter.swlist.actual]).append(" - ");
625   else if (sw_filters::actual == MEWUI_SW_TYPE)
625   else if (sw_filters::actual == UI_SW_TYPE)
626626      filtered.assign("Device type: ").append(m_filter.type.ui[m_filter.type.actual]).append(" - ");
627627
628628   tempbuf[2].assign(filtered).append("Search: ").append(m_search).append("_");
r253179r253180
823823   {
824824      std::vector<s_bios> biosname;
825825      if (has_multiple_bios(ui_swinfo->driver, biosname) && !mopt.skip_bios_menu())
826         ui_menu::stack_push(global_alloc_clear<ui_mewui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo->driver, false, true));
826         ui_menu::stack_push(global_alloc_clear<ui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo->driver, false, true));
827827      else
828828      {
829829         reselect_last::driver = ui_swinfo->driver->name;
r253179r253180
852852         std::vector<s_bios> biosname;
853853         if (!mopt.skip_bios_menu() && has_multiple_bios(ui_swinfo->driver, biosname))
854854         {
855            ui_menu::stack_push(global_alloc_clear<ui_mewui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo, true, false));
855            ui_menu::stack_push(global_alloc_clear<ui_bios_selection>(machine(), container, biosname, (void *)ui_swinfo, true, false));
856856            return;
857857         }
858858         else if (!mopt.skip_parts_menu() && swinfo->has_multiple_parts(ui_swinfo->interface.c_str()))
r253179r253180
868868                  parts.emplace(swpart->name(), menu_part_name);
869869               }
870870            }
871            ui_menu::stack_push(global_alloc_clear<ui_mewui_software_parts>(machine(), container, parts, ui_swinfo));
871            ui_menu::stack_push(global_alloc_clear<ui_software_parts>(machine(), container, parts, ui_swinfo));
872872            return;
873873         }
874874         std::string error_string;
r253179r253180
925925void ui_menu_select_software::load_sw_custom_filters()
926926{
927927   // attempt to open the output file
928   emu_file file(machine().options().mewui_path(), OPEN_FLAG_READ);
928   emu_file file(machine().options().ui_path(), OPEN_FLAG_READ);
929929   if (file.open("custom_", m_driver->name, "_filter.ini") == FILERR_NONE)
930930   {
931931      char buffer[MAX_CHAR_INFO];
r253179r253180
955955            if (!strncmp(cb, sw_filters::text[y], strlen(sw_filters::text[y])))
956956            {
957957               sw_custfltr::other[x] = y;
958               if (y == MEWUI_SW_PUBLISHERS)
958               if (y == UI_SW_PUBLISHERS)
959959               {
960960                  file.gets(buffer, MAX_CHAR_INFO);
961961                  char *ab = strchr(buffer, '=') + 2;
r253179r253180
963963                     if (!strncmp(ab, m_filter.publisher.ui[z].c_str(), m_filter.publisher.ui[z].length()))
964964                        sw_custfltr::mnfct[x] = z;
965965               }
966               else if (y == MEWUI_SW_YEARS)
966               else if (y == UI_SW_YEARS)
967967               {
968968                  file.gets(buffer, MAX_CHAR_INFO);
969969                  char *db = strchr(buffer, '=') + 2;
r253179r253180
971971                     if (!strncmp(db, m_filter.year.ui[z].c_str(), m_filter.year.ui[z].length()))
972972                        sw_custfltr::year[x] = z;
973973               }
974               else if (y == MEWUI_SW_LIST)
974               else if (y == UI_SW_LIST)
975975               {
976976                  file.gets(buffer, MAX_CHAR_INFO);
977977                  char *gb = strchr(buffer, '=') + 2;
r253179r253180
979979                     if (!strncmp(gb, m_filter.swlist.name[z].c_str(), m_filter.swlist.name[z].length()))
980980                        sw_custfltr::list[x] = z;
981981               }
982               else if (y == MEWUI_SW_TYPE)
982               else if (y == UI_SW_TYPE)
983983               {
984984                  file.gets(buffer, MAX_CHAR_INFO);
985985                  char *fb = strchr(buffer, '=') + 2;
r253179r253180
987987                     if (!strncmp(fb, m_filter.type.ui[z].c_str(), m_filter.type.ui[z].length()))
988988                        sw_custfltr::type[x] = z;
989989               }
990               else if (y == MEWUI_SW_REGION)
990               else if (y == UI_SW_REGION)
991991               {
992992                  file.gets(buffer, MAX_CHAR_INFO);
993993                  char *eb = strchr(buffer, '=') + 2;
r253179r253180
10971097   {
10981098      switch (filter)
10991099      {
1100         case MEWUI_SW_PARENTS:
1100         case UI_SW_PARENTS:
11011101            if (s_driver->parentname.empty())
11021102               m_displaylist.push_back(s_driver);
11031103            break;
11041104
1105         case MEWUI_SW_CLONES:
1105         case UI_SW_CLONES:
11061106            if (!s_driver->parentname.empty())
11071107               m_displaylist.push_back(s_driver);
11081108            break;
11091109
1110         case MEWUI_SW_AVAILABLE:
1110         case UI_SW_AVAILABLE:
11111111            if (s_driver->available)
11121112               m_displaylist.push_back(s_driver);
11131113               break;
11141114
1115         case MEWUI_SW_UNAVAILABLE:
1115         case UI_SW_UNAVAILABLE:
11161116            if (!s_driver->available)
11171117               m_displaylist.push_back(s_driver);
11181118               break;
11191119
1120         case MEWUI_SW_SUPPORTED:
1120         case UI_SW_SUPPORTED:
11211121            if (s_driver->supported == SOFTWARE_SUPPORTED_YES)
11221122               m_displaylist.push_back(s_driver);
11231123            break;
11241124
1125         case MEWUI_SW_PARTIAL_SUPPORTED:
1125         case UI_SW_PARTIAL_SUPPORTED:
11261126            if (s_driver->supported == SOFTWARE_SUPPORTED_PARTIAL)
11271127               m_displaylist.push_back(s_driver);
11281128            break;
11291129
1130         case MEWUI_SW_UNSUPPORTED:
1130         case UI_SW_UNSUPPORTED:
11311131            if (s_driver->supported == SOFTWARE_SUPPORTED_NO)
11321132               m_displaylist.push_back(s_driver);
11331133            break;
11341134
1135         case MEWUI_SW_REGION:
1135         case UI_SW_REGION:
11361136         {
11371137            std::string name = m_filter.region.getname(s_driver->longname);
11381138
r253179r253180
11411141            break;
11421142         }
11431143
1144         case MEWUI_SW_PUBLISHERS:
1144         case UI_SW_PUBLISHERS:
11451145         {
11461146            std::string name = m_filter.publisher.getname(s_driver->publisher);
11471147
r253179r253180
11501150            break;
11511151         }
11521152
1153         case MEWUI_SW_YEARS:
1153         case UI_SW_YEARS:
11541154            if(s_driver->year == filter_text)
11551155               m_displaylist.push_back(s_driver);
11561156            break;
11571157
1158         case MEWUI_SW_LIST:
1158         case UI_SW_LIST:
11591159            if(s_driver->listname == filter_text)
11601160               m_displaylist.push_back(s_driver);
11611161            break;
11621162
1163         case MEWUI_SW_TYPE:
1163         case UI_SW_TYPE:
11641164            if(s_driver->devicetype == filter_text)
11651165               m_displaylist.push_back(s_driver);
11661166            break;
r253179r253180
12281228
12291229      switch (filter)
12301230      {
1231         case MEWUI_SW_YEARS:
1231         case UI_SW_YEARS:
12321232            build_list(s_drivers, m_filter.year.ui[sw_custfltr::year[count]].c_str(), filter);
12331233            break;
1234         case MEWUI_SW_LIST:
1234         case UI_SW_LIST:
12351235            build_list(s_drivers, m_filter.swlist.name[sw_custfltr::list[count]].c_str(), filter);
12361236            break;
1237         case MEWUI_SW_TYPE:
1237         case UI_SW_TYPE:
12381238            build_list(s_drivers, m_filter.type.ui[sw_custfltr::type[count]].c_str(), filter);
12391239            break;
1240         case MEWUI_SW_PUBLISHERS:
1240         case UI_SW_PUBLISHERS:
12411241            build_list(s_drivers, m_filter.publisher.ui[sw_custfltr::mnfct[count]].c_str(), filter);
12421242            break;
1243         case MEWUI_SW_REGION:
1243         case UI_SW_REGION:
12441244            build_list(s_drivers, m_filter.region.ui[sw_custfltr::region[count]].c_str(), filter);
12451245            break;
12461246         default:
r253179r253180
13261326            container->add_rect(x1, y1, x2, y1 + line_height, bgcolor, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_TEXWRAP(TRUE));
13271327
13281328         float x1t = x1 + text_sign;
1329         if (afilter == MEWUI_SW_CUSTOM)
1329         if (afilter == UI_SW_CUSTOM)
13301330         {
13311331            if (filter == sw_custfltr::main)
13321332            {
r253179r253180
14641464      if (ui_globals::cur_sw_dats_view == 0)
14651465      {
14661466         if (soft->startempty == 1)
1467            machine().datfile().load_data_info(soft->driver, buffer, MEWUI_HISTORY_LOAD);
1467            machine().datfile().load_data_info(soft->driver, buffer, UI_HISTORY_LOAD);
14681468         else
14691469            machine().datfile().load_software_info(soft->listname, buffer, soft->shortname, soft->parentname);
14701470      }
r253179r253180
17461746//  ctor
17471747//-------------------------------------------------
17481748
1749ui_mewui_software_parts::ui_mewui_software_parts(running_machine &machine, render_container *container, std::unordered_map<std::string, std::string> parts, ui_software_info *ui_info) : ui_menu(machine, container)
1749ui_software_parts::ui_software_parts(running_machine &machine, render_container *container, std::unordered_map<std::string, std::string> parts, ui_software_info *ui_info) : ui_menu(machine, container)
17501750{
17511751   m_parts = parts;
17521752   m_uiinfo = ui_info;
r253179r253180
17561756//  dtor
17571757//-------------------------------------------------
17581758
1759ui_mewui_software_parts::~ui_mewui_software_parts()
1759ui_software_parts::~ui_software_parts()
17601760{
17611761}
17621762
r253179r253180
17641764//  populate
17651765//-------------------------------------------------
17661766
1767void ui_mewui_software_parts::populate()
1767void ui_software_parts::populate()
17681768{
17691769   for (auto & elem : m_parts)
17701770      item_append(elem.first.c_str(), elem.second.c_str(), 0, (void *)&elem);
r253179r253180
17771777//  handle
17781778//-------------------------------------------------
17791779
1780void ui_mewui_software_parts::handle()
1780void ui_software_parts::handle()
17811781{
17821782   // process the menu
17831783   const ui_menu_event *event = process(0);
r253179r253180
18071807//  perform our special rendering
18081808//-------------------------------------------------
18091809
1810void ui_mewui_software_parts::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
1810void ui_software_parts::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
18111811{
18121812   float width;
18131813   ui_manager &mui = machine().ui();
r253179r253180
18391839//  ctor
18401840//-------------------------------------------------
18411841
1842ui_mewui_bios_selection::ui_mewui_bios_selection(running_machine &machine, render_container *container, std::vector<s_bios> biosname, void *_driver, bool _software, bool _inlist) : ui_menu(machine, container)
1842ui_bios_selection::ui_bios_selection(running_machine &machine, render_container *container, std::vector<s_bios> biosname, void *_driver, bool _software, bool _inlist) : ui_menu(machine, container)
18431843{
18441844   m_bios = biosname;
18451845   m_driver = _driver;
r253179r253180
18511851//  dtor
18521852//-------------------------------------------------
18531853
1854ui_mewui_bios_selection::~ui_mewui_bios_selection()
1854ui_bios_selection::~ui_bios_selection()
18551855{
18561856}
18571857
r253179r253180
18591859//  populate
18601860//-------------------------------------------------
18611861
1862void ui_mewui_bios_selection::populate()
1862void ui_bios_selection::populate()
18631863{
18641864   for (auto & elem : m_bios)
18651865      item_append(elem.name.c_str(), nullptr, 0, (void *)&elem.name);
r253179r253180
18721872//  handle
18731873//-------------------------------------------------
18741874
1875void ui_mewui_bios_selection::handle()
1875void ui_bios_selection::handle()
18761876{
18771877   // process the menu
18781878   const ui_menu_event *event = process(0);
r253179r253180
19221922                        parts.emplace(swpart->name(), menu_part_name);
19231923                     }
19241924                  }
1925                  ui_menu::stack_push(global_alloc_clear<ui_mewui_software_parts>(machine(), container, parts, ui_swinfo));
1925                  ui_menu::stack_push(global_alloc_clear<ui_software_parts>(machine(), container, parts, ui_swinfo));
19261926                  return;
19271927               }
19281928               std::string error_string;
r253179r253180
19451945//  perform our special rendering
19461946//-------------------------------------------------
19471947
1948void ui_mewui_bios_selection::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
1948void ui_bios_selection::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2)
19491949{
19501950   float width;
19511951   ui_manager &mui = machine().ui();
trunk/src/emu/ui/selsoft.h
r253179r253180
44
55    ui/selsoft.h
66
7    MEWUI softwares menu.
7    UI softwares menu.
88
99***************************************************************************/
1010#pragma once
r253179r253180
6464   void inkey_special(const ui_menu_event *menu_event);
6565};
6666
67class ui_mewui_software_parts : public ui_menu
67class ui_software_parts : public ui_menu
6868{
6969public:
70   ui_mewui_software_parts(running_machine &machine, render_container *container, std::unordered_map<std::string, std::string> parts, ui_software_info *ui_info);
71   virtual ~ui_mewui_software_parts();
70   ui_software_parts(running_machine &machine, render_container *container, std::unordered_map<std::string, std::string> parts, ui_software_info *ui_info);
71   virtual ~ui_software_parts();
7272   virtual void populate() override;
7373   virtual void handle() override;
7474   virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
r253179r253180
7878   std::unordered_map<std::string, std::string> m_parts;
7979};
8080
81class ui_mewui_bios_selection : public ui_menu
81class ui_bios_selection : public ui_menu
8282{
8383public:
84   ui_mewui_bios_selection(running_machine &machine, render_container *container, std::vector<s_bios> biosname, void *driver, bool software, bool inlist);
85   virtual ~ui_mewui_bios_selection();
84   ui_bios_selection(running_machine &machine, render_container *container, std::vector<s_bios> biosname, void *driver, bool software, bool inlist);
85   virtual ~ui_bios_selection();
8686   virtual void populate() override;
8787   virtual void handle() override;
8888   virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
trunk/src/emu/ui/toolbar.h
r253179r253180
247247}
248248};
249249
250#define MEWUI_TOOLBAR_BUTTONS    ARRAY_LENGTH(toolbar_bitmap_bmp)
250#define UI_TOOLBAR_BUTTONS    ARRAY_LENGTH(toolbar_bitmap_bmp)
trunk/src/emu/ui/ui.cpp
r253179r253180
25632563   assert(error.empty());
25642564}
25652565
2566/**********************************************
2567 * MEWUI
2568 *********************************************/
2566//-------------------------------------------------
2567//  wrap_text
2568//-------------------------------------------------
2569
25692570void ui_manager::wrap_text(render_container *container, const char *origs, float x, float y, float origwrapwidth, int &count, std::vector<int> &xstart, std::vector<int> &xend, float text_size)
25702571{
25712572   float lineheight = get_line_height() * text_size;
trunk/src/emu/ui/ui.h
r253179r253180
168168    // other
169169    void process_natural_keyboard();
170170
171   // MEWUI word wrap
171   // word wrap
172172    void wrap_text(render_container *container, const char *origs, float x, float y, float origwrapwidth, int &totallines, std::vector<int> &xstart, std::vector<int> &xend, float text_size = 1.0f);
173173
174174    // draw an outlined box with given line color and filled with a texture
trunk/src/emu/ui/utils.cpp
r253179r253180
1212#include "ui/utils.h"
1313#include <algorithm>
1414
15extern const char MEWUI_VERSION_TAG[];
16const char MEWUI_VERSION_TAG[] = "# UI INFO ";
15extern const char UI_VERSION_TAG[];
16const char UI_VERSION_TAG[] = "# UI INFO ";
1717
1818// Years index
1919UINT16 c_year::actual = 0;
trunk/src/emu/ui/utils.h
r253179r253180
9595
9696enum
9797{
98   MEWUI_FIRST_LOAD = 0,
99   MEWUI_GENERAL_LOAD = MEWUI_FIRST_LOAD,
100   MEWUI_HISTORY_LOAD,
101   MEWUI_MAMEINFO_LOAD,
102   MEWUI_SYSINFO_LOAD,
103   MEWUI_MESSINFO_LOAD,
104   MEWUI_COMMAND_LOAD,
105   MEWUI_STORY_LOAD,
106   MEWUI_LAST_LOAD = MEWUI_STORY_LOAD
98   UI_FIRST_LOAD = 0,
99   UI_GENERAL_LOAD = UI_FIRST_LOAD,
100   UI_HISTORY_LOAD,
101   UI_MAMEINFO_LOAD,
102   UI_SYSINFO_LOAD,
103   UI_MESSINFO_LOAD,
104   UI_COMMAND_LOAD,
105   UI_STORY_LOAD,
106   UI_LAST_LOAD = UI_STORY_LOAD
107107};
108108
109109enum
110110{
111   MEWUI_SW_FIRST = 0,
112   MEWUI_SW_ALL = MEWUI_SW_FIRST,
113   MEWUI_SW_AVAILABLE,
114   MEWUI_SW_UNAVAILABLE,
115   MEWUI_SW_PARENTS,
116   MEWUI_SW_CLONES,
117   MEWUI_SW_YEARS,
118   MEWUI_SW_PUBLISHERS,
119   MEWUI_SW_SUPPORTED,
120   MEWUI_SW_PARTIAL_SUPPORTED,
121   MEWUI_SW_UNSUPPORTED,
122   MEWUI_SW_REGION,
123   MEWUI_SW_TYPE,
124   MEWUI_SW_LIST,
125   MEWUI_SW_CUSTOM,
126   MEWUI_SW_LAST = MEWUI_SW_CUSTOM
111   UI_SW_FIRST = 0,
112   UI_SW_ALL = UI_SW_FIRST,
113   UI_SW_AVAILABLE,
114   UI_SW_UNAVAILABLE,
115   UI_SW_PARENTS,
116   UI_SW_CLONES,
117   UI_SW_YEARS,
118   UI_SW_PUBLISHERS,
119   UI_SW_SUPPORTED,
120   UI_SW_PARTIAL_SUPPORTED,
121   UI_SW_UNSUPPORTED,
122   UI_SW_REGION,
123   UI_SW_TYPE,
124   UI_SW_LIST,
125   UI_SW_CUSTOM,
126   UI_SW_LAST = UI_SW_CUSTOM
127127};
128128
129129enum
r253179r253180
146146   HOVER_FILTER_FIRST,
147147   HOVER_FILTER_LAST = (HOVER_FILTER_FIRST) + 1 + FILTER_LAST,
148148   HOVER_SW_FILTER_FIRST,
149   HOVER_SW_FILTER_LAST = (HOVER_SW_FILTER_FIRST) + 1 + MEWUI_SW_LAST,
149   HOVER_SW_FILTER_LAST = (HOVER_SW_FILTER_FIRST) + 1 + UI_SW_LAST,
150150   HOVER_RP_FIRST,
151151   HOVER_RP_LAST = (HOVER_RP_FIRST) + 1 + RP_LAST
152152};


Previous 199869 Revisions Next


© 1997-2024 The MAME Team