268 Commits

Author SHA1 Message Date
Vincent-FK
7950bffc2e correct bugs in battery update and draw process
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:24 +01:00
Vincent-FK
290d160677 BUG correction: battery charge is not displayed after exiting game
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:12 +01:00
Vincent-FK
5b51c7de41 render scrolling text only if necessary
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:26:00 +01:00
Vincent-FK
ebc035c869 set scrolling only if needed in reloadable scrolling texts
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:25:47 +01:00
Vincent-FK
cfb2dbd880 correct 2 bugs in scrolling text: not displayed if waitEndTime<=0 and reset current position to 0 correctly
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:25:00 +01:00
Vincent-FK
7ee88a1bc9 remove hidden files from listing
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:24:38 +01:00
Vincent-FK
e7e4be0d11 do not display battery untils values are ready
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:24:19 +01:00
Vincent-FK
260178ef44 BUG correction: tests for disabling or not dithering was also disabling cache for scaling, so scaling was recomputed at every frame
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:50 +01:00
Vincent-FK
2530514e55 remove dithering for test
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:46 +01:00
Vincent-FK
3576503dc3 add sierra lite dithering 32bpp or 24bpp to 16bpp for all images, reloadable media or scrolling list if requested by field dithering in xml
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:38 +01:00
Vincent-FK
69e0a51dd2 clean up the code and add onNewItemSelected when exiting game
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:25 +01:00
Vincent-FK
785449ec2a declare battery files in settings
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:23:15 +01:00
Vincent-FK
994e9afb1b check battery component values in files, add icons for no bat and bat charging
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:22:27 +01:00
Vincent-FK
b03b6c266c use static for percentage and other parameters in battery component
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:22:00 +01:00
Vincent-FK
b19c27656f add battery component, BUG correction: mustRender in page was rewritten at each component
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:21:44 +01:00
Vincent-FK
b15e0874da horizontal scolling text now goes forward and backwards
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:21:44 +01:00
Vincent-FK
72fda25983 stop horizontal scollable text after the end of text and not after the whole texts disappears off the screen
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:21:13 +01:00
Vincent-FK
8e777aba46 full "any component following menu" scroll working
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:56 +01:00
Vincent-FK
ee3c2dd67f reorder component update in reloadable screen update
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:49 +01:00
Vincent-FK
fe18b0329f add new tween tye yshitmenudirection, new event onMenuFastScroll, handing of reloadable medias following menus so that we can create lists following any menu
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:32 +01:00
Vincent-FK
37e0a0a31d relloadableScrollingText now centered with xOrigin and yOrigin, spaces in reloadableScrollingText, reloadableScrollingText now has the power to force screen renderings
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:32 +01:00
Vincent-FK
909b7a4dbd add cache prescaling images
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:25 +01:00
Vincent-FK
870255f628 add nearest neighbor resizing in render function
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:20:11 +01:00
Vincent-FK
5bb70b02eb BUG correction: text not cleared on deallocation, better state printing in state machine
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 23:18:52 +01:00
Vincent-FK
ea42f62418 back to normal blit, for this you need to use the funkey SDL library which has the corect alpha per-pixel alpha blending
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:12 +01:00
Vincent-FK
d23cf74c1d convert to SDL 1.2
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
2020-11-15 21:07:04 +01:00
Pieter Hulshoff
aaa1eb05d9 Added truRIP superdat and directory structure support. 2020-11-15 15:54:58 +01:00
Pieter Hulshoff
38e88c44d7 Added onMenuJumpEnter/Exit animation REPLACING onHighlightEnter/Exit
animation for next/previous letter/page and for random selection; basically
a jump within the same scrolling list menu. Layouts should be updated
accordingly.
2020-11-15 15:54:58 +01:00
Pieter Hulshoff
57c465cef3 Added onPlaylistEnter/Exit animations REPLACING the onHighlightEnter/Exit
animations that used to be triggered. Layouts should be updated accordingly!
2020-11-15 15:54:57 +01:00
Pieter Hulshoff
1680c8467d Fixed sorting for playlists other than favorites. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
1659a3d067 Changed lack of SDL audio from error to warning.
Additional updates for the menu structure; still WIP.
2020-11-15 15:54:57 +01:00
Pieter Hulshoff
20cb652bf1 Fixed Windows compile error. 2020-11-15 15:54:57 +01:00
Pieter Hulshoff
da45a04ae8 Fixed certain menu related graphics loading issues.
Partly implemented menu structure; getting bugs fixed took priority.
2018-04-01 21:42:31 +02:00
Pieter Hulshoff
aedd7e67fa - Added support for monitor aspect ratio selection in the layout.xml:
e.g. layout 4x3.xml, layout 16x9.xml, etc.
- Added controls configuration at startup when controls.conf is missing.
2018-02-11 15:00:07 +01:00
Pieter Hulshoff
aafa2e1009 Fixed support for default.png in the common mode for reloadable media. 2017-12-06 11:40:10 +01:00
Pieter Hulshoff
430480cdb4 Added menuScrollReload attribute for reloadable items to allow reloading of
the art/text while scrolling through the menu. Beta release, since this
functionality is mostly untested at this time.
2017-09-29 18:43:35 +02:00
Pieter Hulshoff
eca598ec8d Fixed menuIndex !, >, and < for menuIndex other than 0. 2017-09-08 11:33:12 +02:00
Pieter Hulshoff
c90b8990df Fixed playing of select sound; it was not tested for completion before
launching the game.
2017-08-09 11:21:31 +02:00
Pieter Hulshoff
ea6d5ad51a Fixed info conf file support for reloadableMedia. 2017-07-05 08:57:46 +02:00
Pieter Hulshoff
bbbaa425d9 Fixed CR/LF mix in header files. 2017-06-30 14:51:47 +02:00
Pieter Hulshoff
6f41300b56 Added the ability to add additional information via the
collections/<collection name>/info/<item name>.conf files. This files work
like all configuration files. The global configuration overwriteXML can be
used to give the values in this file preference over those in the meta XML.
This can also be used for ReloadableMedia as well as ReloadableText items.
2017-06-30 16:37:11 +02:00
Pieter Hulshoff
a22bd1c6a1 Fonts only need to be reloaded when launching a game with unloadSDL = true.
Reloading it every time the graphics are reallocated has a huge performance
impact.
2017-06-30 12:57:20 +02:00
Pieter Hulshoff
a7f50c9b03 Cleaned up the scrolling list code. 2017-06-30 11:41:25 +02:00
Pieter Hulshoff
05f26e9d06 Added onMenuIdle animation type, which will continuously be activated while
the menu isn't scrolling.
2017-06-21 15:52:48 +02:00
Pieter Hulshoff
f6ba968925 Updated code to allow proper emulator launching on RetroPie.
Note that this is WIP, and more changes will be added, especially in the
scripting area.
2017-06-21 11:05:09 +02:00
Pieter Hulshoff
126f88b4ce Fixed highlight sound effect when using multiple menus. 2017-06-07 16:37:59 +02:00
Pieter Hulshoff
cd98016449 Added support for menuIndex attribute for menus. This will allow multiple
menus to reside at the same menuIndex, effectively showing multiple menus at
the same time. The direction for the keys is taken from the first menu
definition at each level.
2017-05-24 20:24:10 +02:00
Pieter Hulshoff
d30158ea67 Added automatic copying of last menu setup for higher level menus.
Added support for <, >, and ! to the menuIndex parameter.
Added support for i to the menuIndex parameter of menu items.
This will allow for easier support for multi-level layouts, e.g.

Rather than defining an animation for menuIndex 1, 2, 3, 4, ... you can use !0 or >0

Rather than defining the same menu for menuIndex 1, 2, 3, 4, ... with animations for that specific menuIndex you can create a single menu and set the menuIndex for the animations to i.
2017-05-21 09:57:19 +02:00
Pieter Hulshoff
60356f0c48 Added onGameEnter and onGameExit animation triggers. 2017-05-17 21:48:19 +02:00
Pieter Hulshoff
3e6f67f0c8 Added meta field support to reloadableScrollingText. 2017-05-10 10:56:01 +02:00