fix indentation and cleaning

This commit is contained in:
lustlion 2022-03-12 18:28:35 +01:00
parent feed65cf6d
commit 3a5e0b395b

View File

@ -14,13 +14,10 @@ function drawTextBox(text,x,y,style)
local color = style.color or {1,1,1,1} local color = style.color or {1,1,1,1}
local background_color = style.background_color or {0,0,0,1} local background_color = style.background_color or {0,0,0,1}
local margin = style.margin or 5 local margin = style.margin or 5
local rotation = style.rotation or 0
local sx = style.sx or 1
local sy = style.sy or style.sx
local lines = 1 local lines = 1
for i in text:gmatch("\n") do for i in text:gmatch("\n") do
lines = lines + 1 lines = lines + 1
end end
love.graphics.setColor(unpack(color)) love.graphics.setColor(unpack(color))