mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Small update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user