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.
I'll be brief.
I want to center the text of the textbox, but I don't know how the hell - just managed to place the text in the center setting left padding to 570 but not the disposal, so it appears like this:
Does somebody knows how can I center the text in all the texts that will appear in the textbox?
and sorry about my childish english but I'm spanish and I express myself quite badly so
Last edited by Biotikos on Tue Nov 05, 2013 11:50 am, edited 1 time in total.
Isn't there a way to center all the text in the textbox and the dialogue/thoughts in all the game? ;_;
Sorry for short message but idk I understood but it wasn't what I was actually searching
init:
$ style.say_vbox.xfill = True # this spans the dialogue vbox over the entire available area
$ style.say_dialogue.xcenter = 0.5 # this centers any line of text
$ style.say_dialogue.text_align = 0.5 # this centers wrapped text for sentences longer than one line
$ style.say_label.xcenter = 0.5 # same goes for character names
$ style.say_label.text_align = 0.5 # this is probably not needed as rarely any character names are longer than a full line, but what the hell
Get this in any file (I did it in screens.rpy for consistency) to add/override text properties. This way every text line and every character name will be centered properly.