adventuregamestudio / ags

AGS editor and engine source code
Other
707 stars 159 forks source link

Word wrap GUI Button texts #2546

Closed ericoporto closed 1 month ago

ericoporto commented 1 month ago

Describe the problem This was originally reported in the forums here

Currently, the text on buttons doesn't word wrap. If I want to wordwrap text on a button, I have to use a text label and place it on top of the button. Normally, no big deal. But this can be a bit annoying when I want to add a lot of buttons like this:

image

For each of those buttons, I had to create individual text labels and place them on top of each button. Very time consuming and a bit of a faff to keep track of which label is on top of which button. If the text on the button could word-wrap, that would save a lot of time and effort.

GUI Button text doesn't wrap, the workaround is to use Labels on top of buttons but this requires tracking which label belongs to which button and keep this in mind when moving them.

Suggested change So the idea is to add support for word wrapping. A few notes