Skip to content
Docs
Open Promoeyes

rating

UI item · inside ui / ui3duisset 2× in templates and rigs

A row of stars on a UI stage: `count` stars, the first `value` of them filled, with an optional label after them.

rating(value=1 color=#ffffff count=1)

Attributes

valuenumberHow many stars are filled; a fraction fills part of the next one (default 0).2×
colorcolour #rrggbbColour of the filled stars (default amber).1×
countnumberNumber of stars (default 5).1×
emptycolour #rrggbbColour of the empty stars.1×
hnumberHeight of the row, in stage units (default 32).1×
labeltextText after the stars.1×
labelColorcolour #rrggbbColour of the label.1×
maxnumber1×
sizenumberStar size in stage units (default 20); the label is 0.7 of it.1×
wnumber1×

Where it goes

Written under