Displaying screen over dialogue box, help? (SOLVED)

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
exaltedexoskeleton
Newbie
Posts: 12
Joined: Wed Feb 06, 2013 10:32 pm
Contact:

Displaying screen over dialogue box, help? (SOLVED)

#1 Post by exaltedexoskeleton » Sun May 04, 2014 10:56 pm

I want one of my screens (a stat screen that will be there the whole game) to display over the dialogue box. I've tried using zorder and I've tried to figure out how to use overlay, but nothing's worked. I'm sure I'm missing something really simple, but I'm totally stumped.

Help?
Last edited by exaltedexoskeleton on Mon May 05, 2014 4:29 am, edited 1 time in total.

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Displaying screen over dialogue box, help?

#2 Post by Asceai » Sun May 04, 2014 11:02 pm

zorder should be all you need. Post code.

User avatar
exaltedexoskeleton
Newbie
Posts: 12
Joined: Wed Feb 06, 2013 10:32 pm
Contact:

Re: Displaying screen over dialogue box, help?

#3 Post by exaltedexoskeleton » Mon May 05, 2014 1:52 am

Here's my code:

Code: Select all

screen cc_stuff:
    use quick_menu
    modal True
    zorder 1
    imagebutton:
        pos (160,920)
        idle "mirror_button.png"
        hover "mirror_button.png"
        action Show("mirror")#empty
    imagebutton:
        pos (310,920)
        idle "cafrec_button.png"
        hover "cafrec_button.png"
        action Show("cr_pg1")
    imagebutton:
        pos (460,920)
        idle "diary_button.png"
        hover "diary_button.png"
        action Show("diary_pg1")
    imagebutton:
        pos (610,920)
        idle "watch_button.png"
        hover "watch_button.png"
        action Show("watch")
And to set the say screen lower:

Code: Select all

screen say:
    zorder 0
Other than that the say screen is Ren'Py default. I did put the code below in the options file though, if this changes anything:

Code: Select all

    style.window.background = Frame("text_frame.png", 10, 10)

    style.window.left_margin = 60
    style.window.right_margin = 60
    #style.window.top_margin = 6
    style.window.bottom_margin = 100

    style.window.yminimum = 300
I've also tried setting my screen's zorder to 100 and switching the zorder for my screen and the say screen just for fun. Nothing works, the dialogue box is still showing over the menu buttons.

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Displaying screen over dialogue box, help?

#4 Post by Asceai » Mon May 05, 2014 1:54 am

Just for testing purposes, try removing 'use quick_menu'.

EDIT: Hmm, actually, there's no reason that would fix anything. On the other hand, there's no reason for this problem to be happening at all, so maybe a solution that shouldn't work is the perfect way to solve a problem that shouldn't happen =P

EDIT 2: I can't reproduce. I pasted your code in, created some images and changed nothing else:

Code: Select all

screen cc_stuff:
    use quick_menu
    modal True
    zorder 1
    imagebutton:
        pos (160,920)
        idle "mirror_button.png"
        hover "mirror_button.png"
        action Show("mirror")#empty
    imagebutton:
        pos (310,920)
        idle "cafrec_button.png"
        hover "cafrec_button.png"
        action Show("cr_pg1")
    imagebutton:
        pos (460,920)
        idle "diary_button.png"
        hover "diary_button.png"
        action Show("diary_pg1")
    imagebutton:
        pos (610,920)
        idle "watch_button.png"
        hover "watch_button.png"
        action Show("watch")

# The game starts here.
label start:
    show screen cc_stuff

    "You've created a new Ren'Py game."
    "Once you add a story, pictures, and music, you can release it to the world!"

    return
The buttons appear over the dialogue box.
How are you showing the screen?

User avatar
exaltedexoskeleton
Newbie
Posts: 12
Joined: Wed Feb 06, 2013 10:32 pm
Contact:

Re: Displaying screen over dialogue box, help?

#5 Post by exaltedexoskeleton » Mon May 05, 2014 4:28 am

*headdesk*
Well, that's the issue. I was changing the zorder for the stat screen and not the screen I was calling that *used* that stat screen.
Thank you so much for your patience and sorry for the trouble.

HypnoKitten
Regular
Posts: 30
Joined: Tue May 20, 2014 3:22 pm
Contact:

Re: Displaying screen over dialogue box, help? (SOLVED)

#6 Post by HypnoKitten » Sat Jun 07, 2014 12:43 pm

Glad you posted this though, actually helped me quite a bit, thank you :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot]