-
Notifications
You must be signed in to change notification settings - Fork 9
fText: TableMaker
Damian Monogue edited this page Feb 7, 2021
·
1 revision
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
See fText: TableMaker: Examples for example snippets.