Dynamic content scaling and screen size detection

Sorry if I missed the boat on this one; I thought I was fairly well informed…

Setting the width and height values in the config.lua file, eg:
[lua]application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["-x2"] = 2,
},
},
}[/lua]
is great when you want to forget about the issues of device independence and have the lovely folks at Ansca deal with it…

…however, what if you want to have that benefit, but still be able to detect the real screen size so that you can account for different display dimensions by (eg) moving elements further out or in?

In my case, I’d really like to be able to move my main menu buttons down a little when displayed on a device with a slightly longer screen.

Please forgive me if I’m being dumb.

matt [import]uid: 8271 topic_id: 8873 reply_id: 308873[/import]

I don’t know if there is an exact command for what you want, but this is close:
http://developer.anscamobile.com/reference/index/displaycontentscalex [import]uid: 12108 topic_id: 8873 reply_id: 32452[/import]

I think it has more to do with http://developer.anscamobile.com/reference/index/displayscreenoriginy and http://developer.anscamobile.com/reference/index/displayscreenoriginx [import]uid: 10426 topic_id: 8873 reply_id: 32453[/import]

oh good spot, yeah those are exactly what he wants [import]uid: 12108 topic_id: 8873 reply_id: 32465[/import]

Thanks guys, I’ll have to try this later…

M [import]uid: 8271 topic_id: 8873 reply_id: 32472[/import]