Page 1 of 1
Centering dialogue in text box?
Posted: Sun Apr 03, 2016 6:50 am
by warmsundae
I don't think there's a topic for this, so how do you center dialogue text in the text box?
Re: Centering dialogue?
Posted: Sun Apr 03, 2016 7:05 am
by YzzaPizzaIsCheezy
Like this:
you don't have to define it.

Re: Centering dialogue?
Posted: Sun Apr 03, 2016 7:52 am
by warmsundae
thanks, but 'centered' puts it in the middle of the screen. I should've made it more clear - what I want is in the middle of the textbox, in the center of a line.
Re: Centering dialogue?
Posted: Sun Apr 03, 2016 7:55 am
by MimirollCookie
I don't knoe if there's something like that. ;_;
Re: Centering dialogue?
Posted: Sun Apr 03, 2016 8:17 am
by BáiYù
Simply go to your screens.rpy and locate the say screen section. Copy and paste this in at the first instance of
has vbox.
Code: Select all
has vbox:
style "say_vbox"
xalign 0.5 #centers textbox
if who:
text who id "who" xalign 0.5 #centers name
text what id "what" text_align 0.5
See if that works for you.
Re: Centering dialogue?
Posted: Sun Apr 03, 2016 8:27 am
by warmsundae
It works! Thanks so much.
edit:
I'm sure it's an easy fix, but how could I make the second/third/etc line of this dialogue centered as well?

Re: Centering dialogue?
Posted: Sun Apr 03, 2016 10:47 am
by Donmai
No need to hack the say screen. You can do it all with styles, as Tom explained here:
http://lemmasoft.renai.us/forums/viewto ... 78#p392578