I have a dialog system set up but I'm having trouble sizing the box to fit varying amounts of text per line. Most lines turn out just fine.
But some look strange.
Like here the text will not be centered and it will not display all the dialog. Words at the end will be missing (in this case it's missing the character's name and a ?).
Does anyone have any ideas how to always make the text box the right size to fit the amount of text in a given line?
What I have now is on the "displayLine" function:
DialogText Set Height to max(12, ceil(len(Dialog.At(lineOfDialog)) / 35) * 14)
DialogTextBackground Set Height to max(12, ceil(len(Dialog.At(lineOfDialog)) / 35) * 14 + 6)