Hey, and thanks for reading in advance. My question is mostly in the title.
I’m using the Rich Text beta feature to format the description boxes for the abilities of the classes in a fighting game I’m helping to code.
The feature does not currently support the TextScale property, so I’ve been forced to use a little trickery to do so myself.
GUI_RATIO = UI.Main.AbsoluteSize.X/480
GUI_RATIO = (GUI_RATIO + UI.Main.AbsoluteSize.Y/96)/2
UI.Main.Tooltip.TextSize = math.ceil(24 * GUI_RATIO)
UI.Main.AltTip.TextSize = math.ceil(24 * GUI_RATIO)
This works fine, until I’ve got too much text to fit in the box:
Is there something I can add to my current code that would allow me to factor in the boundaries of the textbox? I can’t help but feel like the math on this is easier than I’m making it out to be, but I just want to be sure.
Any help is appreciated!