Search found 2 matches

by Thodak
Mon May 04, 2020 2:09 am
Forum: Scripts & Packages
Topic: fText, the text formatting library
Replies: 12
Views: 4332

Re: fText, the text formatting library

Thanks for the response @demonnic. I tried this but it didn't work: myFormatter = demonnic.TextFormatter:new( { width = 40, cap = "[CAP]", capColor = "<white>", textColor = "<light_blue>" }) myFormatter:setType('h') myFormatter:setCapColor("#9AC48D") Can you help me figure out what I'm missing?
by Thodak
Sat May 02, 2020 7:03 pm
Forum: Scripts & Packages
Topic: fText, the text formatting library
Replies: 12
Views: 4332

Re: fText, the text formatting library

Thanks for this, it looks awesome. I'm new to Lua programming.
I tried to change the color using a hex string:
Code: [show] | [select all] lua
myFormatter:setCapColor("#9AC48D")
But it didn't change the color. Is there a way to specify CAP color in fText via hex strings?