mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
V1 update (#1)
This commit is contained in:
committed by
Squishy (C6H12O6+NaCl+H2O)
parent
3343d8711b
commit
1d6643448e
16
funcs.lua
16
funcs.lua
@@ -94,6 +94,13 @@ function math.roundUnit(n,u)
|
||||
return math.floor(n/u+.5)*u
|
||||
end
|
||||
|
||||
---@return table
|
||||
function table.pack(...)
|
||||
local t = {...}
|
||||
t.n = select('#', ...)
|
||||
return t
|
||||
end
|
||||
|
||||
---@param t1 table
|
||||
---@param t2 table
|
||||
---@return table t
|
||||
@@ -143,15 +150,6 @@ function drawText(text, x, y, size, orientation, color)
|
||||
love.graphics.printf(text, x, y, size*2, orientation, nil, 0.5)
|
||||
end
|
||||
|
||||
function drawBoldText(text, x, y, size, orientation, color)
|
||||
if color == nil then color = {1, 1, 1, 1} end
|
||||
love.graphics.setFont(FONT_bold)
|
||||
love.graphics.setColor(0, 0, 0, 0.8)
|
||||
love.graphics.printf(text, x+1, y+1, size*2, orientation, nil, 0.50)
|
||||
love.graphics.setColor(color)
|
||||
love.graphics.printf(text, x, y, size*2, orientation, nil, 0.5)
|
||||
end
|
||||
|
||||
function drawBigText(text, x, y, size, orientation, color)
|
||||
if color == nil then color = {1, 1, 1, 1} end
|
||||
love.graphics.setFont(FONT_big)
|
||||
|
||||
Reference in New Issue
Block a user