In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
-
jack_norton
- Lemma-Class Veteran
- Posts: 4067
- Joined: Mon Jul 21, 2008 5:41 pm
- Completed: Too many! See my homepage
- Projects: A lot! See www.winterwolves.com
- Tumblr: winterwolvesgames
-
Contact:
#1
Post
by jack_norton » Sun Feb 20, 2011 6:41 am
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
-
jack_norton
- Lemma-Class Veteran
- Posts: 4067
- Joined: Mon Jul 21, 2008 5:41 pm
- Completed: Too many! See my homepage
- Projects: A lot! See www.winterwolves.com
- Tumblr: winterwolvesgames
-
Contact:
#2
Post
by jack_norton » Sun Feb 20, 2011 6:45 am
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

-
PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
#3
Post
by PyTom » Mon Feb 21, 2011 10:27 pm
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
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
Users browsing this forum: No registered users