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