Knight Posted August 3, 2017 Share Posted August 3, 2017 Is there any ways to draw outline for them? I know I can have multiple Text2D beneath it and act like "border". I'm just wondering if there's any better way of doing that. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted August 5, 2017 Share Posted August 5, 2017 Hiya Knight. Most people use a Rectangle2D as a parent to the Text2D. Rectangle2D's have border-making toys, including round-corners. I would show you a playground, but most/all Canvas2D playgrounds are currently broken. Error: e.Tools.getClassName is not a function, or something like that. But yeah, make yourself a little textMaker() func that returns a bordered Rectangle2D with a Text2D child... should work fine (with a few alignment tweaks). The FILL features of the Rectangle2D background... might be handy/fun, too (when using transparent background on Text2D child). Party on! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.