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.
Completed: Eight Sweets, The Heart of Tales, [redacted] Life, Must Love Jaws, A Tune at the End of the World, Three Guys That Paint, The Journey of Ignorance, Portal 2.5.
I'm trying to add images behind the text buttons in the Main Menu and Game Menu (aka the Navigation screen). The images are .png files of an idle button and a hover button. So far, I've programmed textbuttons in the Navigation screen. But how would I add imagebuttons with text?
A work-around I used to use would be to save buttons with the text already printed onto them. But here, that would add a huge amount of images to make (an idle and hover image for each button, timed by how many buttons with text you want). Plus, it would stop people from being able to change the font for accessibility purposes.
Imperf3kt wrote: ↑Sat Apr 13, 2019 5:18 pm
Sure!
You just need to use an idle_foreground and hover_foreground
You are a lifesaver. I was looking for something like this just hours ago and figured, eh, I'll just make do without image backgrounds and go with plain textbuttons, and here you are. Thanks!
Completed: Eight Sweets, The Heart of Tales, [redacted] Life, Must Love Jaws, A Tune at the End of the World, Three Guys That Paint, The Journey of Ignorance, Portal 2.5.