This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
layouts [2018/06/20 14:35] phulshof [Directory Structure] |
layouts [2019/10/29 05:02] phulshof |
||
---|---|---|---|
Line 24: | Line 24: | ||
<layout> | <layout> | ||
- | <!-- Sound parameters --> | ||
<sound/> | <sound/> | ||
- | <!-- Menu structure --> | ||
<menu/> | <menu/> | ||
- | <!-- Video --> | ||
<video/> | <video/> | ||
- | <!-- Image --> | ||
<image/> | <image/> | ||
- | <!-- Text --> | ||
<text/> | <text/> | ||
- | <!-- Video connected to the selected item --> | ||
<reloadableVideo/> | <reloadableVideo/> | ||
- | <!-- Image connected to the selected item --> | ||
<reloadableImage/> | <reloadableImage/> | ||
- | <!-- Text connected to the selected item --> | ||
<reloadableText/> | <reloadableText/> | ||
- | <!-- Scrolling text connected to the selected item --> | ||
<reloadableScrollingText/> | <reloadableScrollingText/> | ||
</layout> | </layout> | ||
Line 122: | Line 113: | ||
\\ | \\ | ||
\\ | \\ | ||
- | |||
=====<image> Parameters===== | =====<image> Parameters===== | ||
Line 161: | Line 151: | ||
|mode |See mode attribute for more details.| | |mode |See mode attribute for more details.| | ||
|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).| |
|fontColor |Default RGB color of the font (in hex, i.e. “6699AA”).| | |fontColor |Default RGB color of the font (in hex, i.e. “6699AA”).| | ||
|fontSize |Default font size of to display if not specified by a component.| | |fontSize |Default font size of to display if not specified by a component.| | ||
Line 174: | Line 164: | ||
\\ | \\ | ||
- | |||
=====<reloadableImage> Parameters===== | =====<reloadableImage> Parameters===== | ||
Line 216: | Line 205: | ||
\\ | \\ | ||
- | |||
=====<reloadableScrollingText> Parameters===== | =====<reloadableScrollingText> Parameters===== | ||
Line 318: | Line 306: | ||
| menuIndex="0" | Activate the animation on the main menu. | | | menuIndex="0" | Activate the animation on the main menu. | | ||
| menuIndex="1" | Activate the animation on first submenu. | | | menuIndex="1" | Activate the animation on first submenu. | | ||
- | | menuIndex="!0" | Activate the animation on every index except for the main menu. | | + | | menuIndex="%%!%%0" | Activate the animation on every index except for the main menu. | |
| menuIndex=">1" | Activate the animation on menu index 2, 3, 4, ... | | | menuIndex=">1" | Activate the animation on menu index 2, 3, 4, ... | | ||
| menuIndex="<2" | Activate the animation on menu index 0 and 1. | | | menuIndex="<2" | Activate the animation on menu index 0 and 1. | | ||
| menuIndex="i" | Activate the animation when the index of the menu corresponds with the current menu index. This can only be used for animations for menu items. | | | menuIndex="i" | Activate the animation when the index of the menu corresponds with the current menu index. This can only be used for animations for menu items. | | ||
- | |||
RetroFE supports the following algorithms: | RetroFE supports the following algorithms: | ||
Line 335: | Line 322: | ||
Example: | Example: | ||
- | <!-- Flaming background, slowly pulsating using transparency. --> | ||
<image src="bg.png" x="0" y="0" height="stretch" width="stretch" layer="0"> | <image src="bg.png" x="0" y="0" height="stretch" width="stretch" layer="0"> | ||
<onIdle> | <onIdle> | ||
Line 352: | Line 338: | ||
Several parameters allow for a mode attribute: system, common, layout, systemlayout, and commonlayout. This attribute can be omitted. This attribute has the following effects: | Several parameters allow for a mode attribute: system, common, layout, systemlayout, and commonlayout. This attribute can be omitted. This attribute has the following effects: | ||
- | Mode system and systemlayout use the information from the collection you're in rather than the selected item. | + | Mode system and systemlayout use the information from the collection you're in rather than the selected item. |
- | Mode layout, systemlayout, and commonlayout use the art in the layouts/<layout name>/collections/<collection name>/ directory rather than collections/<collection name>/ directory. | + | |
- | Mode common and commonlayout use the art in the collections/_common/medium_artwork directory rather than the collections/<collection name>/medium_artwork directory. | + | Mode layout, systemlayout, and commonlayout use the art in the layouts/<layout name>/collections/<collection name>/ directory rather than collections/<collection name>/ directory. |
+ | |||
+ | Mode common and commonlayout use the art in the collections/_common/medium_artwork directory rather than the collections/<collection name>/medium_artwork directory. | ||
The item path also depends on whether the selected item is a collection or a game; it will select the first found file. | The item path also depends on whether the selected item is a collection or a game; it will select the first found file. | ||
Line 429: | Line 417: | ||
layouts/<layout name>/collections/_common/medium_artwork/manufacturer/Capcom.png | layouts/<layout name>/collections/_common/medium_artwork/manufacturer/Capcom.png | ||
layouts/<layout name>/collections/_common/medium_artwork/manufacturer/default.png | layouts/<layout name>/collections/_common/medium_artwork/manufacturer/default.png | ||
- | |||