screen confirm(message, yes_action, no_action, yes_text=_("Yes"), no_text=_("No"), dont_ask_again=None):
key "rollback" action NullAction()
zorder 1000
style_prefix "confirm"
imagebutton:
idle '#0003'
hover '#0003'
hovered Play("sound", "music/hover.wav")
action NullAction()
add 'conf' yzoom 1 xalign .5 yalign .5 xsize YOUR NUMBER HERE ysize YOUR NUMBER HERE
viewport:
xmaximum 540
ymaximum 310
add '#0000'
xalign .5 yalign .5
vbox:
xmaximum 500
ymaximum 250
xpos 25
ypos 5
hbox:
xsize 490
ysize 210
xalign .5
yalign .5
spacing 4
text _(message):
size 15 font 'gui/missfortune/fonts/Wadik.otf'
color '#fff'
xalign .5
yalign .4
hbox:
xalign .5
yalign .5
xsize 490
ysize 50
if no_action is not None:
vbox:
xmaximum 130
ymaximum 45
xalign 0.5
yalign .5
viewport:
xmaximum 130
ymaximum 45
imagebutton:
idle 'button_0'
hover 'button_1'
hovered Play("sound", "music/hover.wav")
action no_action
text no_text xalign .5 yalign .48 font 'gui/missfortune/fonts/Wadik.otf' size 15 color '#FFFFFF'
vbox:
xmaximum 130
ymaximum 45
xalign 0.5
yalign .5
viewport:
xmaximum 130
ymaximum 45
imagebutton:
idle 'button_0'
hover 'button_1'
hovered Play("sound", "music/hover.wav")
action yes_action
text yes_text xalign .5 yalign .48 font 'gui/missfortune/fonts/Wadik.otf' size 15 color '#FFFFFF'