Add optional width parameter to drawBorder method
This commit is contained in:
parent
586ea68d2b
commit
e952d22d7f
@ -39,7 +39,10 @@ end
|
||||
|
||||
--- Рисует границу вокруг элемента (с псевдо-затенением)
|
||||
--- @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
|
||||
love.graphics.setColor(0.2, 0.2, 0.2)
|
||||
love.graphics.line({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user