The issue is, when the dialog has loaded all the text, as soon as the player clicks on the screen the dialog goes away. It will then display the buttons, but I would like the dialog to stay until the player has clicked on a button.
Here is a demo:
Code: Select all
screen show_buttons:
imagebutton:
xpos 300
ypos 300
idle "images/chair.png"
action Return("chair")
imagebutton:
xpos 500
ypos 300
idle "images/table.png"
action Return("table")
label start:
default me = Character("Me")
## !! Problem: when user clicks on screen, this dialog disappears, but I would like it to stay until a button has been clicked.
me "Please pick what you think is a table!"
show screen show_buttons
result = ui.interact()
if result == 'chair':
me "You selected Chair... not quite right!"
if result == 'table':
me "You selected Table... correct!"
return