Skip to content

Commit

Permalink
controls data types
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jan 11, 2024
1 parent ed6585e commit 1c38bc3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions handlers/controls.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

mtui.register_on_command("get_controls_metadata", function()
return { success = true, result = mtui.get_controls_metadata() }
return mtui.get_controls_metadata()
end)

mtui.register_on_command("get_controls_values", function()
return { success = true, result = mtui.get_controls_values() }
return mtui.get_controls_values()
end)

mtui.register_on_command("set_control", function(data)
mtui.set_control_value(data.name, data.value)
return { success = true, result = mtui.get_controls_metadata() }
return mtui.set_control_value(data.name, data.value)
end)

0 comments on commit 1c38bc3

Please sign in to comment.