Applied the renames for "minimum buttons pressed", "minimum buttons inputted".
This commit is contained in:
parent
f637f5f400
commit
cb3e0ec666
|
@ -31,8 +31,8 @@ function deepcopy(object)
|
||||||
end
|
end
|
||||||
|
|
||||||
function counts(obj)
|
function counts(obj)
|
||||||
gui.text(x, y, 'Holds: ' .. obj.holds)
|
gui.text(x, y, 'Pressed: ' .. obj.pressed)
|
||||||
gui.text(x, y + 14, 'Presses: ' .. obj.presses)
|
gui.text(x, y + 14, 'Inputted: ' .. obj.inputted)
|
||||||
end
|
end
|
||||||
|
|
||||||
function frames()
|
function frames()
|
||||||
|
@ -74,19 +74,19 @@ function record(buttons)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if value and not blacklisted then
|
if value and not blacklisted then
|
||||||
data.holds = data.holds + 1
|
data.inputted = data.inputted + 1
|
||||||
if not data.pressed[button] then
|
if not data.buttons[button] then
|
||||||
data.presses = data.presses + 1
|
data.pressed = data.pressed + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
data.pressed[button] = value
|
data.buttons[button] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function reset()
|
function reset()
|
||||||
data.holds = 0
|
data.buttons = {}
|
||||||
data.pressed = {}
|
data.pressed = 0
|
||||||
data.presses = 0
|
data.inputted = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function save(name)
|
function save(name)
|
||||||
|
|
Loading…
Reference in New Issue