I have my project set up to use letterbox dynamic scaling for my Android project.
I have the project set up in config.lua as such:
application =
{
content =
{
width = 800,
height = 1232,
scale = "letterbox",
audioPlayFrequency = 44100,
imageSuffix =
{
["@2"] = 1.5
},
},
}
The reduced height is to keep the system bar in Honeycomb and Ice Cream Sandwich from affecting the size of the app.
My app has a 2 player mode, and I provide captions in the app for hard of hearing users, and I would like to have them positioned at the very top of the screen and very bottom of the screen, even if they fall outside of the defined content size.
My captions (which are a 64px height block) are set as Top Left and I tried positioning the .y value at display.screenOriginY for player 2. And it displays as expected.
For player 1, I tried using display.pixelHeight - 64 as the .y value to position the box 64 pixels from the bottom of the screen, but they don’t appear when I use the Kindle 8.9 simulator setting. For the Kindle simulator setting, they appear cut off at the bottom. If I use the Kindle setting, they appear in the content area, since the actual height of the device is smaller than the content area defined.
How can I reliably position this box to always be 64px from the bottom of the actual screen, regardless if the actual screen size is smaller than the content size (aka 1024x600 tablets) or larger (whether it is 1280x800 or 1920x1200 or 1440x900)?
Thanks for any assistance on this. [import]uid: 17827 topic_id: 34606 reply_id: 334606[/import]