What it does
ui.createProgress creates a Progress in ui. It takes id, value and an options object.
Signature
ui.createProgress(id, value, { x, y, width, height, color, bgColor, label })Arguments
idvalue{ x, y, width, height, color, bgColor, label }Keys:
xywidthheightcolorbgColorlabel
Example · generated
function start() { ui.createProgress('progress', 1, { x: 100, y: 120, width: 2 });}ui.createProgress is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.