Transparent yes/no prompt(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
SONTSE
Regular
Posts: 96
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 11 VN's so far
Discord: jkx0282_10798
Contact:

Transparent yes/no prompt(solved)

#1 Post by SONTSE »

UPD: Solved! Thank you SinnyROM

for yes/no prompts I have a moveable transparent window that shows over the other screen elements.

and it works fine and cool, but if I am on main_menu and trying to exit game with a cross button from window corner, it is't shown over main menu. instead its shown over transparent grid with no background at all.

whats more strange - if i try to Quit with in-game quit button (and with confirm=True) its shown over main menu as it should be

so I'm astounded. What should I do and what's going on?

code of my prompt below

Code: Select all

screen yesno_prompt(message, yes_action, no_action):

    drag:
        drag_name "drag_message"
        drag_handle (0,0,1.0,1.0)
        xalign 0.5 yalign 0.5
        drag_offscreen True
        
        imagemap:
            
            ground "ui/yesno_ground.png"
            idle "ui/yesno_idle.png"
            hover "ui/yesno_hover.png"
            
            hotspot (20, 167, 449, 96):
                action yes_action
                
            hotspot (469, 167, 449, 96):
                action no_action

Last edited by SONTSE on Sat May 23, 2015 9:07 pm, edited 3 times in total.

User avatar
SinnyROM
Regular
Posts: 166
Joined: Mon Jul 08, 2013 12:25 am
Projects: Blue Birth
Organization: Cosmic Static Games
Contact:

Re: Transparent yes/no prompt

#2 Post by SinnyROM »

I had the same issue with my yes/no prompt, and found a solution with one config variable: http://lemmasoft.renai.us/forums/viewto ... 99#p369299

Post Reply

Who is online

Users browsing this forum: Google [Bot]