libs/loveutils: fix inconsistent argument alignment
This commit is contained in:
parent
3330e60a20
commit
f19edf9b72
|
@ -107,9 +107,9 @@ function Font:print(text, x, y, align, r, sx, sy, ox, oy, kx, ky)
|
|||
|
||||
self:set()
|
||||
if (self.spacing.active) then
|
||||
utils.graphics.printWithSpacing(text, self.spacing.size, align, x, y, r, sx, sy, ox, oy, kx, ky)
|
||||
utils.graphics.printWithSpacing(text, x, y, self.spacing.size, align, r, sx, sy, ox, oy, kx, ky)
|
||||
else
|
||||
utils.graphics.print(text, align, x, y, r, sx, sy, ox, oy, kx, ky)
|
||||
utils.graphics.print(text, x, y, align, r, sx, sy, ox, oy, kx, ky)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@ function Graphics.box(x, y, w, h)
|
|||
local w = math.floor(w)
|
||||
local h = math.floor(h)
|
||||
local a = a or 1
|
||||
|
||||
|
||||
local r, g, b, a = love.graphics.getColor( )
|
||||
|
||||
love.graphics.setColor(r, g, b, 0.3 * a)
|
||||
|
@ -36,7 +36,7 @@ function Graphics.print(text, x, y, align, r, sx, sy, ox, oy, kx, ky)
|
|||
love.graphics.print(text, x - (width), y, r, sx, sy, ox, oy, kx, ky)
|
||||
end
|
||||
|
||||
function Graphics.printWithSpacing(text, spacing, align, x, y, r, sx, sy, ox, oy, kx, ky)
|
||||
function Graphics.printWithSpacing(text, x, y, spacing, align, r, sx, sy, ox, oy, kx, ky)
|
||||
-- DO NOT USE THIS FUNCTION IN A "UPDATE" FUNCTION !
|
||||
-- it's pretty heavy to use as it use a loop to get every character in a text
|
||||
local font = love.graphics.getFont()
|
||||
|
|
Loading…
Reference in New Issue