you can now edit archetype and args of spawns in editor with "t" and "d" when selected, respectively
This commit is contained in:
@@ -9,7 +9,7 @@ local function backspace(text)
|
||||
-- so we couldn't do string.sub(text, 1, -2).
|
||||
return string.sub(text, 1, byteoffset - 1)
|
||||
end
|
||||
|
||||
|
||||
return ""
|
||||
end
|
||||
|
||||
@@ -20,7 +20,7 @@ Prompt = {
|
||||
name = "input",
|
||||
canceled = false,
|
||||
closing = false,
|
||||
|
||||
|
||||
active_prompt = nil,
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ function Prompt:keypressed(key, scancode, isrepeat)
|
||||
end
|
||||
|
||||
function Prompt:update()
|
||||
|
||||
|
||||
end
|
||||
|
||||
function Prompt:textinput(text)
|
||||
@@ -65,4 +65,3 @@ local test_prompt = Prompt:new()
|
||||
assert(test_prompt.name == "input")
|
||||
test_prompt.name = "foobar"
|
||||
assert(Prompt.name == "input")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user