In the documentation of gui.set_size_mode(), it states that the second argument should be either gui.SIZE_MODE_MANUAL or gui.SIZE_MODE_AUTOMATIC, but there are no such constants.
2 Likes
Thanks for the report!
This is fixed and will be in 1.2.89 release.
2 Likes
Wow, that was fast! ![]()
Follow up question: If I set gui.set_size_mode() to AUTOMATIC, will it resize to the sprite size immediatly, so that gui.get_size() will return the changed size if I call it right after, or is there a delay?
Yeah, it was fixed late last sprint but it didn’t make it in time to the last release ![]()
It should update the size immediately, so you can get the new size directly afterwards.
2 Likes
Resolved in 1.2.89: Defold 1.2.89 has been released
1 Like