prompt box style, entity prompts improvement, killing entities and particles improvement

This commit is contained in:
lustlion
2022-03-11 13:04:36 +01:00
parent 8c8e4808ad
commit 96b1e750e4
6 changed files with 66 additions and 22 deletions

View File

@@ -210,24 +210,24 @@ function doEditorEdit()
and love.keyboard.isDown("lctrl") ~= true
then
if selecting_tile ~= nil then
if Keybind:checkDown(Keybind.generic.lclick) then
if Keybind:checkDown(Keybind.editor.tile_set) then
setTile(vertical,horizontal,selecting_tile)
elseif Keybind:checkDown(Keybind.generic.rclick) then
elseif Keybind:checkDown(Keybind.editor.tile_remove) then
setTile(vertical,horizontal,0)
end
reloadLevelTiles()
else
if Keybind:checkDown(Keybind.generic.lclick) then
if Keybind:checkDown(Keybind.editor.entity_select) then
deselectSpawns()
selectSpawns(mouse_x,mouse_y)
end
if Keybind:checkDown(Keybind.generic.rclick) then
if Keybind:checkDown(Keybind.editor.entity_move) then
moveSpawns(mouse_x,mouse_y)
end
if Prompt.active_prompt == nil then
if Keybind:checkDown({keys={"t"}}) then
if Keybind:checkDown(Keybind.editor.entity_modify_archetype) then
promptSpawnArchetype()
elseif Keybind:checkDown({keys={"d"}}) then
elseif Keybind:checkDown(Keybind.editor.entity_modify_data) then
promptSpawnArgs()
end
end