Documentation update

This commit is contained in:
Leon Styhre 2025-02-08 16:16:46 +01:00
parent 21110810e4
commit cd5db824ca
3 changed files with 85 additions and 0 deletions

View file

@ -14,10 +14,12 @@
* (Android) Added Pizza Boy SC standalone as an alternative emulator for the gamegear, genesis, mastersystem, megadrive and megadrivejp systems
* (Android) Changed all RetroArch core entries to use absolute paths (this makes the ancient Play store release work correctly)
* (Android) Changed the target SDK version to 35 (Android 15)
* Added a "Display clock" setting to the UI settings menu to display an on screen clock (disabled by default)
* Refactored the helpsystem code and added support for using an arbitrary amount of helpsystem elements
* Added support for specifying which specific entries to display for the helpsystem elements
* Added an "entryLayout" property to the helpsystem element to control the display order for the icons and text
* Added "rotation" and "rotationOrigin" properties to the helpsystem element
* Added a "clock" element to make it possible to customize the layout and position of the clock
* Added "imageSize", "imageMaxSize", "imageCropSize" and "imageCropPos" properties to the video element
* Added a "fadeInType" property to the video element to fade in from black or from transparency
* Added support for a "none" value to the video element imageType property

View file

@ -3574,3 +3574,82 @@ Properties:
`button_y_SNES`,
`button_back_SNES`,
`button_start_SNES`
#### clock
Displays the current time and/or date as a text string. The format is HH:MM by default, but this can be changed using the `format` property. It's strongly recommended to configure the clock identically for both the system and gamelist views to make the user experience coherent.
Note that this element does not have a zIndex value, instead it's always rendered on top of all other elements and it's also rendered when the menu is open. In addition to this it's stationary and will not move during slide transitions or fade out during fade transitions.
You can define multiple elements to for instance display the date on one side of the screen and the time on the other side of the screen.
Supported views:
* `system`
* `gamelist`
Instances per view:
* `unlimited`
Properties:
* `pos` - type: NORMALIZED_PAIR
- Default is `0.008 0.012`
* `size` - type: NORMALIZED_PAIR
- Possible combinations:
- `0 0` - automatically size so text fits on one line (expanding horizontally).
- `w 0` - automatically wrap text so it doesn't go beyond `w` (expanding vertically).
- `w h` - works like a "text box". If `h` is non-zero and `h` <= `fontSize` (implying it should be a single line of text), text that goes beyond `w` will be truncated with an ellipsis (...)
* `origin` - type: NORMALIZED_PAIR
- Where on the element `pos` refers to. For example, an origin of `0.5 0.5` and a `pos` of `0.5 0.5` would place the element exactly in the middle of the screen. If the position and size attributes are themeable, origin is implied.
- Minimum value per axis is `0` and maximum value per axis is `1`
- Default is `0 0`
* `rotation` - type: FLOAT
- Angle in degrees that the text should be rotated. Positive values will rotate clockwise, negative values will rotate counterclockwise.
- Default is `0`
* `rotationOrigin` - type: NORMALIZED_PAIR
- Point around which the text will be rotated.
- Minimum value per axis is `0` and maximum value per axis is `1`
- Default is `0.5 0.5`.
* `fontPath` - type: PATH
- Path to a TrueType font (.ttf).
* `fontSize` - type: FLOAT
- Size of the font as a percentage of screen height for horizontally oriented screens or screen width for vertically oriented screens (e.g. for a value of `0.1`, the text's height would be 10% of the screen height). This calculation is based on the reference 'S' character so other glyphs may not fill this area, or they may exceed this area.
- Minimum value is `0.001` and maximum value is `1.5`. Note that when running at a really low resolution, the minimum value may get clamped to a larger relative size. The font is allowed to overflow the height of the element by 100%, i.e. `fontSize` can be set to twice that of the y axis of the `size` property. Any value above that will be clamped.
- Default is `0.035`
* `horizontalAlignment` - type: STRING
- Controls alignment on the X axis.
- Valid values are `left`, `center` or `right`
- Default is `left`
* `verticalAlignment` - type: STRING
- Controls alignment on the Y axis.
- Valid values are `top`, `center` or `bottom`
- Default is `center`
* `color` - type: COLOR
- Default is `FFFFFFFF`
* `backgroundColor` - type: COLOR
- Default is `00000000`
* `backgroundMargins` - type: NORMALIZED_PAIR
- Adds margins to the text background, assuming it has a color set. The first value of the pair is the left margin and the second value is the right margin, which means it's possible to set these margins completely independently. Margins are applied after all other positioning and sizing calculations and they are rendered outside the text debug rectangle boundaries.
- Minimum value per axis is `0` and maximum value per axis is `0.5`
- Default is `0 0`
- This property can only be used if `backgroundColor` has a value defined.
* `backgroundCornerRadius` - type: FLOAT
- Setting this property higher than zero applies rounded corners to the text background, assuming it has a color set. The radius is a percentage of the screen width. Note that the maximum allowed value is quite arbitrary as the renderer will in practice limit the maximum roundness so it can never go beyond half the text background height. It means that setting this property sufficiently high will produce perfectly rounded sides for the text background. You normally want to combine this property with `backgroundMargins` to add some extra margins.
- Minimum value is `0` and maximum value is `0.5`
- Default is `0` (corners are not rounded)
- This property can only be used if `backgroundColor` has a value defined.
* `lineSpacing` - type: FLOAT
- Controls the space between lines (as a multiple of font height).
- Minimum value is `0.5` and maximum value is `3`
- Default is `1.5`
* `format` - type: STRING
- %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]
- Default is `%H:%M`
* `opacity` - type: FLOAT
- Controls the level of transparency. If set to `0` the element will be disabled.
- Minimum value is `0` and maximum value is `1`
- Default is `1`

View file

@ -3343,6 +3343,10 @@ Submenu containing all the settings for the screensaver. These are described in
Themes can optionally contain variant trigger configuration which changes the layout on a per-gamelist basis if there is no game media available, or if there is no game videos available. This option makes it possible to disable that functionality and always apply the default configuration for the selected variant. Disabling this option may speed up the application slightly.
**Display clock**
Displays a clock on screen at all times. By default it's located in the upper left corner and displays as hours and minutes, but themes can customize its layout and position.
**Blur background when menu is open** _Always applied if screen is rotated 90 or 270 degrees_
This option will blur the background behind the menu slightly. Normally this can be left enabled, but if you have a really slow GPU, disabling this option may make the application feel a bit more responsive. For technical reasons this setting is always enabled if the screen is rotated 90 or 270 degrees, and in this case the menu option will also be grayed out.