using drawTextBox for editor info and spawn info
adjustement of keybinds
This commit is contained in:
@@ -170,12 +170,15 @@ function drawSpawns()
|
||||
)
|
||||
|
||||
if spawn.selected then
|
||||
local text = spawn.archetype.type.."\n["..spawn.args[1]..","..spawn.args[2].."]\n"
|
||||
for i=3, #spawn.args do
|
||||
if i > 3 then text = text .. ", " end
|
||||
text = text .. tostring(spawn.args[i])
|
||||
local text = spawn.archetype.type.."\n---\nPosition\n["..spawn.args[1]..","..spawn.args[2].."]"
|
||||
if #spawn.args > 2 then
|
||||
text = text .. "\n---\nData:\n"
|
||||
for i=3, #spawn.args do
|
||||
if i > 3 then text = text .. ", " end
|
||||
text = text .. tostring(spawn.args[i])
|
||||
end
|
||||
end
|
||||
love.graphics.print(
|
||||
drawTextBox(
|
||||
text,
|
||||
spawn.args[1] - Camera.pos.x + 20,
|
||||
spawn.args[2] - Camera.pos.y
|
||||
|
||||
Reference in New Issue
Block a user