Make a simple BUTTON module

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-17 23:46:17 +07:00
parent 8f559ff88e
commit f26e4c75bd
3 changed files with 73 additions and 1 deletions

View File

@@ -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)