mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-29 19:11:51 +00:00
* Adds format (associative) list wiremod component (#65404) Adds a wiremod component called "Format List" and one called "Format Associative List" that you get at round-start. It accepts a format string and a list of parameters. For "Format List": The format string contains normal text, and codes of the form %n (eg. %1, %2, %3) that correlate to indexes in the param list. For "Format Associative List": The format string contains normal text, and codes of the form %key (eg. %name, %health) that correlate to keys in the associative param list. The param list can contain any types, which will be automatically converted to strings. Conversion of entities to strings still follows the range rule of To String. Important to keep in mind if you're formatting an NTNet transmission. For the associative version, the keys must be strings comprised of letters, numbers, or underscore. Simplest example that says "Bob McToolbox pressed the button.": * Adds format (associative) list wiremod component Co-authored-by: Tastyfish <crazychris32@gmail.com>