Small changes

This commit is contained in:
Nguyễn Quốc Hưng
2024-08-10 06:35:52 +07:00
parent 3827304fc5
commit c24cfe1a8b
3 changed files with 11 additions and 11 deletions

View File

@@ -46,12 +46,12 @@ function StickConfigScene:new()
BUTTON.new{
text = CHAR.icon.fastForward.." SKIP",
x = 40, y = 300, w = 100, h = 30,
codeWhenPressed = function() self:onInputPress{type = "key", scancode = "tab"} end
codeWhenReleased = function() self:onInputPress{type = "key", scancode = "tab"} end
},
BUTTON.new{
text = CHAR.icon.cross_thick.." Cancel",
x = 150, y = 300, w = 100, h = 30,
codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end
codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end
},
}
end
@@ -63,17 +63,17 @@ function StickConfigScene:update()
BUTTON.new{
text = CHAR.icon.checkMark.." CONFIRM",
x = 40, y = 300, w = 100, h = 30,
codeWhenPressed = function() self:onInputPress{type = "key", scancode = "return"} end
codeWhenReleased = function() self:onInputPress{type = "key", scancode = "return"} end
},
BUTTON.new{
text = CHAR.icon.retry_spin.." Restart",
x = 150, y = 300, w = 100, h = 30,
codeWhenPressed = function() self:onInputPress{type = "key", scancode = "delete"} end
codeWhenReleased = function() self:onInputPress{type = "key", scancode = "delete"} end
},
BUTTON.new{
text = CHAR.icon.cross_thick.." Cancel",
x = 260, y = 300, w = 100, h = 30,
codeWhenPressed = function() self:onInputPress{type = "key", scancode = "escape"} end
codeWhenReleased = function() self:onInputPress{type = "key", scancode = "escape"} end
}
}
end