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

@@ -117,6 +117,7 @@ function stepEditor()
editor_mode = not editor_mode
deselectSpawns()
createTileObjects()
restartGame()
end
end
@@ -223,6 +224,11 @@ function doEditorEdit()
if Keybind:checkDown(Keybind.generic.rclick) then
moveSpawns(mouse_x,mouse_y)
end
if Keybind:checkDown({keys={"t"}}) then
promptSpawnArchetype()
elseif Keybind:checkDown({keys={"d"}}) then
promptSpawnArgs()
end
end
elseif Keybind:checkPressed(Keybind.generic.lshift) then
expandLevelCanvas(math.sign(expand_h),math.sign(expand_v))