From e952d22d7f790d7045ee9d468965407bf856b84f Mon Sep 17 00:00:00 2001 From: PeaAshMeter Date: Sat, 13 Dec 2025 01:22:05 +0300 Subject: [PATCH] Add optional width parameter to drawBorder method --- lib/simple_ui/element.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/simple_ui/element.lua b/lib/simple_ui/element.lua index d73e462..fb620bf 100644 --- a/lib/simple_ui/element.lua +++ b/lib/simple_ui/element.lua @@ -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({