Can you made mini patch for GM 8.1 that it have a function for text "justifies text" ?
Yes, I know that it function have in Dll (gex), but i want it in GM 8.1 Lite...
Posted 05 September 2012 - 04:50 PM
Posted 08 September 2012 - 04:46 AM
Posted 08 September 2012 - 01:03 PM
No.You mean like:
draw_set_halign(...)
and
draw_set_valign(...) ?
Edited by S_Kleer, 08 September 2012 - 01:07 PM.
Posted 10 September 2012 - 10:16 AM
Edited by nickydude, 10 September 2012 - 10:22 AM.
Posted 10 September 2012 - 03:15 PM
But this is a bad way ((text will not perfectly smooth. I need to be on the left and the right were all exactly like the picture, and with the help of this function, the text is not aligned automatically ...Is this what you''re looking for?
draw_text_ext(x,y,string,sep,w) Similar to the previous routine but you can specify two more things. First of all, sep indicates the separation distance between the lines of text in a multiline text. Use -1 to get the default distance. Use w to indicate the width of the text in pixels. Lines that are longer than this width are split- up at spaces or - signs. Use -1 to not split up lines.
Posted 10 September 2012 - 04:15 PM
Posted 11 September 2012 - 05:27 PM
Here is why I propose to add a feature that would have replaced all of the above methods. =)This is currently not possible in GM unless you write your own script for breaking off text of the end of a line, and then repositioning every word manually. This is probably a nightmare to code, and in native GML it will simply be too slow. So I wouldn't count on it, because this is just very rare in games. The alternatives are:
- find an existing dll
- accept that text is not justified
- store the text in an image, and display the image
0 members, 0 guests, 0 anonymous users