The <rating> object displays a game rating as a row of five symbols, filled proportionally to the rating.
| View | Name | Element |
|---|---|---|
detailed |
md_rating |
The rating of the selected game |
gameclip |
md_rating |
The rating of the displayed game |
This object cannot be created with extra="true".
| Property | Type | Purpose |
|---|---|---|
pos |
Pair | Object position. See common properties. |
size |
Pair | Row size. Set only one axis and leave the other at 0: the second is computed to keep the aspect ratio. |
origin |
Pair | Point of the object that pos refers to. |
rotation |
Float | Rotation angle in degrees, clockwise when positive. |
rotationOrigin |
Pair | Point the rotation happens around. Defaults to 0.5 0.5. |
filledPath |
Path | Path of the filled star image. The image must be square. |
unfilledPath |
Path | Path of the unfilled star image. The image must be square. |
zIndex |
Float | Drawing order, from lowest to highest. |
disabled |
Boolean | Hides the object entirely. |
<rating name="md_rating" pos="0.55 0.32" size="0.12 0" origin="0 0.5"
filledPath="./art/star-filled.svg" unfilledPath="./art/star-empty.svg" />