Narrow the safe border

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-24 22:41:43 +07:00
parent e809490043
commit 7e6368a36e

View File

@@ -32,9 +32,9 @@ BUTTON.setDefaultOption{
do
local _, t
if need_big_font then
_, t = FONT_big:getWrap(text, (self.w - 10) * 2)
_, t = FONT_big:getWrap(text, (self.w - 5) * 2)
else
_, t = FONT_tromi:getWrap(text, (self.w - 10) * 2)
_, t = FONT_tromi:getWrap(text, (self.w - 5) * 2)
end
lineAmount = #t
end
@@ -45,9 +45,9 @@ BUTTON.setDefaultOption{
local textPos = self.y + (self.h * 0.5) - textHeight
if need_big_font then
drawBigText(text, self.x + 5, textPos, self.w - 10, self.textOrientation, self.textColor)
drawBigText(text, self.x + 2.5, textPos, self.w - 5, self.textOrientation, self.textColor)
else
drawText(text, self.x + 5, textPos, self.w - 10, self.textOrientation, self.textColor)
drawText(text, self.x + 2.5, textPos, self.w - 5, self.textOrientation, self.textColor)
end
love.graphics.setColor(self.borderColor)