/tg/ Station 13 - Modules - TypesVar Details - Proc Details

status_display_text

Nice overlay to make text smoothly scroll with no client updates after setup.

Vars

char_widthsWidth of each character, including kerning gap afterwards. We don't use rich text or anything fancy, so we can bake these values.
messageThe message this overlay is displaying.

Procs

generate_textGenerate the actual maptext. Arguments:
measure_widthA 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:

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: