Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| write_themes_for_emulationstation [2022/09/07 09:50] – make the github link more obvious atari | write_themes_for_emulationstation [2023/01/26 04:41] (current) – add link to source code handling theme data atari | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <WRAP center round tip> | <WRAP center round tip> | ||
| - | The page here gives a lot of information, | + | A quick link to the technical documentation: |
| </ | </ | ||
| Line 21: | Line 21: | ||
| When creating themes, it's recommended to keep their total space down so that weaker hardware (such as the RPi) can hold everything within their small VRAM successfully. | When creating themes, it's recommended to keep their total space down so that weaker hardware (such as the RPi) can hold everything within their small VRAM successfully. | ||
| - | Tools that can be used to compress image data can be found at [[https:// | + | Tools that can be used to compress image data can be found at [[https:// |
| </ | </ | ||
| Line 28: | Line 28: | ||
| </ | </ | ||
| - | ===== Themes | + | ===== Technical documentation |
| - | EmulationStation allows each system to have its own “theme.” A theme is a collection **views** that define some **elements**, | + | The latest documentation can be found here: [[https:// |
| - | The first place ES will check for a theme is in the system’s '' | + | If there is something |
| - | + | ||
| - | If that file doesn’t exist, ES will try to find the theme in the current **theme set**. Theme sets are just a collection of individual system themes arranged in the “themes” folder under some name. A theme set can provide a default theme that will be used if there is no matching system theme. Here are examples : | + | |
| - | + | ||
| - | < | + | |
| - | ... | + | |
| - | | + | |
| - | my_theme_set/ | + | |
| - | | + | |
| - | theme.xml | + | |
| - | my_cool_background.jpg | + | |
| - | | + | |
| - | theme.xml | + | |
| - | my_other_super_cool_background.jpg | + | |
| - | | + | |
| - | scroll_sound.wav | + | |
| - | + | ||
| - | | + | |
| - | ... | + | |
| - | another_theme_set/ | + | |
| - | | + | |
| - | snes-logo.svg | + | |
| - | snes-back.jpg | + | |
| - | nes-logo.svg | + | |
| - | nes-back.jpg | + | |
| - | | + | |
| - | </ | + | |
| - | The theme set system makes it easy for users to try different themes and allows distributions to include multiple theme options. Users can change the currently active theme set in the “UI Settings” menu. The option is only visible if at least one theme set exists. | + | |
| - | + | ||
| - | There are places where ES can load theme sets from: | + | |
| - | + | ||
| - | Windows : | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | Linux : | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | If both files happen to exist, ES will pick the first one (the one located in the home directory). | + | |
| - | + | ||
| - | Again, the '' | + | |
| - | + | ||
| - | ===== Simple Example ===== | + | |
| - | + | ||
| - | Here is a very simple theme that changes the description text’s color: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ===== How it works ===== | + | |
| - | + | ||
| - | Everything must be inside a '' | + | |
| - | + | ||
| - | **The '' | + | |
| - | The current version is 7 for batocera-emulationstation. | + | |
| - | + | ||
| - | Version 4 themes are Retropie & Recalbox themes - see their documentations for version 4 themes. | + | |
| - | + | ||
| - | A //view// can be thought of as a particular “display” within EmulationStation. Views are defined like this: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | <view name=" | + | |
| - | ... define elements here ... | + | |
| - | </ | + | |
| - | </ | + | |
| - | An //element// is a particular visual element, such as an image or a piece of text. You can either modify an element that already exists for a particular view (as is done in the “description” example), like this: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | ... define properties here ... | + | |
| - | </ | + | |
| - | </ | + | |
| - | Or, you can create your own elements | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | ... define properties here ... | + | |
| - | </ | + | |
| - | </ | + | |
| - | “Extra” elements will be drawn in the order they are defined (so define backgrounds first!). When they get drawn relative to the pre-existing elements depends on the view. Make sure “extra” element names do not clash with existing element names! An easy way to protect against this is to just start all your extra element names with some prefix like “e_”. | + | |
| - | + | ||
| - | // | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | </ | + | |
| - | %%**%% BATOCERA 5.24 : | + | |
| - | + | ||
| - | A // | + | |
| - | + | ||
| - | It is defined like this : | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | ... define elements here ... | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Advanced Features ===== | + | |
| - | + | ||
| - | It is recommended that if you are writing a theme you launch EmulationStation with the '' | + | |
| - | + | ||
| - | ==== The < | + | |
| - | + | ||
| - | You can include theme files within theme files, similar to '' | + | |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | '' | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | Is equivalent to this '' | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | Notice that properties that were not specified got merged ('' | + | |
| - | + | ||
| - | ==== Subsets: Create theme variations declaring subsets ==== | + | |
| - | + | ||
| - | %%**%% Batocera 5.24 | + | |
| - | + | ||
| - | Subset are usefull to create multiple variations in a theme ( colorsets, iconsets, different system views…) | + | |
| - | + | ||
| - | When a subset is defined, you can choose one of the named elements in the subset. Only one is active | + | |
| - | + | ||
| - | “name” attribute must be unique among all includes. | + | |
| - | + | ||
| - | Common subsets are “colorset”, | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | <include subset=" | + | |
| - | <include subset=" | + | |
| - | + | ||
| - | <include subset=" | + | |
| - | <include subset=" | + | |
| - | + | ||
| - | <include subset=" | + | |
| - | <include subset=" | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Theming multiple views simultaneously ==== | + | |
| - | + | ||
| - | Sometimes you want to apply the same properties to the same elements across multiple views. The '' | + | |
| - | + | ||
| - | <code xml> | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | This is equivalent to: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Theming multiple elements simultaneously ==== | + | |
| - | + | ||
| - | You can theme multiple elements //of the same type// simultaneously. The '' | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <!-- Weird spaces/ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | Which is equivalent to: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | <text name=" | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | Just remember, //this only works if the elements have the same type!// | + | |
| - | + | ||
| - | ==== Element rendering order with z-index ==== | + | |
| - | + | ||
| - | You can now change the order in which elements are rendered by setting '' | + | |
| - | + | ||
| - | === Defaults === | + | |
| - | + | ||
| - | == screen == | + | |
| - | + | ||
| - | %%**%% Batocera 5.24 | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Extra Elements '' | + | |
| - | + | ||
| - | == system == | + | |
| - | + | ||
| - | * Extra Elements '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | == basic, detailed, grid, video == | + | |
| - | + | ||
| - | * '' | + | |
| - | * Extra Elements '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Media | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Metadata - 40 | + | |
| - | * Labels | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Values | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * System Logo/Text - 50 | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | ==== Theme variables ==== | + | |
| - | + | ||
| - | Theme variables can be used to simplify theme construction. There are 2 types of variables available. * System Variables * Theme Defined Variables | + | |
| - | + | ||
| - | === System Variables === | + | |
| - | + | ||
| - | System variables are system specific and are derived from the values in es_systems.cfg. * '' | + | |
| - | + | ||
| - | === Theme Defined Variables === | + | |
| - | + | ||
| - | Variables can also be defined in the theme. | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | === Usage in themes === | + | |
| - | + | ||
| - | Variables can be used to specify the value of a theme property: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | </ | + | |
| - | or to specify only a portion of the value of a theme property: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Filter using attributes ==== | + | |
| - | + | ||
| - | %%**%% Batocera 5.24 | + | |
| - | + | ||
| - | System attributes allow filtering elements and adapt display under conditions : | + | |
| - | + | ||
| - | These attributes apply to every XML element in the theme. | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === Usage in themes === | + | |
| - | + | ||
| - | Variables can be used to specify the value of a theme property: | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | <text lang=" | + | |
| - | < | + | |
| - | </ | + | |
| - | or to specify only a portion of the value of a theme property: | + | |
| - | + | ||
| - | ===== Reference ===== | + | |
| - | + | ||
| - | ==== Views, their elements, and themable properties: ==== | + | |
| - | + | ||
| - | === basic === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. | + | |
| - | * '' | + | |
| - | * This is a background image that exists for convenience. It goes from (0, 0) to (1, 1). | + | |
| - | * '' | + | |
| - | * Displays the name of the system. Only present if no “logo” image is specified. Displayed at the top of the screen, centered by default. | + | |
| - | * '' | + | |
| - | * A header image. If a non-empty '' | + | |
| - | * '' | + | |
| - | * The gamelist. '' | + | |
| - | + | ||
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | === detailed === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. | + | |
| - | * '' | + | |
| - | * This is a background image that exists for convenience. It goes from (0, 0) to (1, 1). | + | |
| - | * '' | + | |
| - | * Displays the name of the system. Only present if no “logo” image is specified. Displayed at the top of the screen, centered by default. | + | |
| - | * '' | + | |
| - | * A header image. If a non-empty '' | + | |
| - | * '' | + | |
| - | * The gamelist. '' | + | |
| - | * Metadata | + | |
| - | * Labels | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Values * All values will follow to the right of their labels if a position isn’t specified. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Path is the “video” metadata for the currently selected game.\\ | + | |
| - | + | ||
| - | * '' | + | |
| - | * Path is the “marquee” metadata for the currently selected game. | + | |
| - | * '' | + | |
| - | * The “rating” metadata. | + | |
| - | * '' | + | |
| - | * The “releasedate” metadata. | + | |
| - | * '' | + | |
| - | * The “developer” metadata. | + | |
| - | * '' | + | |
| - | * The “publisher” metadata. | + | |
| - | * '' | + | |
| - | * The “genre” metadata. | + | |
| - | * '' | + | |
| - | * The “players” metadata (number of players the game supports). | + | |
| - | * '' | + | |
| - | * The “lastplayed” metadata. Displayed as a string representing the time relative to “now” (e.g. “3 hours ago”). | + | |
| - | * '' | + | |
| - | * The “playcount” metadata (number of times the game has been played). | + | |
| - | * '' | + | |
| - | * The " | + | |
| - | * '' | + | |
| - | * Text is the “desc” metadata. If no '' | + | |
| - | * '' | + | |
| - | * The “name” metadata (the game name). Unlike the others metadata fields, the name is positioned offscreen by default | + | |
| - | + | ||
| - | === video === | + | |
| - | + | ||
| - | This kind of view is used for retrocompatibility with Retropie themes, but is deprecated. | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. | + | |
| - | * '' | + | |
| - | * This is a background image that exists for convenience. It goes from (0, 0) to (1, 1). | + | |
| - | * '' | + | |
| - | * Displays the name of the system. Only present if no “logo” image is specified. Displayed at the top of the screen, centered by default. | + | |
| - | * '' | + | |
| - | * A header image. If a non-empty '' | + | |
| - | * '' | + | |
| - | * The gamelist. '' | + | |
| - | * Metadata | + | |
| - | * Labels | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Values | + | |
| - | * All values will follow to the right of their labels if a position isn’t specified. | + | |
| - | * '' | + | |
| - | * Path is the “image” metadata for the currently selected game. | + | |
| - | * '' | + | |
| - | * Path is the “marquee” metadata for the currently selected game. | + | |
| - | * '' | + | |
| - | * Path is the “video” metadata for the currently selected game. | + | |
| - | * '' | + | |
| - | * The “rating” metadata. | + | |
| - | * '' | + | |
| - | * The “releasedate” metadata. | + | |
| - | * '' | + | |
| - | * The “developer” metadata. | + | |
| - | * '' | + | |
| - | * The “publisher” metadata. | + | |
| - | * '' | + | |
| - | * The “genre” metadata. | + | |
| - | * '' | + | |
| - | * The “players” metadata (number of players the game supports). | + | |
| - | * '' | + | |
| - | * The “lastplayed” metadata. Displayed as a string representing the time relative to “now” (e.g. “3 hours ago”). | + | |
| - | * '' | + | |
| - | * The “playcount” metadata (number of times the game has been played). | + | |
| - | * '' | + | |
| - | * The " | + | |
| - | * '' | + | |
| - | * Text is the “desc” metadata. If no '' | + | |
| - | * '' | + | |
| - | * The “name” metadata (the game name). Unlike the others metadata fields, the name is positioned offscreen by default | + | |
| - | + | ||
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | === grid === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. | + | |
| - | * '' | + | |
| - | * This is a background image that exists for convenience. It goes from (0, 0) to (1, 1). | + | |
| - | * '' | + | |
| - | * Displays the name of the system. Only present if no “logo” image is specified. Displayed at the top of the screen, centered by default. | + | |
| - | * '' | + | |
| - | * A header image. If a non-empty '' | + | |
| - | * '' | + | |
| - | * The gamegrid. The number of tile displayed is controlled by its size, margin and the default tile max size. | + | |
| - | * '' | + | |
| - | * Note that many of the default gridtile parameters change the selected gridtile parameters if they are not explicitly set by the theme. For example, changing the background image of the default gridtile also change the background image of the selected gridtile. Refer to the gridtile documentation for more informations. | + | |
| - | * '' | + | |
| - | * See default gridtile description right above. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Describes the text label in the grid. See default text description right above | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Describes the text label in the grid when the gridtile is selected. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Describes the image to use in the grid as a marquee / wheel image. | + | |
| - | * Metadata | + | |
| - | * Labels | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Values | + | |
| - | * All values will follow to the right of their labels if a position isn’t specified. | + | |
| - | * '' | + | |
| - | * The “rating” metadata. | + | |
| - | * '' | + | |
| - | * The “releasedate” metadata. | + | |
| - | * '' | + | |
| - | * The “developer” metadata. | + | |
| - | * '' | + | |
| - | * The “publisher” metadata. | + | |
| - | * '' | + | |
| - | * The “genre” metadata. | + | |
| - | * '' | + | |
| - | * The “players” metadata (number of players the game supports). | + | |
| - | * '' | + | |
| - | * The “lastplayed” metadata. Displayed as a string representing the time relative to “now” (e.g. “3 hours ago”). | + | |
| - | * '' | + | |
| - | * The “playcount” metadata (number of times the game has been played). | + | |
| - | * '' | + | |
| - | * The " | + | |
| - | * '' | + | |
| - | * Text is the “desc” metadata. If no '' | + | |
| - | * '' | + | |
| - | * The “name” metadata (the game name). Unlike the others metadata fields, the name is positioned offscreen by default | + | |
| - | + | ||
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | === system === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. | + | |
| - | * '' | + | |
| - | * The system logo carousel | + | |
| - | * '' | + | |
| - | * A logo image, to be displayed in the system logo carousel. | + | |
| - | * '' | + | |
| - | * A logo text, to be displayed system name in the system logo carousel when no logo is available. | + | |
| - | * '' | + | |
| - | * Displays details of the system currently selected in the carousel. | + | |
| - | * You can use extra elements (elements with '' | + | |
| - | + | ||
| - | === menu === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The help system style for this view. If not defined, menus will have the same helpsystem as defined in system view. | + | |
| - | * '' | + | |
| - | * The background behind menus. you can set an image and/or change color (alpha supported) | + | |
| - | * '' | + | |
| - | * Images for the on/off switch in menus | + | |
| - | * '' | + | |
| - | * Image for the slider knob in menus | + | |
| - | * '' | + | |
| - | * Images for menu buttons | + | |
| - | * '' | + | |
| - | * text for all menu entries | + | |
| - | * '' | + | |
| - | * text for menu titles | + | |
| - | * '' | + | |
| - | * text for menu footers or subtitles | + | |
| - | * '' | + | |
| - | * text for menu entries in smallerfont | + | |
| - | + | ||
| - | menu is used to theme helpsystem and ES menus. | + | |
| - | + | ||
| - | === screen === | + | |
| - | + | ||
| - | %%**%% BATOCERA 5.24 | + | |
| - | + | ||
| - | screen is a fixed view and has no themable properties. | + | |
| - | + | ||
| - | It is used to work like an OSD, to display elements like clock and controllers activity. | + | |
| - | + | ||
| - | It can also contain text, image and video extras. | + | |
| - | + | ||
| - | ===== Types of properties: ===== | + | |
| - | + | ||
| - | * NORMALIZED_PAIR - two decimals, in the range [0..1], delimited by a space. For example, '' | + | |
| - | * NORMALIZED_RECT - four decimals, in the range [0..1], delimited by a space. For example, '' | + | |
| - | * PATH - a path. If the first character is a '' | + | |
| - | * BOOLEAN - '' | + | |
| - | * COLOR - a hexidecimal RGB or RGBA color (6 or 8 digits). If 6 digits, will assume the alpha channel is '' | + | |
| - | * FLOAT - a decimal. | + | |
| - | * STRING - a string of text. | + | |
| - | + | ||
| - | ===== Types of elements and their properties: ===== | + | |
| - | + | ||
| - | Common to almost all elements is a '' | + | |
| - | + | ||
| - | The order you define properties in does not matter. Remember, you do //not// need to specify every property! //Note that a view may choose to only make only certain properties on a particular element themable!// | + | |
| - | + | ||
| - | === image === | + | |
| - | + | ||
| - | Can be created as an extra. | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * If only one axis is specified (and the other is zero), the other will be automatically calculated in accordance with the image’s aspect ratio. | + | |
| - | * '' | + | |
| - | * The image will be resized as large as possible so that it fits within this size and maintains its aspect ratio. Use this instead of '' | + | |
| - | * '' | + | |
| - | * Where on the image '' | + | |
| - | * '' | + | |
| - | * angle in degrees that the image should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise. | + | |
| - | * '' | + | |
| - | * Point around which the image will be rotated. Defaults to '' | + | |
| - | * '' | + | |
| - | * Path to the image file. Most common extensions are supported (including .jpg, .png, and unanimated .gif). | + | |
| - | * '' | + | |
| - | * Path to default image file. Default image will be displayed when selected game does not have an image. | + | |
| - | * '' | + | |
| - | * If true, the image will be tiled instead of stretched to fit its size. Useful for backgrounds. | + | |
| - | * '' | + | |
| - | * Multiply each pixel’s color by this color. For example, an all-white image with '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : table reflexion effect. First item is top position alpha, second is bottom alpha. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : When the image is scaled maxSize, tells if the table reflexion effect alignment is done on the bottom of the physical image, or on the bottom of the frame ( according to pos/size ) | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : The image will be resized so that it fits the entire rectangle and maintains its aspect ratio. Some parts of the image may be hidden. Used for tiles. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : End color for drawing the image with a gradient. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Direction of the gradient. Values can be ‘horizontal’ or ‘vertical’. Default is ‘vertical’ | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : If the image is scaled maxSize, tells the image horizontal alignment. Values can be left, right, and center. Default is center. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : If the image is scaled maxSize, tells the image vertical alignment. Values can be top, bottom, and center. Default is center. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : If true, the image will be flipped horizontally. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : If true, the image will be flipped vertically. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Tells if the element is visible or hidden.\\ | + | |
| - | + | ||
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === imagegrid === | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * The size of the grid. Take care the selected tile can go out of the grid size, so don’t position the grid too close to another element or the screen border. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * The default image used for games which doesn’t have an image. | + | |
| - | * '' | + | |
| - | * The default image used for folders which doesn’t have an image. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Padding for displaying tiles. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Number of column and rows in the grid (integer values). | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: Zoom factor to apply when a tile is selected.\\ | + | |
| - | + | ||
| - | * '' | + | |
| - | * BATOCERA 5.24: Selects the image to display. '' | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: delay in millseconds to display video, when the tile is selected. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: Path of the sound file to play when the grid selection changes. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: If true the selection will always be centered in the grid. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: If true the grid will loop thoughs elements. If false, when the grid has no more elements, it displays no more items. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: If true the selection under the image will be moved in an animation. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Tells the x, y position, width or height of the element. | + | |
| - | + | ||
| - | === gridtile === | + | |
| - | + | ||
| - | * '' | + | |
| - | * The size of the default gridtile is used to calculate how many tiles can fit in the imagegrid. If not explicitly set, the size of the selected gridtile is equal the size of the default gridtile * 1.2 | + | |
| - | * '' | + | |
| - | * The padding around the gridtile content. Default '' | + | |
| - | * '' | + | |
| - | * The default tile image color and selected tile image color have no influence on each others. | + | |
| - | * '' | + | |
| - | * If not explicitly set, the selected tile background image will be the same as the default tile background image. | + | |
| - | * '' | + | |
| - | * The corner size of the ninepatch used for the tile background. Default is '' | + | |
| - | * '' | + | |
| - | * A shortcut to define both the center color and edge color at the same time. The default tile background color and selected tile background color have no influence on each others. | + | |
| - | * '' | + | |
| - | * Set the color of the center part of the ninepatch. The default tile background center color and selected tile background center color have no influence on each others. | + | |
| - | * '' | + | |
| - | * Set the color of the edge parts of the ninepatch. The default tile background edge color and selected tile background edge color have no influence on each others. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: Selects if the background is over the full tile or only the image. '' | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: Selects the image sizing mode. '' | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24: table reflexion effect. First item is top position alpha, second is bottom alpha. | + | |
| - | + | ||
| - | === video === | + | |
| - | + | ||
| - | Can be created as an extra. | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * If only one axis is specified (and the other is zero), the other will be automatically calculated in accordance with the video’s aspect ratio. | + | |
| - | * '' | + | |
| - | * The video will be resized as large as possible so that it fits within this size and maintains its aspect ratio. Use this instead of '' | + | |
| - | * '' | + | |
| - | * Where on the image '' | + | |
| - | * '' | + | |
| - | * angle in degrees that the text should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise. | + | |
| - | * '' | + | |
| - | * Point around which the text will be rotated. Defaults to '' | + | |
| - | * '' | + | |
| - | * Delay in seconds before video will start playing. | + | |
| - | * '' | + | |
| - | * Path to default video file. Default video will be played when selected game does not have a video. | + | |
| - | * '' | + | |
| - | * If true, image will be shown when selected game does not have a video and no '' | + | |
| - | * '' | + | |
| - | * If true, playing of video will be delayed for '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Path to video file if video is an extra. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Tells if the element is visible or hidden. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Defines which image to show during delay. Values can be image, thumbnail, and marquee. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Defines the transition in effect when the video is first loaded. Values can be slideRight, size, bump, or none. The default is bump. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === text === | + | |
| - | + | ||
| - | Can be created as an extra. | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Possible combinations: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Where on the component '' | + | |
| - | * '' | + | |
| - | * angle in degrees that the text should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise. | + | |
| - | * '' | + | |
| - | * Point around which the text will be rotated. Defaults to '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Path to a truetype font (.ttf). | + | |
| - | * '' | + | |
| - | * Size of the font as a percentage of screen height (e.g. for a value of '' | + | |
| - | * '' | + | |
| - | * Valid values are “left”, “center”, | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Defines the color of the glow around the text. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Defines the size of the glow around the text. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Defines the decal of the glow around the text (used for shadow effects). | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : table reflexion effect. First item is top position alpha, second is bottom alpha. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : When the image is scaled maxSize, tells if the table reflexion effect alignment is done on the bottom of the physical image, or on the bottom of the frame ( according to pos/size ) | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Padding for displaying text. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Tells if the element is visible or hidden. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === textlist === | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Where on the component '' | + | |
| - | * '' | + | |
| - | * Color of the “selector bar.” | + | |
| - | * '' | + | |
| - | * Path to image to render in place of “selector bar.” | + | |
| - | * '' | + | |
| - | * If true, the selector image will be tiled instead of stretched to fit its size. | + | |
| - | * '' | + | |
| - | * Height of the “selector bar”. | + | |
| - | * '' | + | |
| - | * Allows moving of the “selector bar” up or down from its computed position. Useful for fine tuning the position of the “selector bar” relative to the text. | + | |
| - | * '' | + | |
| - | * Color of the highlighted entry text. | + | |
| - | * '' | + | |
| - | * Primary color; what this means depends on the text list. For example, for game lists, it is the color of a game. | + | |
| - | * '' | + | |
| - | * Secondary color; what this means depends on the text list. For example, for game lists, it is the color of a folder. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Sound that is played when the list is scrolled. | + | |
| - | * '' | + | |
| - | * Valid values are “left”, “center”, | + | |
| - | * '' | + | |
| - | * Horizontal offset for text from the alignment point. If '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Bottom color for the gradient of the “selector bar.” | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Type of gradient to apply : horizontal or vertical. Default is vertical | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === ninepatch === | + | |
| - | + | ||
| - | Can be created as an extra. | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Fill color ( assigns center & edge color ) | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Color of the center. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Color of the edge. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Size of the corners. Default is 32 32. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | EmulationStation borrows the concept of “nine patches” from Android (or “9-Slices”). Currently the implementation is very simple and hard-coded to only use 48x48px images (16x16px for each “patch”). Check the '' | + | |
| - | + | ||
| - | === rating === | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Only one value is actually used. The other value should be zero. (e.g. specify width OR height, but not both. This is done to maintain the aspect ratio.) | + | |
| - | * '' | + | |
| - | * Where on the component '' | + | |
| - | * '' | + | |
| - | * angle in degrees that the rating should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise. | + | |
| - | * '' | + | |
| - | * Point around which the rating will be rotated. Defaults to '' | + | |
| - | * '' | + | |
| - | * Path to the “filled star” image. Image must be square (width equals height). | + | |
| - | * '' | + | |
| - | * Path to the “unfilled star” image. Image must be square (width equals height). | + | |
| - | * '' | + | |
| - | * Multiply each pixel’s color by this color. For example, an all-white image with '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === datetime === | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Possible combinations: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Where on the component '' | + | |
| - | * '' | + | |
| - | * angle in degrees that the text should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise. | + | |
| - | * '' | + | |
| - | * Point around which the text will be rotated. Defaults to '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Path to a truetype font (.ttf). | + | |
| - | * '' | + | |
| - | * Size of the font as a percentage of screen height (e.g. for a value of '' | + | |
| - | * '' | + | |
| - | * Valid values are “left”, “center”, | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * If true, component will be rendered, otherwise rendering will be skipped. Can be used to hide elements from a particular view. | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * %Y: The year, including the century (1900) | + | |
| - | * %m: The month number [01,12] | + | |
| - | * %d: The day of the month [01,31] | + | |
| - | * %H: The hour (24-hour clock) [00,23] | + | |
| - | * %M: The minute [00,59] | + | |
| - | * %S: The second [00,59] | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Respectively x, y position, width or height of the element. Can be used instead of pos/size. | + | |
| - | * `scale’ - type: FLOAT. | + | |
| - | * BATOCERA 29 : Scale of the element. 0 to 1. Default is 1. | + | |
| - | * '' | + | |
| - | * BATOCERA 29 : Point around which the image scale will be applyed. | + | |
| - | * `storyboard’ - type: STORYBOARD. | + | |
| - | * BATOCERA 29 : See storyboard documentation. | + | |
| - | + | ||
| - | === sound === | + | |
| - | + | ||
| - | * '' | + | |
| - | * Path to the sound file. Only .wav files are currently supported. | + | |
| - | + | ||
| - | === helpsystem === | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Where on the component '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | === carousel === | + | |
| - | + | ||
| - | * '' | + | |
| - | * Sets the scoll direction of the carousel. | + | |
| - | * Accepted values are “horizontal”, | + | |
| - | * Default is “horizontal”. | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Where on the carousel '' | + | |
| - | * '' | + | |
| - | * Controls the color of the carousel background. | + | |
| - | * Default is FFFFFFD8 | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * Selected logo is increased in size by this scale | + | |
| - | * Default is 1.2 | + | |
| - | * '' | + | |
| - | * Angle in degrees that the logos should be rotated. Value should be positive. | + | |
| - | * Default is 7.5 | + | |
| - | * This property only applies when '' | + | |
| - | * '' | + | |
| - | * Point around which the logos will be rotated. Defaults to '' | + | |
| - | * This property only applies when '' | + | |
| - | * '' | + | |
| - | * Sets the alignment of the logos relative to the carousel. | + | |
| - | * Accepted values are “top”, “bottom” or “center” when '' | + | |
| - | * Accepted values are “left”, “right” or “center” when '' | + | |
| - | * Default is “center” | + | |
| - | * '' | + | |
| - | * Sets the number of logos to display in the carousel. | + | |
| - | * Default is 3 | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high.\\ | + | |
| - | + | ||
| - | * '' | + | |
| - | * BATOCERA 5.24 : Color for the end of gradient | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Sets the gradient direction. Accepted values are “horizontal” and “vertical”. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Set the logo position if it is not centered. | + | |
| - | * '' | + | |
| - | * BATOCERA 5.24 : Sets the amount of time before displaying game count information. Default is 1500 | + | |
| - | + | ||
| - | === menuText & menuTextSmall === | + | |
| - | + | ||
| - | BATOCERA 5.24 | + | |
| - | + | ||
| - | * '' | + | |
| - | * Default is 777777FF | + | |
| - | * '' | + | |
| - | * Path to a truetype font (.ttf). | + | |
| - | * '' | + | |
| - | * Size of the font as a percentage of screen height (e.g. for a value of '' | + | |
| - | * '' | + | |
| - | * Default is C6C7C6FF. Color of lines that separates menu entries. | + | |
| - | * '' | + | |
| - | * Default is FFFFFFFF. Color of text for selected menu entry. | + | |
| - | * '' | + | |
| - | * Default is 878787FF. Color of the selector bar. | + | |
| - | * '' | + | |
| - | * Bottom color for the gradient of the “selector bar.” | + | |
| - | + | ||
| - | === menuSwitch === | + | |
| - | + | ||
| - | BATOCERA 5.24 - replace the switch image in menus | + | |
| - | + | ||
| - | * '' | + | |
| - | * Image path when the switch is on | + | |
| - | * '' | + | |
| - | * Image path when the switch is off | + | |
| - | + | ||
| - | === menuButton === | + | |
| - | + | ||
| - | BATOCERA 5.24 - replace the button images in menus | + | |
| - | + | ||
| - | * '' | + | |
| - | * Image path when the button is not selected | + | |
| - | * '' | + | |
| - | * Image path when the button is selected. | + | |
| - | + | ||
| - | === menuTextEdit === | + | |
| - | + | ||
| - | BATOCERA 5.24 - replace the textbox background images in OSK | + | |
| - | + | ||
| - | * '' | + | |
| - | * Image path when the textbox is not selected | + | |
| - | * '' | + | |
| - | * Image path when the textbox is selected. | + | |
| - | + | ||
| - | === menuIcons === | + | |
| - | + | ||
| - | BATOCERA 5.24 - Add images to menuitems | + | |
| - | + | ||
| - | * '' | + | |
| - | * Element name must be the image name in the list : iconSystem, iconUpdates, | + | |
| - | + | ||
| - | === controllerActivity === | + | |
| - | + | ||
| - | BATOCERA 5.24 - controllerActivity element must be defined in screen view | + | |
| - | + | ||
| - | * '' | + | |
| - | * '' | + | |
| - | * Only one value is actually used. The other value should be zero. (e.g. specify width OR height, but not both. This is done to maintain the aspect ratio.) | + | |
| - | * '' | + | |
| - | * Space between controller images | + | |
| - | * '' | + | |
| - | * Image alignment - left, right, center. | + | |
| - | * '' | + | |
| - | * Image to use to represent a joystick. | + | |
| - | * '' | + | |
| - | * Default color. | + | |
| - | * '' | + | |
| - | * Color when the joystick has activity | + | |
| - | * '' | + | |
| - | * Color when the joystick hotkey is pressed. | + | |
| - | * '' | + | |
| - | * Show/Hides the controllers | + | |
| - | * '' | + | |
| - | * z-index value for component. Components will be rendered in order of z-index value from low to high. | + | |
| - | + | ||
| - | ===== Animating elements using Storyboards ===== | + | |
| - | + | ||
| - | %%**%% Batocera 29 | + | |
| - | + | ||
| - | You can now create animations using storyboards on every extra element & some built-in elements. | + | |
| - | + | ||
| - | ==== Storyboard example ==== | + | |
| - | + | ||
| - | Here is a very simple example of an animation that animates an image position, scale & opacity : | + | |
| - | + | ||
| - | <code xml> | + | |
| - | < | + | |
| - | < | + | |
| - | <view name=" | + | |
| - | <image name=" | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | + | ||
| - | ==== The ‘storyboard’ element ==== | + | |
| - | + | ||
| - | A storyboard is a set of animated properties. This element should contain child “animation” elements. | + | |
| - | + | ||
| - | This element can be added to any common elements : image, video, text, datetime, rating, ninepatch, textlist, imagegrid. | + | |
| - | + | ||
| - | Only exceptions are : sound, menu, carousel, helpsystem and splash elements. | + | |
| - | + | ||
| - | === Attributes === | + | |
| - | + | ||
| - | '' | + | |
| - | * “activate” : animation applies when a logo becomes active only | + | |
| - | * “deactivate” : animation applies when the active logo deactivates | + | |
| - | * If the value is empty or if the attribute is missing, the storyboard applies to all logos. | + | |
| - | + | ||
| - | This value can be used in video elements : In this case, value can be : | + | |
| - | * “staticImage” : animation applies only to the static image behind the video | + | |
| - | * If the value is empty or if the attribute is missing, the storyboard applies to the video when it starts. | + | |
| - | + | ||
| - | In those case, multiple storyboards, | + | |
| - | * '' | + | |
| - | + | ||
| - | ==== The ‘animation’ element ==== | + | |
| - | + | ||
| - | animation element must be a child of a storyboard. | + | |
| - | + | ||
| - | This element is designed to set a list of properties to transform, given a timing, an acceleration curve, and a repeat information. | + | |
| - | + | ||
| - | === Attributes === | + | |
| - | + | ||
| - | * '' | + | |
| - | Value is one of the property in the object (pos, size, x, y, w, h, scale, scaleOrigin, | + | |
| - | Note : It’s not possible to animate STRING and BOOLEAN properties. Only FLOAT, NORMALIZED_PAIR, | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | < | + | |
| - | Linear | + | |
| - | EaseIn | + | |
| - | EaseInCubic | + | |
| - | EaseInQuint | + | |
| - | EaseOut | + | |
| - | EaseOutCubic | + | |
| - | EaseOutQuint | + | |
| - | EaseInOut | + | |
| - | Bump | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Resource overrides ===== | + | |
| - | + | ||
| - | EmulationStation uses a few elements from its [[https:// | + | |
| - | + | ||
| - | Example: | + | |
| - | <code> | + | |
| - | ... | + | |
| - | theme_set/ | + | |
| - | | + | |
| - | cartridge.svg | + | |
| - | </ | + | |
| - | + | ||
| - | This would replace the default cartridge image in the theme. | + | |
| ===== Show all systems ===== | ===== Show all systems ===== | ||
- write_themes_for_emulationstation.1662544258.txt.gz
- Last modified: 4 years ago
- by atari