I’m trying to set up horizontal sliders and radiobuttons using HaxeUI. As my application will be rolled out to desktop and mobile devices I need to scale my sprites and their contents. I’m however pretty puzzled when it comes to scaling the HaxeUI components. If I add sliders to my sprite container via addChild, the mapping is wrong: If I click on the slider, the slider button ends up on a position far left to where I clicked.
If I use HaxeUI’s own method Screen.instance.addComponent(), the mapping is correct, but the slider does not scale at all when I start my application on different devices.
I’m currently using:
Does anybody have experience with how to make HaxeUI components correctly scale on different devices? Thanks for any suggestions on this!