mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Make a simple BUTTON module
This commit is contained in:
@@ -8,9 +8,20 @@ function TouchConfigScene:update()
|
||||
-- TODO
|
||||
end
|
||||
|
||||
local test_button = BUTTON.new('PHÍM THỬ - Chọn widget', 50, 50, 200, 30)
|
||||
|
||||
local function drawButtons()
|
||||
-- drawText('Select button', 10, 10, 100, 'center')
|
||||
-- love.graphics.setColor(1,1,1)
|
||||
-- love.graphics.setLineWidth(3)
|
||||
-- love.graphics.rectangle('line',0,0,120,40)
|
||||
test_button:draw()
|
||||
|
||||
end
|
||||
|
||||
function TouchConfigScene:render()
|
||||
MainBackground()
|
||||
drawText('Select button', 10, 10, 100, 'center') -- 0,10 120,30
|
||||
drawButtons()
|
||||
end
|
||||
|
||||
function TouchConfigScene:onInputPress(e)
|
||||
|
||||
Reference in New Issue
Block a user