Comments (5)
How is that different from Scene2D Table
? Can you upload a screenshot of an example layout? Perhaps something that would be difficult to achieve in plain Scene2D.
from ktx.
How is that different from Scene2D
Table
? Can you upload a screenshot of an example layout? Perhaps something that would be difficult to achieve in plain 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
}
from ktx.
I could see it being useful as a separate module that extends ktx-scene2d
. Do you think you could implement KTX DSL based on ktx-scene2d
/ktx-vis
? This section of the contribution guide describes how to add a new module.
from ktx.
I could see it being useful as a separate module that extends
ktx-scene2d
. Do you think you could implement KTX DSL based onktx-scene2d
/ktx-vis
? This section of the contribution guide describes how to add a new module.
I think I could implement it, but there's a problem I think the minimum requirements for flexbox is 1.8
and the current project uis using 1.7
this might blocked the repository download from jitpack.io
, I could create a sample patch for you to test locally my initial implementation, maybe you could share your email so I could send the patch file?
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
from ktx.
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?
from ktx.
Related Issues (20)
- Update to Kotlin 1.8.0
- Release KTX 1.11.0-rc4 HOT 1
- AssetStorage fails to load assets on older Android devices due to unsupported ConcurrentHashMap APIs usage HOT 1
- Update to Kotlin 1.8.10
- Release KTX 1.11.0-rc5
- gdxAI module HOT 1
- Update core dependencies
- Release KTX 1.11.0-rc6
- Update to libGDX 1.12.0
- Release KTX 1.12.0-rc1
- Update to Kotlin 1.9.0
- Build error for android in ktx-sample-project HOT 1
- Update libGDX to 1.12.1
- Update Kotlin to 1.9.20
- Update to VisUI 1.5.3
- Utilities for Vector4
- Release KTX 1.12.1-rc1
- KTX pool's discard logic is inconsistent with the original Pool.discard(T) HOT 2
- Update Kotlin to 1.9.22
- Question about new additions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktx.