What's code for transparent buttons on main menu?

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.
Post Reply
Message
Author
screenmac
Newbie
Posts: 9
Joined: Tue Jul 29, 2014 6:17 pm
Contact:

What's code for transparent buttons on main menu?

#1 Post by screenmac »

I'm new here. I've been searching for transparent button everywhere on search forum. No luck. I'm not looking for different transparent button.

I'm looking something like this on main menu -- Text Mouse move and highlight that image.

Metro Glass

Image

Image
Yes... yes. This is the one. I want this on Ren.Py.
http://demos.jquerymobile.com/1.3.0-rc. ... s/buttons/

I don't know how to code this. How do I do this?

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: What's code for transparent buttons on main menu?

#2 Post by PyTom »

You pretty much want:

Code: Select all

style button:
    idle_background Frame("idle_button.png", 5, 5) 
    hover_background Frame("hover_button.png", 5, 5) 
    insensitive_background Frame("insensitive_button.png", 5, 5) 
If a png is partially transparent, the button will be as well.
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

screenmac
Newbie
Posts: 9
Joined: Tue Jul 29, 2014 6:17 pm
Contact:

Re: What's code for transparent buttons on main menu?

#3 Post by screenmac »

Thank you soo much.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]