Hi, I have some questions about textbutton customization. The most urgent is that I can't take off that blue frame that you can see in the attachment.
Also how can i add the font and color of a textbutton?
Textbutton customization problem
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.
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.
- RaikonKitsune
- Regular
- Posts: 39
- Joined: Mon Apr 17, 2017 9:36 am
- Projects: Reimei no Gakuen
- Tumblr: raikonkitsune
- Deviantart: RaikonKitsune
- itch: Raikon Kitsune
- Contact:
Textbutton customization problem
- Attachments
-
- question.jpg (10.66 KiB) Viewed 568 times
-
mikolajspy
- Regular
- Posts: 169
- Joined: Sun Jun 04, 2017 12:05 pm
- Completed: Too many, check signature
- Deviantart: mikolajspy
- Location: Wrocław, Poland
- Contact:
Re: Textbutton customization problem
For changing color and font you can simply use something like that:
But probably there's better way to do it.
I don't know where did your frame came from, I believe you would need to delete some part of code, but I can't help without seeing how that code looks like.
Code: Select all
textbutton _("{color=#ff0000}{font=YourFont.otf}ButtonName{/font}{/color}") action YourActionI don't know where did your frame came from, I believe you would need to delete some part of code, but I can't help without seeing how that code looks like.
- xavimat
- Eileen-Class Veteran
- Posts: 1458
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Contact:
Re: Textbutton customization problem
You seem to use the old GUI. There is a long explanation about customization of the new GUI in the doc: https://www.renpy.org/doc/html/gui.html
There are old customization tutorials in the cookbook. Search there
Textbuttons are a bit tricky because they wrap together button and text properties. You need the prefix "text_" for the specific text properties.
There are old customization tutorials in the cookbook. Search there
Code: Select all
textbutton "BLA BLA":
text_font "myfont.ttf"
text_color "#f00"
background NoneComunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
- RaikonKitsune
- Regular
- Posts: 39
- Joined: Mon Apr 17, 2017 9:36 am
- Projects: Reimei no Gakuen
- Tumblr: raikonkitsune
- Deviantart: RaikonKitsune
- itch: Raikon Kitsune
- Contact:
Re: Textbutton customization problem
Thank you! 
Who is online
Users browsing this forum: Bing [Bot]