Making a Recalbox theme

49 pages · 8 sections
⌕
FRENESDE Show everything Create my theme

rating — the star rating

The game's rating, drawn as stars: the two images it is made of.

The properties (9)

<rating name="md_rating">
  <pos>0.06 0.72</pos>
  <size>0.12 0.024</size>
  <filledPath>${root}/data/arts/etoile-pleine.svg</filledPath>
  <unfilledPath>${root}/data/arts/etoile-vide.svg</unfilledPath>
</rating>
PropertyRole
pos size origin rotation rotationOriginplacement
filledPaththe filled star image
unfilledPaththe empty star image
zIndex disableddepth, switching off

size designates the whole of the five stars, and the stars are always drawn over five times their height: the width actually used is 5 × h, whatever one writes. The simplest is to give only one of the two values and leave the other at zero: with <size>0.12 0</size>, Recalbox works out the height (a fifth of the width) and the stars are square.

No color: the stars are white, and that is not adjustable. To change the tint, you have to provide your own images — but it is not mandatory: without filledPath or unfilledPath, Recalbox draws its own stars.