text_align in text buttons?

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

text_align in text buttons?

#1 Post by jack_norton »

In python, it works, but when I tried to use it in screen language, like this:

Code: Select all

textbutton (sname) action Jump(slabel) text_style "maintxt" yminimum 200 xminimum 200 xalign .5 text_align .5
I got an error:

Code: Select all

On line 48 of C:\- indie dev -\games\renpy.new\Remember Me/game/simulator.rpy: u'text_align' is not a keyword argument or valid child for the textbutton statement.
textbutton (sname) action Jump(slabel) text_style "maintxt" yminimum 200 xminimum 200 xalign .5 text_align .5
follow me on Image Image Image
computer games

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: text_align in text buttons?

#2 Post by jack_norton »

I noticed I was able to do this adding text_align in the style "maintxt", but not sure if that's the only right way to do this :)
follow me on Image Image Image
computer games

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: text_align in text buttons?

#3 Post by PyTom »

It shouldn't have worked in python. It was accepted, but didn't do anything. To do this in SL, you can't use a textbutton, you need to use a button with a text inside it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users