Merge pull request #816 from dscarpac/hover-counter
Added ability to change generic counter value on hover
This commit is contained in:
commit
1a3d8e1aca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user