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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

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

#1 Post 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.
alwaysthesamebluesky.com

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

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

#2 Post 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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Google [Bot], mold.FF