mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
V1 update (#1)
This commit is contained in:
committed by
Squishy (C6H12O6+NaCl+H2O)
parent
3343d8711b
commit
1d6643448e
4
load.lua
4
load.lua
@@ -1,10 +1,8 @@
|
||||
-- Fonts
|
||||
FONT_tromi = love.graphics.newFont('res/fonts/Iosevka-Bold.ttf' , 28)
|
||||
FONT_big = love.graphics.newFont('res/fonts/Iosevka-Heavy.ttf', 56)
|
||||
FONT_bold = love.graphics.newFont('res/fonts/Iosevka-Heavy.ttf', 28)
|
||||
-- Icons
|
||||
FONT_tromi:setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 28))
|
||||
FONT_bold :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 28))
|
||||
FONT_big :setFallbacks(love.graphics.newFont('res/fonts/techmino_proportional.otf', 56))
|
||||
CHAR = require("char")
|
||||
|
||||
@@ -48,8 +46,6 @@ BUTTON.setDefaultOption{
|
||||
|
||||
if self.font == FONT_big then
|
||||
drawBigText(text, self.x + 2.5, textPos, self.w - 5, self.textOrientation, self.textColor)
|
||||
elseif self.font == FONT_bold then
|
||||
drawBoldText(text, self.x + 2.5, textPos, self.w - 5, self.textOrientation, self.textColor)
|
||||
else
|
||||
drawText(text, self.x + 2.5, textPos, self.w - 5, self.textOrientation, self.textColor)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user