method
Text.pad_left
Text.pad_left(s, width) -> string
Returns s padded with leading spaces until it is at least width bytes long; a string already that long is returned unchanged (never truncated). Right-aligns numbers and labels in a fixed-width HUD column.
Example
program Demo {
handler Step phase Update {
let cell = Text.pad_left(Text.from_int(score), 6)
}
}