FXGLDefaultMenu layout is not responsive #1021
Labels
codefest23-24
difficulty:medium
API design elements, need time to think through
good-first-issue
First-time contributor-friendly
help wanted
Contributions welcome / high PR acceptance rate
lang:kotlin-only
Solution should be in Kotlin
module:
fxgl
package:
com.almasb.fxgl.app.scene
file:
FXGLDefaultMenu.kt
FXGL/fxgl/src/main/kotlin/com/almasb/fxgl/app/scene/FXGLDefaultMenu.kt
Lines 90 to 92 in 43a1a24
These are hardcoded, instead we should listen for (bind to) settings.prefWidth/Height properties.
You can check the result of this working (or not working) in
fxgl-samples
module by running a MenuSample and addingsettings.setManualResizeEnabled(true);
, then resizing the game at runtime.Currently on resize, the hardcoded values will not result in a responsive layout.
The text was updated successfully, but these errors were encountered: