Displaying screen over dialogue box, help? (SOLVED)
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.
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.
- exaltedexoskeleton
- Newbie
- Posts: 12
- Joined: Wed Feb 06, 2013 10:32 pm
- Contact:
Displaying screen over dialogue box, help? (SOLVED)
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?
Help?
Last edited by exaltedexoskeleton on Mon May 05, 2014 4:29 am, edited 1 time in total.
- 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?
zorder should be all you need. Post code.
- exaltedexoskeleton
- Newbie
- Posts: 12
- Joined: Wed Feb 06, 2013 10:32 pm
- Contact:
Re: Displaying screen over dialogue box, help?
Here's my code:
And to set the say screen lower:
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:
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.
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")Code: Select all
screen say:
zorder 0Code: 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- 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?
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:
The buttons appear over the dialogue box.
How are you showing the screen?
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
How are you showing the screen?
- exaltedexoskeleton
- Newbie
- Posts: 12
- Joined: Wed Feb 06, 2013 10:32 pm
- Contact:
Re: Displaying screen over dialogue box, help?
*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.
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)
Glad you posted this though, actually helped me quite a bit, thank you 
Who is online
Users browsing this forum: Bing [Bot]
