Add optional width parameter to drawBorder method

This commit is contained in:
PeaAshMeter 2025-12-13 01:22:05 +03:00
parent 586ea68d2b
commit e952d22d7f

View File

@ -39,7 +39,10 @@ end
--- Рисует границу вокруг элемента (с псевдо-затенением) --- Рисует границу вокруг элемента (с псевдо-затенением)
--- @param type "outer" | "inner" --- @param type "outer" | "inner"
function uiElement:drawBorder(type) --- @param width? number
function uiElement:drawBorder(type, width)
love.graphics.setLineWidth(width or 4)
if type == "inner" then if type == "inner" then
love.graphics.setColor(0.2, 0.2, 0.2) love.graphics.setColor(0.2, 0.2, 0.2)
love.graphics.line({ love.graphics.line({