/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/text.dm

MAPTEXTPrepares a text to be used for maptext. Use this so it doesn't look hideous.
WXH_TO_HEIGHTMacro from Lummox used to get height from a MeasureText proc
SANITIZE_FILENAMERemoves characters incompatible with file names.
STRIP_HTML_SIMPLESimply removes the < and > characters, and limits the length of the message.

Define Details

MAPTEXT

Prepares a text to be used for maptext. Use this so it doesn't look hideous.

SANITIZE_FILENAME

Removes characters incompatible with file names.

STRIP_HTML_SIMPLE

Simply removes the < and > characters, and limits the length of the message.

WXH_TO_HEIGHT

Macro from Lummox used to get height from a MeasureText proc