These are the functions I'm using to take a value and store it as names:
Code: Select all
init python:
def forname_func(newstring):
store.forname = newstring
def surname_func(newstring):
store.surname = newstring
Code: Select all
button:
id "forname_input"
pos (63,12)
action NullAction()
add Input(size=8, length=13, hover_color="#ffffff", color="#e2d4bf", default=forname, changed=forname_func, button=renpy.get_widget("nameinput","forname_input"))
button:
id "surname_input"
pos (67,20)
action NullAction()
add Input(size=8, length=10, hover_color="#ffffff", color="#e2d4bf", default=surname, changed=surname_func, button=renpy.get_widget("nameinput","surname_input"))