Making quick menu appear only during dialogue screens?[FIX]

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
User avatar
Sleepy
Regular
Posts: 136
Joined: Wed Nov 27, 2013 6:12 pm
Projects: Camera Anima
Organization: EXP-resso Mutt
Tumblr: sleepy-does-games.tumblr.com
itch: https://expressomutt
Contact:

Making quick menu appear only during dialogue screens?[FIX]

#1 Post by Sleepy » Mon Sep 19, 2016 6:04 am

I've been playing around with the newest update and while I've been able to convert most of my old build into the new update, I've been having some problems with the quick menu.

In the old version, the quick menu automatically appeared or hid depending on if you were in the middle of a dialogue scene and then would disappear during other screens (such as, exploration screens). However, I'm finding that the quick menu will keep showing even during exploration screens.

I know "config.overlay_screens.append("quick_menu")" is what helps it appear but if I move it or blank it out, the quick menu will disappear entirely. Likewise, I haven't been able to get something like this to work:

Code: Select all

    if say:
        hbox:
            style_prefix "quick"

            xalign 0.75
            yalign 0.98

            textbutton _("Back") action Rollback()
            textbutton _("History") action ShowMenu('history')
            textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
            textbutton _("Auto") action Preference("auto-forward", "toggle")
            textbutton _("Save") action ShowMenu('save')
            textbutton _("Q.Save") action QuickSave()
            textbutton _("Q.Load") action QuickLoad()
            textbutton _("Prefs") action ShowMenu('preferences')
Are there any particular ways to get around this?
Last edited by Sleepy on Mon Sep 19, 2016 5:15 pm, edited 1 time in total.
W.I.P.

Image

Complete

Image Image

juliaa
Regular
Posts: 26
Joined: Fri Sep 16, 2016 7:10 pm
Contact:

Re: Making quick menu appear only during dialogue screens?

#2 Post by juliaa » Mon Sep 19, 2016 3:06 pm

I wonder if this is the problem

Code: Select all

# Ensure this appears on top of other screens.
    zorder 100
It seems like it places the menu on top of all screens. Maybe you have to specify which screens you want it on instead.

This is just my thinking because am a noob to ren'py lol.

User avatar
Sleepy
Regular
Posts: 136
Joined: Wed Nov 27, 2013 6:12 pm
Projects: Camera Anima
Organization: EXP-resso Mutt
Tumblr: sleepy-does-games.tumblr.com
itch: https://expressomutt
Contact:

Re: Making quick menu appear only during dialogue screens?

#3 Post by Sleepy » Mon Sep 19, 2016 4:28 pm

I don't think that's the issue. I've blanked that line out before but the quick menu screen will continue to show on all screens, including the choice menu or during transitions.

IIRC, what Zorder does is overlay quick menu over another screen (i.e: the say screen). Which I want, just not where it's supposed to.

EDIT:

I looked over the coding for the older version of Ren'py and found a fix. In the older version, the say screen includes "use quick_menu". So I removed "config.overlay_screens.append("quick_menu")" from the quick menu screen and added "use quick_menu" to the say screen:

Code: Select all

screen say(who, what):
    style_prefix "say"

    window:
        id "window"

        text what id "what"

        if who is not None:

            window:
                style "namebox"
                text who id "who"

    # If there's a side image, display it above the text. Do not display
    # on the phone variant - there's no room.
    if not renpy.variant("small"):
        add SideImage() xalign 0.0 yalign 1.0
    
    # Use the quick menu.
    use quick_menu
W.I.P.

Image

Complete

Image Image

juliaa
Regular
Posts: 26
Joined: Fri Sep 16, 2016 7:10 pm
Contact:

Re: Making quick menu appear only during dialogue screens?[F

#4 Post by juliaa » Mon Sep 19, 2016 6:30 pm

Ok I see I was no help lol, but am glad you got it sorted.

User avatar
XxrenxX
Veteran
Posts: 267
Joined: Tue Oct 02, 2012 2:40 am
Projects: Chasing
Deviantart: bara-ettie
Location: Canada
Contact:

Re: Making quick menu appear only during dialogue screens?[FIX]

#5 Post by XxrenxX » Sat Sep 08, 2018 6:28 pm

Just thought I would add (I'm aware this is old) but if you are using any screens where you have to window hide, you will have to hide screen quick_menu as well.

Code: Select all

label cell: 
    window hide
    hide screen quick_menu
    show cell at pickup
    $ renpy.pause(0.2)
    return
quick example in case I didn't fully make sense.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]