How to center text?
Posted: Sat May 09, 2020 7:40 am
Hey all, newbie here.
I wanted to center text in the about section but I don't know how. I tried to do:
I also tried replacing the 'xalign 0.5' with 'at truecenter' or just' center' but that didn't work either. It showed up at the right side of the screen.
I also want to center the text overall
Is there even a way to center text in the about section? I'm pretty sure there is I just don't know how.
Thank you
I wanted to center text in the about section but I don't know how. I tried to do:
Code: Select all
screen about():
tag menu
use game_menu(_("About"), scroll="viewport"):
style_prefix "about"
vbox:
label "[config.name!t] v.[config.version!t]\n" xalign 0.5
if gui.about:
text "[gui.about!t]\n" xalign 0.5
text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]") xalign 0.5
I also want to center the text overall
like here
but I couldn't find any solution.Is there even a way to center text in the about section? I'm pretty sure there is I just don't know how.
Thank you