[solved] How do I center a text in the dialogue box?

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
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

[solved] How do I center a text in the dialogue box?

#1 Post by Nanahs »

I need my texts to be centered.
I found some codes, but they don't work anymore.

I tried adding "style.default.xalign = 0.5" in options, but it gave me errors.

Thanks :)
Last edited by Nanahs on Fri Dec 07, 2018 11:55 am, edited 1 time in total.

User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: How do I center a text in the dialogue box?

#2 Post by Nanahs »

Oh, that's ok. I added "centered" before the text and it worked for what I wanted :)

Post Reply

Who is online

Users browsing this forum: elcharlo