Page 1 of 1

textbox.png placed differently on phone and tablet - how do I fix this?

Posted: Fri Dec 15, 2017 10:04 am
by crimsonnight
I'm using the same textbox.png for both the standard and 'phone' gui, but it's being placed completely differently when ran on a phone: https://puu.sh/yGZG9/9535b9fc63.jpg and tablet: https://puu.sh/yGZCF/b0d832c8c6.jpg? I've attached the file to this post.
textbox.png
*EDIT* Probably not an ideal solution, but I fixed it by changing 'define gui.textbox_yalign = 1.0' to 'define gui.textbox_yalign = 1.03' and editing 2 different versions of textbox.png.

Re: textbox.png placed differently on phone and tablet - how do I fix this?

Posted: Fri Dec 15, 2017 12:28 pm
by PyTom
What do you have gui.textbox_height set to at the bottom of gui.rpy, where it's set in a way that matters for mobile devices?

The mobile device uses a bigger text box, to compensate for the bigger font size required by a physically smaller screen running at the same resolution. Since, in the new GUI, the textbox doesn't scale automatically, you'll need a bigger text box to fill the area. I don't think that trying to share the same textbox images between the small and non-small variants should be expected to work, and indeed, it doesn't.