Exception: Exception: ui.interact called with non-empty widget/layer stack. Did you forget a ui.close() somewhere?
Code: Select all
init python:
def countdown(st, at, length=0.0):
global remaining
remaining = length - st
if remaining >= 10.0:
return Text("[remaining:.1f]", color="#fff", size=72), .1
if remaining <= 0.0:
renpy.hide_screen( 'test' )
return Text("[remaining:.1f]", color="#f00", size=72), .1
image countdown = DynamicDisplayable(countdown, length=15.0)
# default remaining = 15.0
screen find_card:
imagemap:
ground "WAREHOUSE1.jpg"
hover "WAREHOUSE1_hover.jpg"
#1025, 362, 80,46
hotspot (1025, 362, 80, 46) clicked Jump("found_me")
#899,484,81,87
hotspot (1025, 362, 80, 46) action [Function(renpy.call_screen("find_card2"))]
screen find_card2:
imagemap:
ground "WAREHOUSE2.jpg"
hover "WAREHOUSE2_hover.jpg"
#561,530,22,84
hotspot (561, 530, 22, 84) action [Function(renpy.call_screen("find_card"))]
label start:
"this is a text"
show countdown at center
call screen find_card
"test"
label found_me:
if remaining >= 10.0:
jump scene1
elif remaining <= 0.0:
jump scene2
label scene1:
"Good Ending"
return
label scene2:
"Bad Ending"
return