Skip to content

fText: TableMaker

Damian Monogue edited this page Feb 7, 2021 · 1 revision

TableMaker: not quite a spreadsheet but it looks like one

Concept

Formatting text into nice looking tables is something that comes up fairly frequently in text based gaming. And since I've created reusable formatting objects, I decided to leverage them to make a TableMaker object. You create the table, then add the columns of information you want to it. Each column is a formatter which will be used to format the text in that column. In addition to the usual TextFormatter options, they also have an options name field, which can be used to optionally print the table headings. You then add rows to it, and each row is a table of the strings you want formatted and placed in the table.

See here for the API Docs

A picture is worth a thousand words

See fText: TableMaker: Examples for example snippets.

Clone this wiki locally