First off, Hello! I’ve been lurking for about a month now and trying to get my feet wet. I’ve gone through the Getting Started Project and love what I see so far.
I found the Dirty Larry GUI library and thought it would be fun to tinker with since my future projects will likely have the need for several input formats like this. I ran into an issue almost immediately that I don’t know where to look to resolve.
Basically it’s duplicating keystrokes for the text input. Even backspace.
My gui script
local dirtylarry = require "dirtylarry/dirtylarry"
function init(self)
msg.post(".", "acquire_input_focus")
end
function on_input(self, action_id, action)
self.input_default = dirtylarry:input("main_text", action_id, action, gui.KEYBOARD_TYPE_DEFAULT, "Default text")
print(dirtylarry:input("main_text", action_id, action, gui.KEYBOARD_TYPE_DEFAULT, "Default text"))
end
Any ideas? I’ve read the GUI manual but, like I said I’m new so I could be missing something obvious.
Thanks!
-Josh