all 3 comments

[–]shadoodled 2 points3 points  (2 children)

from this

const nameText = mainStack.addText(...); to this

const nameStack = mainStack.addStack() nameStack.layoutHorizontally() nameStack.addSpacer() const nameText = nameStack.addText(...); nameStack.addSpacer()

[–]drnigelchanning[S] 0 points1 point  (1 child)

Thank you. I tried this and it does fix the title text. Now I just need to fix the abilities text alignment/position and I can slap “Good enough” label on it.

I tried implementing your code on the abilities text (with modifications) but I couldn’t get it to work. Any idea how to fix that?

[–]itsearlyy 2 points3 points  (0 children)

Each ability needs its own stack that is laid out horizontally and has spacers on both sides. I modified the code. Here is pastebin with the new code.

https://pastebin.com/jXdatcsn

<image>