@nehon said:
Nifty has a handy
[java]
nifty.enableAutoScaling(nativeX, nativeY);
[/java]
You feed this method with the resolution in which you designed your screens and Nifty handles the scaling for you.
I was actually surprised how well it works. Shrinking or scaling, the result really worth the line of code p:.
well, let's say i have a 1680x1050 hud.png with represents stuff that don't move on the screen and always appear
if i build this to android platform (and all other platfoorms too), i am gonna end up with a severals mb of image file that is a lot for a small device screen
besides, if the image is composed of thin lines(like windows or components borders), these are going to be blured on expension and disapear on shrinking
so i what questioning myself, i guess there are some scenarios where i would have to make different images
wich lead me to that level of details about textures for the hud :)