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.
-
camisteja
- Regular
- Posts: 28
- Joined: Thu Jan 14, 2016 4:54 pm
-
Contact:
#1
Post
by camisteja » Thu Jan 14, 2016 5:22 pm
Hello, everyone! I've just gotten into working with Ren'Py and while I got most of the basics down the GUI stuff is giving me a headache. Since most tutorials/cook books and things are out of date, I felt compelled to create an account here and get to work begging for help asking questions.
Now that I got everyone up to speed, here is the question!
How on Earth do I customize text buttons? My partner and I have already created the little test button thing that we want to use as our text button for the game we are making. The problem is that none of the tutorials that I could find were perfectly clear as to where the image goes in order for it to pop up as a text button, you know? So, to avoid confusion, all I want to know right now is how to insert an image into Ren'Py to replace the way the default buttons work.
Can anyone help me? I feel like I've checked every source out there and I'm still clueless. Please be stupid-proof while answering.
Thanks in advance! <3
Last edited by
camisteja on Sun Jan 24, 2016 1:17 am, edited 1 time in total.
-
philat
- Eileen-Class Veteran
- Posts: 1853
- Joined: Wed Dec 04, 2013 12:33 pm
-
Contact:
#3
Post
by philat » Thu Jan 14, 2016 8:37 pm
As implied by the names, textbuttons are for text and imagebuttons are for images. GUI is generally done using either imagemaps or imagebuttons.
Tutorial on imagebuttons:
http://lemmasoft.renai.us/forums/viewto ... 65#p284753
Tutorial on imagemap GUI:
http://lemmasoft.renai.us/forums/viewto ... 37#p186559
Also, outdated renpy tutorials generally still work just fine -- it's very rare that an update actually breaks a pre-existing feature. For example, most tutorials in the cookbook use the old dot syntax for styles (style.pref_slider.left_bar = "blah") instead of the newer style statements (
http://www.renpy.org/doc/html/style.htm ... -statement) but it still works absolutely the same way. If something is absolutely broken in recent versions of renpy, this will generally be noted in the cookbook thread, so basically don't shy away from consulting old threads.
-
camisteja
- Regular
- Posts: 28
- Joined: Thu Jan 14, 2016 4:54 pm
-
Contact:
#4
Post
by camisteja » Thu Jan 14, 2016 11:10 pm
Thanks to you both. I've already read the documentation but I'm still just as clueless as ever. My partner is just as lost after reading it in spite of his C++ background. Maybe we're hopeless or something, but we just don't know where to PUT the codes. I've copied and pasted sample codes I've found in tutorials up and down the Screens.rpy page and even options.rpy and nothing appears to work.
I haven' read camille's tutorial yet, so I'll check that one out.
-
Kia
- Eileen-Class Veteran
- Posts: 1011
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
-
Contact:
#5
Post
by Kia » Fri Jan 15, 2016 12:16 am
this is the simplest way to customize a text button:
Code: Select all
textbutton _("REBORN") xalign 0.394 yalign 0.556 background None action Start() at bott
the order is: property value property value property value property value ...and so on
and a useful list:
http://www.renpy.org/doc/html/style_pro ... properties
Users browsing this forum: Bing [Bot]