summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend
Commit message (Collapse)AuthorAgeFilesLines
* Typo fixlua_engine_ui_refactor_2 npwoods2019-07-051-1/+1
|
* Changing LUA code to get mame_ui_manager by dynamic cast rather than npwoods2019-07-012-8/+30
| | | | | | | | | | | | | | | | | | | | mame_machine_manager::instance()->ui() Dynamic casts are never one's first choice, but this is superior to grabbing a global singleton. Upon merging more worker_ui changes, it will be possible for machine().ui() to be an implementation of ui_manager distinct from mame_ui_manager, so this code is being changed to gracefully handle this scenario. Plus, global singletons like mame_machine_manager::instance are just plain ugly. Lastly, I would like someone familiar with the LUA integration to look at this, not just for correctness, but to validate my approach of keeping LUA's mame_machine_manager::ui() equivalent returning the mame_ui_manager while changing how it is implemented. Even if getting rid of mame_machine_manager::ui() is the right way to go, there is an argument to be made that we should change the LUA integration even if it breaks compatibility with existing scripts (though obviously I did not take that approach).
* Refactored UI font metrics (#5291) npwoods2019-06-3027-240/+249
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Changed the various usages of UI_*COLOR to be calls to src/frontend/mame/ui/moptions.h The various UI_*COLOR macros were implemented as calls to decode_ui_color, which cached the values for the various options in a static array, which was obviously a gross hack. This refactoring is strategic because I am trying to confine awareness of mame_ui_manager to code in src/frontend/mame/ui, and the implementation of decode_ui_color() relied on the ability to access mame_ui_manager as a singleton from outside this code. * Created a ui_colors object, so that queries for UI RGB values would not always require parsing strings * Replaced UI_TARGET_FONT_[ROWS|HEIGHT] and UI_BOX_[LR|TD]_BORDER macros with property calls These macros were implemented with a call to a function (get_font_rows()) that opportunistically stashed the results of option accesses in static variables; in other words, a gross hack Because get_font_rows() attempted to access mame_ui_manager as a singleton, it was an obstactle to providing an alternative implementation of ui_manager * Remove stray debugging cruft that found a way into the other PR
* Changed the various usages of UI_*COLOR to be calls to ↵ npwoods2019-06-2826-242/+276
| | | | | | | | | | | | | | | | | | | | | | | src/frontend/mame/ui/moptions.h (#5282) * Changed the various usages of UI_*COLOR to be calls to src/frontend/mame/ui/moptions.h The various UI_*COLOR macros were implemented as calls to decode_ui_color, which cached the values for the various options in a static array, which was obviously a gross hack. This refactoring is strategic because I am trying to confine awareness of mame_ui_manager to code in src/frontend/mame/ui, and the implementation of decode_ui_color() relied on the ability to access mame_ui_manager as a singleton from outside this code. * Created a ui_colors object, so that queries for UI RGB values would not always require parsing strings * Converted a few more options().zyx_color() to colors().zyx_color() * A few more misses from earlier
* srcclean (nw) Vas Crabb2019-06-231-3/+3
|
* Adding a -version command line argument to get the current build version npwoods2019-06-222-1/+16
|
* srcclean (nw) Vas Crabb2019-05-261-1/+1
|
* inputmap.cpp: Further cleanup (nw) AJR2019-05-241-2/+0
|
* inputmap: fix gcc compile(unused variable) (nw) hap2019-05-241-12/+0
|
* Improve sorting of items for machine input menu. Inputs of the same type are ↵ AJR2019-05-242-53/+76
| | | | sorted by name, and keyboard keys are sorted by their assigned character codes (if any).
* ui/menu.cpp: Provide more helpers (nw) AJR2019-05-224-24/+71
|
* ui/menu.cpp: Privatize a few variables (nw) AJR2019-05-2211-227/+225
|
* viewgfx.cpp : Allow palette alpha value viewable (#5073) cam9002019-05-181-1/+1
|
* luaengine: make machine_flags fields of game_driver rather than a new table feos2019-05-131-48/+42
|
* luaengine: add machine_flags library feos2019-05-121-1/+71
|
* explain emu.register_callback(callback, name), add emu.step() feos2019-05-091-1/+6
|
* luaengine comments: add missing info: feos2019-05-091-20/+26
| | | | | | | | | | | | emu.thread() machine:popmessage() watch/breakpoints debugger presence note val for write functions input:seq_poll* fix typo in memory_share library emu.register_callback(callback, name) still TODO
* improve luaengine comments (fixes and updates) feos2019-05-081-104/+381
|
* Fix compile warning under Emscripten (nw) Justin Kerk2019-03-311-1/+1
| | | | | | case value evaluates to 2147483654, which cannot be narrowed to type 'intptr_t' (aka 'long') [-Wc++11-narrowing] This partially reverts d199ec2657e011ff6ca8e5cb0c43fd3f304a292e but the warning is correct, the value does not fit.
* (nw) Clean up the mess on master Vas Crabb2019-03-2634-1820/+3250
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-2534-3250/+1820
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* update UI and XML output for additional emulation status flags Vas Crabb2019-03-173-29/+78
|
* Fix crash when exiting directly while filter UI is active (GitHub #4596) Vas Crabb2019-02-041-1/+10
|
* srcclean and cleanup (nw) Vas Crabb2019-01-272-5/+8
|
* -selgame: Fixed compilation on MSVC 2017, nw MooglyGuy2019-01-201-8/+10
|
* Fix "undefined symbols" linking error (nw) AJR2019-01-191-0/+2
|
* Make search apply to the filtered list in system/software selection menus, ↵ Vas Crabb2019-01-193-114/+143
| | | | and cache stuff used for searching in software selection menu
* restore functionality of the "Add to Favorites" item on the main ↵ Vas Crabb2019-01-191-12/+73
| | | | in-emulation menu
* see if Tea-CI likes this better (nw) Vas Crabb2019-01-192-6/+6
|
* More UI stuff: Vas Crabb2019-01-1914-521/+1323
| | | | | | | | | * Split up the different parts of ICO loading in the menus (locating files, scaling, drawing, etc.) * Added icon support to software selection menu * Added support for more ICO file variants, including PNG-in-ICO (new DIB parser is overkill for ICO but I can factor it out for BMP loading at some point) * Added favourites filter for software menus - includes software that's favourited on any system, so GBC includes DMG favourties and vice versa * Eliminated unnecessary member variables and O(n) walks in software selection menu * Made the menus' cached texture structures a bit more efficient
* UI cleanup continues: Vas Crabb2019-01-1520-1006/+1312
| | | | | | | | | * Fix crash on builds with fewer than 16 drivers * Fix "available" filter in internal UI * Get rid of some UI globals that shouldn't be global * Better encapsulation in UI * Clean up favourites manager - in particular kill hidden state and O(n) walks * This breaks adding systems/software to favourites from the main tab menu
* Make search not suck as badly (use algorithm derived from Jaro-Winkler ↵ Vas Crabb2019-01-1410-234/+417
| | | | similarity to match search strings, match on more useful stuff)
* apply -verbose after processing command-line options and after first pass ↵ Vas Crabb2019-01-124-29/+35
| | | | over .ini files (nw)
* fix MSVC (llvm toolset) compile (nw) Peter Ferrie2019-01-061-1/+1
| | | | | | - conditionally uninitialised variables in PortAudio; - floats passed to attotime; - unsigned->signed enums (this one is technically still wrong)
* (nw) one shouldn't copy/paste spelling errors; also clean up some comments Vas Crabb2019-01-041-10/+10
|
* Make informational verbs a bit more consistent, reduce copy/pasted code, a ↵ Vas Crabb2019-01-043-217/+195
| | | | slight performance improvement for reading localisation files, and more documentation clean-up/correction/clarification
* ui/inputmap.cpp: Eliminate qsort (nw) AJR2018-12-282-22/+7
|
* ui/pluginopt: pass ui cancel to lua (nw) cracyc2018-12-211-0/+3
|
* Attempted fix for MT 07049 (nw) AJR2018-11-251-3/+3
|
* Spelling corrections (nw) AJR2018-11-251-1/+1
|
* clifront.cpp: 'a brief list of options' is a lie, make it more truthful. mooglyguy2018-11-121-3/+3
|
* Replace ATTOSECONDS_TO_HZ with as_hz where appropriate (nw) AJR2018-11-053-4/+4
|
* luaengine: fix clang build (nw) cracyc2018-11-051-1/+1
|
* luaengine: add pixels (nw) cracyc2018-11-041-0/+11
|
* Improved screen:pixel description, nw mooglyguy2018-11-041-1/+1
|
* luaengine: Added pixel(x,y) function. [Ryan Holtz] mooglyguy2018-11-041-2/+7
|
* luaengine: background color for draw_text (nw) cracyc2018-11-031-6/+7
|
* luaengine: make render.targets table a property to match the doc (nw) cracyc2018-10-311-2/+2
| | | | Any users of that need to change :targets()[ to .targets[
* luaengine: fix typo (nw) cracyc2018-10-311-1/+1
|
* actually use offset argument in item:read_block(offset, count) feos2018-10-311-4/+4
| | | | improve comment wording