480 Commits

Author SHA1 Message Date
Pieter Hulshoff
5bc67f72fb Fixed layer animations for non-menu items. 2016-06-24 11:00:29 +02:00
Pieter Hulshoff
62e9f7eaa3 Fixed reflectionAlpha support. 2016-06-24 09:39:34 +02:00
Pieter Hulshoff
dc74226a37 Reallocating menu sprites resets the animations, so animations should be called after reallocating the sprites. 2016-06-21 10:22:28 +02:00
Pieter Hulshoff
40391ad084 Fixed Windows compile warnings/errors. 2016-06-19 21:22:47 +02:00
Pieter Hulshoff
edf866f0c7 Check main layout directory if art cannot be found in the collection's layout directory. 2016-06-19 16:06:36 +02:00
Pieter Hulshoff
f1fe21843d Added support for image reflection via the following attributes:
reflection: top, bottom, left or right
reflectionDistance: distance between the image and the reflected image
reflectionScale: scaling of the image in the direction of the reflection
reflectionAlpha: transparency factor of the reflection
2016-06-17 11:01:08 +02:00
Pieter Hulshoff
a63c10ec5c Added uppercase/lowercase support for all reloadableText types. 2016-06-17 08:46:57 +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
50148fa213 Added support for reloadableText attribute textFormat="uppercase" and
textFormat="lowercase" to print a reloadable string in uppercase or
lowercase format.
2016-06-12 10:37:26 +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
b127b12b4e Added support for animation type "layer". 2016-06-12 09:25:24 +02:00
Pieter Hulshoff
ef81de1b1b Idle animations should not be interrupted if another type of animation is
requested that is not programmed for this component.
2016-06-12 09:11:42 +02:00
Pieter Hulshoff
933e7e2fdd Fixed maxWidth/maxHeight animation for menu items. The problem was that
menus animated the scaled width/height rather than the real width/height,
which caused their internal state to become corrupted, which showed when
the item was then animated using maxWidth/maxHeight.
2016-06-12 08:36:03 +02:00
Pieter Hulshoff
9d533fb2cc Corrected path for reloadable media in mode "layout". 2016-06-12 07:28:45 +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
e711049acb Added "onEnter" event trigger after the splashpage has been replaced by the
selected layout.
2016-06-10 16:19:00 +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
6af237ebbf Removed all old layouts. The default is to be changed/updated, and all
other layouts will be updated, and made available via the forums.
2016-06-10 13:54:32 +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
1157096f55 Added mode attribute "layout" and "systemlayout" to allow art to be loaded
from the layout directory rather than the collections directory. Their
standard counter modes are no mode attribute, and mode="system".
Example:
  no mode:       load collections/MAME/medium_artwork/video/mslug.mp4
  mode "layout": load layouts/<layout name>/collections/MAME/medium_artwork/video/mslug.mp4
Example:
  mode "system":       load collections/MAME/system_artwork/device.png
  mode "systemlayout": load layouts/<layout name>/collections/MAME/system_artwork/device.png
2016-06-08 13:32:23 +02:00
Pieter Hulshoff
3f3a53e6c0 Removed cause for warnings regarding incorred initialization order. 2016-06-08 10:55:42 +02:00
Pieter Hulshoff
2c0d20f3bf Allow chaining of animations with the "from" attribute omitted. 2016-06-08 08:49:31 +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
02cb0d584f Removed the use of NaN due to compiler issues. 2016-06-05 17:29:52 +02:00
Pieter Hulshoff
ccfc0325a9 Allow the omission of the "from" attribute from the animations in the
layout. This will start the animation from the current value rather than a
programmed one.
2016-06-05 11:37:46 +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
4b05992a19 Windows time crashes were caused by unsupported %r parameter. Added
timeFormat attribute to the reloadableText layout element, with a default of
%H:%M (<24 hour>:<minutes>).
2016-06-03 10:07:10 +02:00
Pieter Hulshoff
382edc61f8 Changed time display code so it does not require C++11. 2016-06-01 10:29:02 +02:00
Pieter Hulshoff
064932c46f Added support for control type information:
- Use tag <ctrltype> in the meta XML.
- Use type "ctrlType" in the layout XML.
2016-06-01 09:55:00 +02:00
Pieter Hulshoff
2502607a04 Increased the size of the applicatoin name and current directory to 2K characters for Windows (KMetalMind). 2016-06-01 09:18:27 +02:00
Pieter Hulshoff
4107cd50e0 Added -std=c++11 to the C++ make flags. 2016-05-30 11:53:52 +02:00
Pieter Hulshoff
1226599489 Added support for time display. Use type="time" for the reloadableText. 2016-05-30 11:40:59 +02:00
Pieter Hulshoff
c250f28d37 Added support for adding the word Player or Players behind the number of players:
- Use type "numberPlayersPlayers" or "numberPlayersRangePlayers" in the layout XML.
- Examples:
  If number of players is 1:
  - type "numberPlayers" will print 1.
  - type "numberPlayersRange" will print 1.
  - type "numberPlayersPlayers" will print 1 Player.
  - type "numberPlayersRangePlayers" will print 1 Player.
  If number of players is 4:
  - type "numberPlayers" will print 4.
  - type "numberPlayersRange" will print 1-4.
  - type "numberPlayersPlayers" will print 4 Players.
  - type "numberPlayersRangePlayers" will print 1-4 Players.
2016-05-30 10:45:04 +02:00
Pieter Hulshoff
28e72b802b Added support for rating information:
- Use tag <rating> in the meta XML.
- Use type "rating" in the layout XML.
Added support for number of player information:
- Use tag <players> in the meta XML.
- Use type "numberPlayers" in the layout XML to get the #players.
- Use type "numberPlayersRange" in the layout XML to get the 1-#players range.
- Examples:
  If the number of players is 1:
  - type "numberPlayers will print 1.
  - type "numberPlayersRange will print 1.
  If the number of players is 4:
  - type "numberPlayers will print 4.
  - type "numberPlayersRange will print 1-4.
Added support for number of buttons information:
- Use tag <buttons> in the meta XML.
- Use type "numberButtons" in the layout XML.
Added support for number of joystick ways information:
- Use tag <joyways> in the meta XML.
- Use type "numberJoyWays" in the layout XML.
2016-05-30 10:16:57 +02:00
Pieter Hulshoff
c649ee0c13 Cancel idle animations when switching collections (KMetalMind). 2016-05-29 21:10:57 +02:00
Pieter Hulshoff
42ffacb1f9 Added support for flexible collection information printing. If the type of
the reloadableText matches the name tag in the collection's settings.conf it
will be printed.
2016-05-29 21:09:44 +02:00
Pieter Hulshoff
1ab7d129d0 Dead zone of analogue control has been made programmable by KMetalMind.
The parameter is in %, and is defined by deadZone in controls.conf, with a default value of 3 (current RetroFE behavior).
2016-05-28 18:47:27 +02:00
Pieter Hulshoff
bf24f6cba2 Fixed vertical alignment for text wider than the maximum width. 2016-05-28 08:55:24 +02:00
Pieter Hulshoff
7cc78a56bb Merged develop into default for release 0.7.1. 2016-05-25 08:42:40 +02:00
Pieter Hulshoff
bead1312f8 Fixed font color settings for menu items. 2016-05-20 10:03:26 +02:00
Pieter Hulshoff
a3bcc1b5e1 README.md edited online with Bitbucket 2016-05-14 11:34:53 +00:00
Pieter Hulshoff
338658e4ba Merged develop into default for release 0.7.1 beta. 2016-05-14 13:28:27 +02:00
Pieter Hulshoff
1061205d4f Fixed Windows compile errors. 2016-05-14 08:20:46 +02:00
Pieter Hulshoff
11c04d6fbc Fixed issues with playlists directory, and added warning messages. 2016-05-11 14:22:54 +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
9150ec2079 Only draw scrollinglist at the requested layer index. 2016-05-11 12:54:50 +02:00
Pieter Hulshoff
784dfdca16 Added support for manufacturer's graphics for collections. 2016-05-11 12:06:43 +02:00