-
-
Notifications
You must be signed in to change notification settings - Fork 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
Additional library for FlexBox #442
Comments
How is that different from Scene2D |
we can then define position much easier or if we are already using flex we can use this as reference yoga playground. Also can be alternative to the table In this example, if we want the actors to be centered horizontally and vertically. flexBox(YogaFlexDirection.ROW) {
root.justifyContent = YogaJustify.CENTER
root.alignItems = YogaAlign.CENTER
// ... actors
} If we wanted the 2 actors to overlap flexBox(YogaFlexDirection.ROW) {
root.justifyContent = YogaJustify.CENTER
root.alignItems = YogaAlign.CENTER
label(1)
label(2).flex(absolute = true)
} If we want the actors to be in a column flexBox(YogaFlexDirection.COLUMN) {
root.justifyContent = YogaJustify.CENTER
root.alignItems = YogaAlign.CENTER
// ... actors
} |
I could see it being useful as a separate module that extends |
I think I could implement it, but there's a problem I think the minimum requirements for flexbox is java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
} |
That might prevent the library from working correctly on iOS. Are you able to check if the library works correctly on all official platforms other than GWT? |
I have recently implemented the
FlexBox
widget locally, maybe this could be added as future library?gdx-flexbox
extensions
.flex
could be implemented like.cell
The text was updated successfully, but these errors were encountered: