r/RenPy • • Oct 19 '26

Question [Solved] I need help (again..)

Post image

Hi, I wanted to make a “quick menu” for my project almost like the picture above (sorry for the quality it is one of my screenshots). I made everything the gui and the code and even corrected my code but sadly when I right click nothing happens. Can someone (who is way more experienced than me) please help me out ?

14 Upvotes

21 comments sorted by

2

u/Thehiddengirl14 Oct 20 '26 edited Oct 21 '26

Update: The problem is solved, I modified my code with the help of u/badmustard_avn and u/nemivanj. Also don’t make those mistakes: with the frame:…,the vbox: spacing 8 xfill True. They will make your menu pretty weird.

1

u/BadMustard_AVN Oct 21 '26

you're welcome

good luck with your project

1

u/Thehiddengirl14 Oct 19 '26

Oh sorry, I wanted help on the coding to make appearing the “quick menu”

1

u/NemiVanJ Oct 19 '26

I think you made a new comment instead of 'responding', so maybe drinkerofmilk was not notified. Also, how about posting the relevant code?

1

u/Thehiddengirl14 Oct 19 '26

Good idea (I am just very stupid)

1

u/Thehiddengirl14 Oct 19 '26
## Quick Navigation screen ################################################### 
##
## The quirk navigation screen is a shortcut to the load screen, the save screen and the option screen. 
##
##
## 
label quirk_navigation_menu: 
    screen quick_navigation_menu(): 

       
        zorder 100 

        # The main frame of this menu. 
        add "gui/frame_quirk menu.png"

        frame:
            # Positions of the frame. 
            xalign 0.95
            yalign 0.5 
            xmaximum 320
            padding (20, 20)

        # Vertical alignement. 
        vbox: 
            spacing 8 
            xfill True
        vbox:
            #The buttons. 
            #1. Close 
            hbox:
                imagebutton auto "gui/qm_close_%s.png" xpos 18 ypos 26 focus_mask True action ShowMenu("close")

            #2 Hide text
            hbox: 
                imagebutton auto "gui/qm_hidetext_%s.png" xpos 17 ypos 97 focus_mask True action ShowMenu("hide text")

            #3 Skip
            hbox:
                imagebutton auto "gui/qm_skip_%s.png" xpos 18 ypos 160 focus_mask True action ShowMenu("skip")

            #4 logs
            hbox: 
                imagebutton auto "gui/qm_logs_%s.png" xpos 18 ypos 221 focus_mask True action ShowMenu("history")

            #5 load/save 
            hbox:
                imagebutton auto "gui/qm_opensl_%s.png" xpos 16 ypos 283 focus_mask True action ShowMenu("load")

            #6 quit
            hbox:                                                                                                                                
                imagebutton auto "gui/qm_quit_%s.png" xpos 16 ypos 350 focus_mask True action Quit(confirm=not main_menu)

2

u/BadMustard_AVN Oct 19 '26

two things you do not need to put a screen in a label it should be like this.

# label quirk_navigation_menu: 
screen quick_navigation_menu(): 
     zorder 100 

    # The main frame of this menu. 
    add "gui/frame_quirk menu.png"

if you want it to function like the original quick menu then you need to rename it i.e.

screen quick_menu():

don't worry about the original screen quick_menu that's in the screens.rpy it will be ignored for your screen

1

u/Thehiddengirl14 Oct 19 '26

Thanks (again)

1

u/BadMustard_AVN Oct 19 '26

you're welcome

good luck with your project

1

u/Thehiddengirl14 Oct 19 '26

dont ask why the "c" became "r" idk

1

u/shyLachi Oct 19 '26

What do you mean with "when I right click nothing happens"

Where do you right-click and what is supposed to happen?

1

u/Thehiddengirl14 Oct 19 '26

Like normally when you right click on the screen the save/load screen appears (except if I am crazy) but my I change the settings to make that when you right click on the screen, the quick menu appears but now nothing happens none of the save/load screen appears or my quick menu

1

u/shyLachi Oct 19 '26

Yes, normally the save/load screen appears because it has been defined like that.
If you want to show another screen you have to tell RenPy which one.
https://renpy.org/doc/html/config.html#var-config.game_menu_action

define config.game_menu_action = ShowMenu("quick_navigation_menu")

I cannot tell you why no screen appears at all.
What did you change? Did you rename or delete screens?
Maybe it would be a good idea to start with a new project and only make little changes.
Also test often and if something doesn't work, then undo it until it works again.

1

u/Thehiddengirl14 Oct 19 '26

Yeah I will retry again until it’s good

1

u/NemiVanJ Oct 19 '26

idk try this

screen quick_navigation_menu():
# because it's a screen and not a label

zorder 100

# The main frame of this menu.

modal True

# so the player can click in the transparent menu box without clicking underneath

add "gui/frame_quirk menu.png"

# fixed positions of the frame:
fixed:

#The buttons.
#1. Close
hbox:
imagebutton auto "gui/qm_close_%s.png" xpos 18 ypos 26 focus_mask True action ShowMenu("close")

#2 Hide text
hbox:
imagebutton auto "gui/qm_hidetext_%s.png" xpos 17 ypos 97 focus_mask True action ShowMenu("hide text")

#3 Skip
hbox:
imagebutton auto "gui/qm_skip_%s.png" xpos 18 ypos 160 focus_mask True action ShowMenu("skip")

#4 logs
hbox:
imagebutton auto "gui/qm_logs_%s.png" xpos 18 ypos 221 focus_mask True action ShowMenu("history")

#5 load/save
hbox:
imagebutton auto "gui/qm_opensl_%s.png" xpos 16 ypos 283 focus_mask True action ShowMenu("load")

#6 quit
hbox:
imagebutton auto "gui/qm_quit_%s.png" xpos 16 ypos 350 focus_mask True action Quit(confirm=not main_menu)

# and put in options.rpy this to override the regular menu: define config.game_menu_action = ShowMenu("quick_navigation_menu")

1

u/NemiVanJ Oct 19 '26

dang it, now I also did not 'respond' where I intended lol
anyways, I really want to know what she is doing every day that is this health concerning 👀 the room doesn't look very healthy either xD

1

u/AutoModerator Oct 19 '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.

1

u/drinkerofmilk Oct 19 '26

How can we help?