
I have several functions that use input_function to bring in a URL or text from a user in order to bring in specfic items to the game.
Example a URL that updates the image on some measuring tools.
function createButtons()
self.createInput( input_function = “imageInput”,
function_owner = self,
label = “Paste Tool URL here”,
position = {0, 0.38, 5.4},
rotation = {0,0,0},
scale = {1,1,1},
width = 2200,
height = 150,
font_size = 100,
validation = 1,
tab = 1,
alignment = 3,
})
end
function rosterInput(obj, color, input, stillEditing)
if not stillEditing then
rosterString = “‘\n” .. simplifyString(input) .. “/n’”
if string.find(input,”\n”) then
rosterName = string.sub(input,1,string.find(input,”\n”)-1)
if string.len(rosterName) > 50 then
rosterName = “Unnamed Roster”
end
else
rosterName = “Unnamed Roster”
end
end
end
There is much more going on with these, but this is an example of what is failing.
The behavor is that the text does not load in rosterString

Here is the game save

It appears that the stillEditing variable is destroyed after leaving the text box as it doesn’t return anything when that happens (in my experience)


