GameMaker (all)
Icon

Draw text justify

Dmi7ry

You must be logged in to obtain assets

Description

GMS1.x ATTENTION! Load "constants.txt" to Macros (Resources -> Define Macros -> Load)

Starting v1.1 was addeded colors support. Use BBCode-like tags for it:

[c=FFFFFF] - set color (hexadecimal, RRGGBB)

Keep in mind that any tag interpreted as words sepearator.

If you want place "[" as char instead of tag, just double it: "[[". Example:

[c=ff0000] - tag [[c=ff0000] - text

justify_draw_text(text, left, right, top, font, [first_line_indent, space_width, space_height, [space_paragraph]])

use -1 in [first_line_indent, space_width, space_height] for default values

Returns: height in pixels

example:

justify_draw_text(text, 100, room_width - 100, 0, myfont);
justify_draw_text(text, 100, room_width - 100, 0, myfont, 80, 8, -1);
justify_draw_text(text, 100, room_width - 100, 0, myfont, -1, 8, -1);
justify_draw_text(text, 100, room_width - 100, 0, myfont, -1, -1, -1, 0);

End User Licence Agreement (EULA).

Age Rating: 4+

Versions

GMS2 - Version 1.1.1. Published October 24, 2017

Fixed a bug (in some cases last line might be missed)

GMS1 - Version 1.1.1. Published October 24, 2017

Fixed a bug (in some cases last line might be missed)

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait