> Quitting out of the main menu gives me a "transparent" background--I could set this to an actual image or color to fix the problem but the background on the main menu pans upward and I don't want this image to jump.
(Quitting from main menu: http://puu.sh/hm3LV/633449201e.png )
> Quitting out of the loading screen when clicked from the main menu reproduces the same problem.
> Quitting from the text of the game itself works fine!
(Game text: http://puu.sh/hm3OR/c6d82019e6.png and quitting from game: http://puu.sh/hm3R4/3ef2496da1.png )
> But when quitting from the save/load or preference screens, instead of displaying the yes/no as an overlay (on top of the current menu), it displays the current background in-game.
(Preferences screen: http://puu.sh/hlzYq/c3331ee1eb.png Save screen: http://puu.sh/hlzXA/fe580fa7fc.png Quitting out of either of these: http://puu.sh/hm3R4/3ef2496da1.png )
I'd like to have the yes/no displayed as an overlay on top of my save/load and preference screens instead of changing the background back to the game background. Any ideas?
The code for my yes/no prompt is below:
Code: Select all
screen yesno_prompt(message, yes_action, no_action):
modal True
imagemap:
alpha 0.0
ground 'yesno.png'
idle 'yesno_idle.png'
hover 'yesno_selected.png'
hotspot (475,300, 60, 35) action yes_action
hotspot (575, 300, 55, 35) action no_action
if message == layout.ARE_YOU_SURE:
add "yesno_areyousure.png"
elif message == layout.DELETE_SAVE:
add "yesno_deletesave.png"
elif message == layout.OVERWRITE_SAVE:
add "yesno_overwritesave.png"
elif message == layout.LOADING:
add "yesno_loading.png"
elif message == layout.QUIT:
add "yesno_quit.png"
elif message == layout.MAIN_MENU:
add "yesno_mainmenu.png"