added feature

This commit is contained in:
dscarpac 2024-08-14 19:53:43 -05:00
parent 1d99f0af12
commit 0efe56b6e4

View File

@ -9,6 +9,8 @@ function onLoad(savedData)
val = JSON.decode(savedData)
end
self.max_typed_number = 99
local name = self.getName()
local position = { 0, 0.06, 0 }
@ -56,3 +58,7 @@ function modifyValue(mod)
val = math.min(math.max(val + tonumber(mod), MIN_VALUE), MAX_VALUE)
self.editButton({ index = 0, label = tostring(val) })
end
function onNumberTyped(_, number)
updateVal(number)
end