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:
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
Button MACRO supports a few things that label doesn't, like (INV) for showing current active inventory
If we want a similar word wrapping as Labels, I wonder if there's some way to share the code (for drawing and text size calculation)
Backwards compatibility: could have some property to turn the behavior on or off, and just default it to false and either expose it as a property or automatically default it to true if above a certain version (but I wonder if the text calculation may make things differently enough to be better to have this as a property)
Describe the problem This was originally reported in the forums here
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
(INV)
for showing current active inventory