On press hotspot opens PopUp
Posted: Sun Jun 02, 2019 5:16 pm
Greetins!
I made this little screen
So it should show the pop up when I press the hotspot casa_hallway. The problem is that it shows the popup, but it also continues the script, meening it goes to the next "jump" in the code, in this case call screen bg_casa_bathroom is there a way to just show the pop up with out continuing the script?
Thanks!
I made this little screen
Code: Select all
screen comingsoon:
modal True
zorder 100
fixed:
area 500, 500, 620, 200
add "images/gui/notify-comingsoon.png"
hbox:
yalign 0.10
xalign 0.03
text _('Still under development')
timer 3.25 action Hide('comingsoon')
screen bg_casa_andy_room:
imagemap:
ground "images/bgs/casa/andy-room.png"
hover "images/bgs/casa/andy-room-hover.png"
hotspot(811, 336, 269, 281) action Return("casa_cama_andy")
hotspot(1163, 122, 114, 596) action Return("casa_hallway")
label label_casa_andy_room:
hide bg_casa_hallway
call screen bg_casa_andy_room
if _return == "casa_cama_andy":
hide bg_casa_andy_room
jump label_casa_frente
elif _return == "casa_hallway":
show screen comingsoon
label label_casa_bathroom:
hide bg_casa_hallway
call screen bg_casa_bathroom
if _return == "casa_livingroom":
hide bg_casa_hallway
jump label_casa_hallway
Thanks!