mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Narrow the safe border
This commit is contained in:
8
load.lua
8
load.lua
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user