status_display_text

Nice overlay to make text smoothly scroll with no client updates after setup.
Vars | |
char_widths | Width of each character, including kerning gap afterwards. We don't use rich text or anything fancy, so we can bake these values. |
---|---|
message | The message this overlay is displaying. |
Procs | |
generate_text | Generate the actual maptext. Arguments: |
measure_width | A hyper-streamlined version of MeasureText that doesn't support different fonts, rich formatting, or multiline. But it also doesn't require a client. |
Var Details
char_widths

Width of each character, including kerning gap afterwards. We don't use rich text or anything fancy, so we can bake these values.
message

The message this overlay is displaying.
Proc Details
generate_text
Generate the actual maptext. Arguments:
- text - the text to display
- center - center the text if TRUE, otherwise left-align
- text_color - the text color
measure_width
A hyper-streamlined version of MeasureText that doesn't support different fonts, rich formatting, or multiline. But it also doesn't require a client.
Returns the width in pixels
Arguments:
- text - the text to measure