callback renamed -> onEvent

This commit is contained in:
Michael Freno
2025-11-11 13:13:22 -05:00
parent e56b18b7bd
commit be0771d0d3
15 changed files with 80 additions and 69 deletions

View File

@@ -72,7 +72,7 @@ function Lv.load()
textColor = Color.new(1, 1, 1, 1),
textAlign = enums.TextAlign.CENTER,
cornerRadius = 8,
callback = function()
onEvent = function()
counter = counter + 1
counterDisplay.text = "Counter: " .. counter
end
@@ -90,7 +90,7 @@ function Lv.load()
textColor = Color.new(1, 1, 1, 1),
textAlign = enums.TextAlign.CENTER,
cornerRadius = 8,
callback = function()
onEvent = function()
counter = counter - 1
counterDisplay.text = "Counter: " .. counter
end
@@ -108,7 +108,7 @@ function Lv.load()
textColor = Color.new(1, 1, 1, 1),
textAlign = enums.TextAlign.CENTER,
cornerRadius = 8,
callback = function()
onEvent = function()
counter = 0
counterDisplay.text = "Counter: " .. counter
end