[Solved]Centering text in a frame?

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
User avatar
Elta
Regular
Posts: 72
Joined: Sun Jun 02, 2019 6:28 pm
Tumblr: limitelta
Deviantart: limitelta
itch: limitelta
Contact:

[Solved]Centering text in a frame?

#1 Post by Elta » Mon Aug 19, 2019 6:47 pm

Solved it by adding spaces before the tooltip text in the imagebuttons! I can't find any way to do it with code, but manually adding spaces did exactly what I wanted, so the issue is solved! 😊 I had not thought of such a manual solution! I'm so used to things centering for me in programs! 😂

So this is my code, it works exactly as I intended, but I can not figure out how to center the text in the frame. (text "[tooltip]") is what I want centered.
I've tried everything I can find, but nothing I have tried has worked. (The text_align 0.5) works to center text if there is more then one line, but if it's a sentance shorter then the frame it will not center.
Thank you so much if you take the time to help me out! 💕

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]