you can now edit archetype and args of spawns in editor with "t" and "d" when selected, respectively

This commit is contained in:
lustlion
2022-03-10 18:23:47 +01:00
parent 93bfe0bda4
commit dbfae2f74e
4 changed files with 89 additions and 11 deletions

View File

@@ -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")