local TouchConfigScene = SCENE:extend() TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere on touch screen to select this)" function TouchConfigScene:new() -- TODO end 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() drawButtons() end function TouchConfigScene:onInputPress(e) if e.input == 'menu_back' then SCENE = InputConfigScene() end end return TouchConfigScene