Author Topic: Text Output Formatting  (Read 596 times)

I was wondering if there was a way to format the output text in torquescript. Like how in C++ there's setw and all that jazz. I tried looking it up on the forums and online but nothing was dealing with what I'm talking about. I'm pretty sure there's no way to do it with default functions but I'm not sure. If anyone knows of a way to do this or has made their own way of doing it I would appreciate some help.

ahahahahahahahahahaha

look at this noob he thinks this stuffty language actually has output formatting ahahahahahaha

no
the very best you're going to get is using tabs and spaces and stuff manually, or pretty red colors in the ingame console if you use error() instead of echo()


Now that might be an interesting library - blockland consoles can't expand horizontally, I think, so hardcode a max line length and you can center and right justify things with spaces.
« Last Edit: March 01, 2014, 01:26:12 PM by Lugnut »

Yeah I figured as much  :panda:


Torque is such a weird language, it doesn't have so many basic things that I would expect it to have. The decisions they made while making this engine boggle my mind sometimes.

Ok so I'm still editing text output but now I'm doing something blockland can actually handle. But where the hell can I find documentation about the fonts included in the engine? I have no clue what they are, and it seems there's like 0 documentation for the fonts torque includes


base/client/ui/cache

Need a way to get the current font? Hahaha good luck.
Need a way to get an arbitrary word of text? Ooo, totally a default function for that!

Torque is weird.