I have no idea how to get that value so I found this thread:
viewtopic.php?f=51&t=38080
and incorporated some of that into my code.
Relevant part of screen code:
Code: Select all
screen custom_input(question,filler):
modal True
frame:
hbox:
text [question]
hbox:
input default [filler] length 21 id "custom_unos"
hbox:
vbox:
textbutton _("OK") action (input_func(renpy.get_widget("custom_input","custom_unos")), Return())
vbox:
textbutton _("Cancel") action Return(False)
Is there anyway I can grab the value entered into the input field by pressing the OK button?