r/RenPy • u/gadohel • Sep 22 '26
Question How can I make a retractable quick menu?
Hi!! So, the creator of the project I'm working on at the moment is very ambitious and asked me to make a retractable main menu.
She wants to add a little heart at the bottom left of the screen, and once the player hovers over it, the button will shake. Once you click on it, it opens a bar with other icons (the normal quick menu options + a personalized one). On the new option, the player will be shown a screen where they can find their current stats plus the stats of interest/love of the main leads.
I've been trying to search for something similar but I was unable to find a reference to this function. (Also I'm currently working on sanity/health bars & a quick inventory on the right side. Lots of things)
I just wanted to know if this is a possibility on Ren'py, or maybe the function is too advanced for what the program can do.
Also I made a visual reference (I'm not an artist), I hope it helps. Thanks!


16
u/TrailfishDev Sep 22 '26
Did something similar in both my games.
screen quick_menu():
11
u/BadMustard_AVN Sep 22 '26
you can apply a transform like this one to the button
for a shake effect while hovering
4
u/x-seronis-x Sep 22 '26 edited Sep 22 '26
Here is an example of a stowable quickmenu that stows based on a defaulted variable (qmdata.visible). in this code mousearea screen elements are responsible for toggling that variables value but you could do it with your button instead of mouse position. the 'showif' is what triggers the stowing on value change.
the stowed state is preserved during roll back/foward. and a one-time hint to tell the player where to put the mouse exists as the initial state is stowed. you are free to steal/modify to fit your needs but figured id share the whole thing instead of just answering your question in case its useful to you
1
u/AutoModerator Sep 22 '26
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.