William Garrison
Member
How would I go about capturing the height of text that is being written to the GUI? Not really sure what code to paste here. Right now I am drawing a box with 9 slice, the printing the text on top of it a character at a time (like most games). Below is what it current looks like. The height is "hard-coded" in. I would love for it to fit whatever text is displayed. The height only.
Larger amounts of text...
Few amounts of text...
This is the script I have set up to run the 9 slice.
This is the text being displayed.
Obviously there is a lot more code not shown that's running this. But I think I might just need a violent shove in the right direction to look.
Larger amounts of text...
Few amounts of text...
This is the script I have set up to run the 9 slice.
GML:
sc_9slice(x, y, boxW, height*.15, s9slice, 0);
GML:
draw_text_ext((portW*.5) - 190, portH*.097, messageText, -1, _maxW);
Obviously there is a lot more code not shown that's running this. But I think I might just need a violent shove in the right direction to look.