Code: Select all
love.graphics.print = function (...)
if not love.graphics.getFont() then
love.graphics.setFont(12)
end
love.graphics.print1(...)
love.graphics.print = love.graphics.print1
end
Code: Select all
love.graphics.print = function (...)
if not love.graphics.getFont() then
love.graphics.setFont(12)
end
love.graphics.print1(...)
love.graphics.print = love.graphics.print1
end
The love.graphics.print gets reset for every loop iteration for some reason (unknown to me).Simtex wrote:This scales properly:This doesn't (only the position of love.graphics.scale has changed):Code: Select all
love.graphics.oldPrint = love.graphics.print function love.draw() love.graphics.scale(2, 2) love.graphics.print("Hardcore LOVE", 1, 1) end function love.graphics.print(text, x, y) love.graphics.oldPrint(text, x, y) end
Why?Code: Select all
love.graphics.oldPrint = love.graphics.print function love.draw() love.graphics.print("Hardcore LOVE", 1, 1) end function love.graphics.print(text, x, y) love.graphics.scale(2, 2) love.graphics.oldPrint(text, x, y) end
Code: Select all
function love.draw()
print(love.graphics.print)
love.graphics.print("Hardcore LOVE", 1, 1)
end
Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests