-
Notifications
You must be signed in to change notification settings - Fork 72
A way to get the size of layout #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I came here to ask for the same feature, and I see it was requested six years ago. @vrld are you still accepting PRs for this project? I'll probably end up implementing a |
I am not maintaining this project anymore. However, there is |
Thank you for clarifying; I won't bother with the PRs then. I'm grateful that you've provided this project in the first place; overall I've had no trouble integrating it into my game, and feel confident that I can extend and fix things as necessary from here. I've already hacked in some primitive support for modal dialogs. I did see |
You're right. Truth is I haven't looked at this code in a long time, so I am not sure what the right approach is here. Tracking the extent like you described sounds like a good option. |
Currently it's quite hard to get the bounding box of a layout. (Top left and bottom right points.)
This is useful for placing backdrops for dynamic generated GUI (like item lists), as well as for creating scroll enabled GUI.
A solution could be to add a
boundingSize()
function to layout that returnx, y, width, height
where x,y points to the absolut top position of the layout.The text was updated successfully, but these errors were encountered: