--- Important! ---
A beta of improved version of Text Box (to be found in "Text Box Extended Pack" on Forge) is out. Please check it, especially since it contains new features, as improved tagging system, new alignment options and spacing and it's generally tw... twen... (*succesfull roll on Will check*) twentyonepercentcooler!!1 :
D
/// Important! ///
(original post begins here)
So, after hours of intense work I've finally managed to make not one and only anymore
*Text Box behavior
Here's the test of this behavior, as well as others, expanding the possibilities of the original one: [LINK]Having this behavior attached to an actor, you can:
- define the maximum width of text
- set the number of lines shown at once, as well as single line height (when there are more lines, there's function which allows you to define from which line it should start drawing)
- align it horizontally and vertically (vertical align only works when text contains less lines overall than can be shown)
- change font in the middle of text (note that there are only open tags; when you want to return to default formatting, you just type [ default ]); if you want to make a new tag, you should use define as custom block
- use any characters as opening and closing bracket for tags, as well as you can use any text as newline (it shouldn't contain these brackets, though)
However, you
cannot set the colours for fonts. I mean, if you want to use other coloured font, you should duplicate base one and set new colour in resource. It's because drawing fonts with colour other than their own seems to take much more time to render (about 2-3 times more, apparently O.o).
Special thanks for Justin, who've managed to recover the behavior after I couldn't open it for some strange reason. Without that... well, without that I'd probably do it again, anyway, but before that I'd probably bite everyone in their ankles, so yes, that's a good thing that it was recovered.
Pack containing the behavior itself, as well as testing behavior with fonts it uses are to be found on Stencyl Forge as
Text Box Pack.
Behavior itself can be found as
Text Box.
I recommend checking out the pack first; behavior was placed there so that someone who already knows how to use it wouldn't have to download the whole package.
Any suggestions?
*see also different behaviors from Text Box series; to be found on Forge as:
TxBx Colour