Small update

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-20 23:50:32 +07:00
parent 4947daa76b
commit 1961f3b832
2 changed files with 27 additions and 10 deletions

View File

@@ -1,6 +1,12 @@
local TouchConfigScene = SCENE:extend()
TouchConfigScene.title = "Touchscreen config\n(you can tap anywhere on touch screen to select this)"
--[[
TODO:
1. Can import and export data
2. Add behaviors
]]
local widgetList = {
select_widget = BUTTON.new{
text = "Select key\n[Rotate right 2]",
@@ -9,28 +15,28 @@ local widgetList = {
BUTTON.new{
text = "[—]\nSmaller",
x = 140, y = 10, w = 70, h = 50,
x = 145, y = 10, w = 100, h = 50,
},
BUTTON.new{
text = "Size: 50\nTap to reset",
x = 220, y = 10, w = 110, h = 50,
x = 255, y = 10, w = 100, h = 50,
},
BUTTON.new{
text = "[+]\nBigger",
x = 340, y = 10, w = 70, h = 50,
x = 365, y = 10, w = 100, h = 50,
},
BUTTON.new{
text = "[—]\nBlurrier",
x = 140, y = 70, w = 70, h = 50,
text = "[—]\nCan't see",
x = 145, y = 70, w = 100, h = 50,
},
BUTTON.new{
text = "Opacity: 50%\nTap to reset",
x = 220, y = 70, w = 110, h = 50,
x = 255, y = 70, w = 100, h = 50,
},
BUTTON.new{
text = "[+]\nClearer",
x = 340, y = 70, w = 70, h = 50,
text = "[+]\nTotally see",
x = 365, y = 70, w = 100, h = 50,
},
BUTTON.new{
@@ -41,12 +47,10 @@ local widgetList = {
BUTTON.new{
text = "DISCARD\nchanges",
x = 480, y = 70, w = 70, h = 50,
codeWhenReleased = function() SCENE = TitleScene() end
},
BUTTON.new{
text = "RESET to\nDEFAULT",
x = 560, y = 70, w = 70, h = 50,
codeWhenReleased = function() SCENE = TitleScene() end
},
}
@@ -93,6 +97,7 @@ function TouchConfigScene:onInputPress(e)
widgetList_press()
end
end
---@param e SCENE_onInput
function TouchConfigScene:onInputRelease(e)
if e.type == "mouse" then
widgetList_release()