I wanted to add a texbutton, on the mini game label, saying "Quit".
But I wanted it to be like the "Are you sure you want to quit?". So the person can answer yes or no.
I found this code on screens.
Code: Select all
screen confirm(message, yes_action, no_action):
## Ensure other screens do not get input while this screen is displayed.
modal True
zorder 200
style_prefix "confirm"
add "gui/overlay/confirm.png"
frame:
vbox:
xalign .5
yalign .5
spacing 45
label _(message):
style "confirm_prompt"
xalign 0.5
hbox:
xalign 0.5
spacing 150
textbutton _("Yes") action yes_action
textbutton _("No") action no_action
## Right-click and escape answer "no".
key "game_menu" action no_action
Does anyone know how I can edit this?
Thanks