80 Commits

Author SHA1 Message Date
Pieter Hulshoff
603c34fb2f Added support for lastplayed playlist via the parameter lastplayedSize. 2019-04-20 00:23:12 +02:00
Pieter Hulshoff
ab95151515 Changed letterSub parameter to cfwLetterSub to indicate it's a CFW specific feature. Also changed its behavior to only skip subs when you're in a sub collection itself, and skip letter otherwise. 2019-04-15 12:26:49 +02:00
Pieter Hulshoff
18e268d111 Added letterSub option to skip to the next sub collection in stead of the next letter. 2019-04-09 23:03:24 +02:00
Pieter Hulshoff
aad60b455f 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.
2018-06-23 16:04:48 +02:00
Pieter Hulshoff
d4a3115067 Added onPlaylistEnter/Exit animations REPLACING the onHighlightEnter/Exit
animations that used to be triggered. Layouts should be updated accordingly!
2018-05-26 08:18:53 +02:00
Pieter Hulshoff
85b766b7bf Fixed sorting for playlists other than favorites. 2018-05-22 22:08:42 +02:00
Pieter Hulshoff
026e82e97f Changed lack of SDL audio from error to warning.
Additional updates for the menu structure; still WIP.
2018-04-08 09:51:31 +02:00
Pieter Hulshoff
df27c07175 Fixed Windows compile error. 2018-04-01 22:01:00 +02: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
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
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
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
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
7b3016bacf Removed recent change since it caused havoc with themes in progress. If this
causes a memory leak issue it should be solved elsewhere.
2017-02-04 17:51:43 +01:00
Levi Pearson
0ce28a46a2 Misc cleanups; memory leaks, use-after-free, use of uninitialized data
There are still a bunch of tiny leaks related to the animation Tween data that
I haven't figured out how to resolve, but it runs more cleanly now.
2017-01-28 22:32:17 -07:00
Pieter Hulshoff
0918d9fb96 Added playlist support via the following keys:
favPlaylist: switch between all games and favorites playlist
nextPlaylist: switch to the next playlist (that contains games)
prevPlaylist: switch to the previous playlist (that contains games)
The playlists should be placed as <playlist name>.txt in the
collections/<collection name>/playlists directory.
2017-01-07 13:57:35 +01:00
Pieter Hulshoff
6f68195258 Rewritten menu scrolling methodology. 2017-01-01 15:15:11 +01:00
Pieter Hulshoff
9d9ed51c58 Improved menu scrolling. It's difficult to find a balance between smooth
scrolling and art loading times.
2016-12-21 10:23:26 +01:00
Pieter Hulshoff
304154a4c4 Added favorites playlist support for menus and merged/sub collections.
Improved sorting algorithm for playlists. The order now follows the order of the complete lis
t.
Added favorites playlist display to Aeon Nox theme.
Added favorites common artwork.
Added reloadableMedia support for playlist display.
2016-09-16 09:45:22 +02:00
Pieter Hulshoff
f5c7808c80 Allow menus of level n to finish the onMenuEnter animation at level n-1. This allows themes to e.g. fade out a collection menu during the onMenuEnter animation sequence of the Main collection. 2016-08-31 08:55:37 +02:00
Pieter Hulshoff
5abfe6d205 Added onMenuScroll animation, which activates once every time the menu starts scrolling. 2016-08-11 15:31:13 +02:00
Pieter Hulshoff
7472891663 Fixed playing of select sound when starting a game. 2016-07-24 09:18:31 +02:00
Pieter Hulshoff
c4c85fa9e8 Allow onHighlight animations to be interrupted by key presses. This should remove the "lag" people have been experiencing when scrolling through the menu. 2016-07-22 14:01:25 +02:00
Pieter Hulshoff
efe9e323cc Added support for a <video> tag. This tag works similar to the <image> tag, but has an additional numLoops attribute to indicate the number of times the video should be looped. The default value is numLoops="1", and you can use numLoops="0" for infinite looping. 2016-06-26 14:02:25 +02:00
Pieter Hulshoff
ed07075360 Reload menu items when a game is removed from the favourites list. Resort the list(s) when a game is added or removed from the favourites list. 2016-06-25 11:42:36 +02:00
Pieter Hulshoff
5bc67f72fb Fixed layer animations for non-menu items. 2016-06-24 11:00:29 +02:00
Pieter Hulshoff
3e0b866ff5 Reduced page loading time by reducing the number of calls to
allocateSpritPoints.
2016-06-14 21:41:17 +02:00
Pieter Hulshoff
12aadc729e Added support to allow all menus to be animated in stead of just the active
menu.  WARNING: this will probably require menu animations to be updated
with a menuIndex attribute for old themes to continue functioning correctly.
2016-06-12 09:51:56 +02:00
Pieter Hulshoff
2a4b650c64 Cleaned up the animation code, and fixed several animation bugs. 2016-06-11 08:54:44 +02:00
Pieter Hulshoff
0c2b2e56f2 Added support for onEnter/onExit to the scrolling lists. 2016-06-10 18:30:14 +02:00
Pieter Hulshoff
0ed34b0688 Pushing a collection should not trigger a menuEnter event for the scrolling
list. These events should be handled separately.
2016-06-10 15:46:02 +02:00
Pieter Hulshoff
208fa0c23b Fixed remembering last selected game and playlist. 2016-06-10 13:31:39 +02:00
Pieter Hulshoff
a55fd84d58 Added animation types maxWidth, maxHeight, and nop (no-operation; do
nothing).
Fixed onHighlightEnter and onHighlightExit animations, which were not
started at all.
2016-06-10 12:10:36 +02:00
Pieter Hulshoff
537322f9c0 Added support for layouts per collection. When switching collections,
RetroFE will look for layout.xml and corresponding art in the
collections/<collection name>/layout/ subdirectory of your chosen layout,
and load that layout if it is available.
2016-06-10 08:58:41 +02:00
Pieter Hulshoff
935a02dfd9 Removed playing of unload sound when switching game/collection selection. 2016-06-07 22:06:03 +02:00
Pieter Hulshoff
9da55a844e Rewrote the animation activation functions and state machines to
remove/reduce the glitch behaviour.
WARNING: This will disable workarounds that have been used in the themes so
far; many if not all themes will need to be changed to work properly!
2016-06-05 09:32:48 +02:00
Pieter Hulshoff
4e2cc30cc0 Added layer check when drawing components.
Increased maximum number of layers to 20.
2016-05-11 13:37:48 +02:00
Pieter Hulshoff
5bd357c78a Do not switch to an empty favorites list. 2016-05-11 11:53:59 +02:00
Pieter Hulshoff
9c47adc9cc Corrected switching to favorites list by adding a separate function for that purpose.
Restricted playlist add/remove to games for now.
Fixed not writing playlist if the playlists directory does not exist; directory is now created.
2016-05-11 09:00:55 +02:00
emb
6ff4acbd30 Added selectedOffset tag to support preloading and rendering of items not selected 2015-10-23 23:00:30 -05:00
emb
a5ef2bdcbc ReloadableText support for collectionName, collectionSize, and collectionIndex 2015-10-22 22:04:28 -05:00
emb
cdba6f5df7 Playlist save support 2015-10-21 21:29:39 -05:00
emb
ba5b3ffff7 Fixed multiwheel crash (bug from copy constructor). 2015-10-21 20:29:36 -05:00
emb
248f1993a0 Save support for favorites.txt. Misc bug fixes. Not fully tested. 2015-08-07 17:28:53 -05:00
Don Honerbrink
b940534e48 Adding button to remove from playlists (does not yet save favorites.txt yet) 2015-08-07 11:31:05 -05:00