mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Final update for touch configuration scene
This commit is contained in:
13
load.lua
13
load.lua
@@ -32,9 +32,9 @@ BUTTON.setDefaultOption{
|
||||
do
|
||||
local _, t
|
||||
if need_big_font then
|
||||
_, t = FONT_big:getWrap(text, self.w * 2)
|
||||
_, t = FONT_big:getWrap(text, (self.w - 10) * 2)
|
||||
else
|
||||
_, t = FONT_tromi:getWrap(text, self.w * 2)
|
||||
_, t = FONT_tromi:getWrap(text, (self.w - 10) * 2)
|
||||
end
|
||||
lineAmount = #t
|
||||
end
|
||||
@@ -45,17 +45,18 @@ BUTTON.setDefaultOption{
|
||||
local textPos = self.y + (self.h * 0.5) - textHeight
|
||||
|
||||
if need_big_font then
|
||||
drawBigText(text, self.x, textPos, self.w, 'center')
|
||||
drawBigText(text, self.x + 5, textPos, self.w - 10, self.textOrientation, self.textColor)
|
||||
else
|
||||
drawText(text, self.x, textPos, self.w, 'center')
|
||||
drawText(text, self.x + 5, textPos, self.w - 10, self.textOrientation, self.textColor)
|
||||
end
|
||||
|
||||
love.graphics.setColor(1, 1, 1, 0.8)
|
||||
love.graphics.setColor(self.borderColor)
|
||||
love.graphics.setLineWidth(1)
|
||||
love.graphics.rectangle('line', self.x, self.y, self.w, self.h, self.r)
|
||||
end,
|
||||
backgroundColor = {0, 0, 0, 0.8},
|
||||
pressColor = {0.4, 1, 1, 0.5}
|
||||
pressColor = {0.4, 1, 1, 0.5},
|
||||
borderColor = {1, 1, 1, 0.8},
|
||||
}
|
||||
|
||||
-- Graphics
|
||||
|
||||
Reference in New Issue
Block a user