User Tools

Site Tools


layouts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
layouts [2019/10/29 06:32]
phulshof [<image> Parameters]
layouts [2020/03/22 11:25] (current)
phulshof [<video> Parameters]
Line 87: Line 87:
 |scrollTime |The amount of time (in seconds) it takes for an item to scroll to the next point on the menu (i.e 0.750 = 750 milliseconds)| |scrollTime |The amount of time (in seconds) it takes for an item to scroll to the next point on the menu (i.e 0.750 = 750 milliseconds)|
 |scrollAcceleration |The acceleration rate to scroll by when holding down the up/​down/​left/​right scroll key| |scrollAcceleration |The acceleration rate to scroll by when holding down the up/​down/​left/​right scroll key|
 +|minScrollTime |The amount of time (in seconds) it takes for an item to scroll to the next point on the menu (i.e 0.750 = 750 milliseconds). This defaults to scrollAcceleration for backwards compatibility.|
 |menuIndex ​     |The index at which the menu should be inserted in the menu hierarchy. If omitted, the menu will be inserted at the next index. This also allows multiple menus to be inserted at the same index, displaying multiple menus at the same time.| |menuIndex ​     |The index at which the menu should be inserted in the menu hierarchy. If omitted, the menu will be inserted at the next index. This also allows multiple menus to be inserted at the same index, displaying multiple menus at the same time.|
  
Line 115: Line 116:
 =====<​video>​ Parameters===== =====<​video>​ Parameters=====
  
-The <​video>​ tag supports the following ​parameter:+The <​video>​ tag supports the following ​parameters:
  
 ^<​video>​ tag parameters^^ ​ ^<​video>​ tag parameters^^ ​
-|src  |The location of the video to display (relative to the location of the active layout folder)|+|src    ​|The location of the video to display (relative to the location of the active layout folder)| 
 +|numLoops |The number of times the video is played (0 = endless loop; default is 1)| 
 +|volume  ​ |The volume for the video to display (between 0 and 1; default is 1)|
  
  
 Example: Example:
  
-  <video src="​video.mp4"​ x="​0"​ y="​0"​ height="​stretch"​ width="​stretch"​ layer="​0"/>​+  <video src="​video.mp4" volume="​0.5" x="​0"​ y="​0"​ height="​stretch"​ width="​stretch"​ layer="​0"/>​
  
 \\ \\
Line 163: Line 166:
 |imageType |The type of image to display if a video cannot be found: "​numberButtons",​ "​numberPlayers",​ "​year",​ "​title",​ "​manufacturer",​ "​genre"​.| |imageType |The type of image to display if a video cannot be found: "​numberButtons",​ "​numberPlayers",​ "​year",​ "​title",​ "​manufacturer",​ "​genre"​.|
 |mode |See mode attribute for more details.| |mode |See mode attribute for more details.|
 +|volume |The volume for the video to display (between 0 and 1; default is 1)|
 |textFallback |Set to true to have text displayed of a the item title if an image cannot be loaded.| |textFallback |Set to true to have text displayed of a the item title if an image cannot be loaded.|
 |font |Location of the font (relative to the layout folder).| |font |Location of the font (relative to the layout folder).|
Line 174: Line 178:
 Example: Example:
  
-  <​reloadableVideo imageType="​screenshot"​ x="​400"​ y="​300"​ xOrigin="​center"​ yOrigin="​center"​ height="​480"​ maxWidth="​640"​ layer="​3"/>​+  <​reloadableVideo imageType="​screenshot" volume="​0.5" x="​400"​ y="​300"​ xOrigin="​center"​ yOrigin="​center"​ height="​480"​ maxWidth="​640"​ layer="​3"/>​
  
 \\ \\
Line 314: Line 318:
 |onMenuJumpEnter |Action happens on entering a jump in the menu (next/​previous letter/​page,​ random).| |onMenuJumpEnter |Action happens on entering a jump in the menu (next/​previous letter/​page,​ random).|
 |onMenuJumpExit |Action happens on exiting a jump in the menu (next/​previous letter/​page,​ random).| |onMenuJumpExit |Action happens on exiting a jump in the menu (next/​previous letter/​page,​ random).|
 +|onAttractEnter ​        ​|Action happens on entering attract mode.|
 +|onAttract ​             |Action happens continuously while in attract mode.|
 +|onAttractExit ​         |Action happens on exiting attract mode.|
  
 The action type can be combined with a menuIndex attribute. This will force RetroFE to only activate the animation for the specified menu index, with 0 being the main menu. Some examples: The action type can be combined with a menuIndex attribute. This will force RetroFE to only activate the animation for the specified menu index, with 0 being the main menu. Some examples:
layouts.1572345120.txt.gz · Last modified: 2019/10/29 06:32 by phulshof