diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-06-21 15:47:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 15:47:15 -0400 |
commit | 75accbefdbe7741d57bf093690d65ad1100f82d4 (patch) | |
tree | df77079b8da7ba5d6d3523ea9d9466f104bf66dd /indra/newview/scripts/lua/require/LLDebugSettings.lua | |
parent | b16209f86a376cadfcc9f43604618de7fdc789e7 (diff) | |
parent | 56e4b8c5f637343c8a1a181fd59324e033b4782d (diff) |
Merge pull request #1725 from secondlife/lua-login
UI-related Lua API work
Diffstat (limited to 'indra/newview/scripts/lua/require/LLDebugSettings.lua')
-rw-r--r-- | indra/newview/scripts/lua/require/LLDebugSettings.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/require/LLDebugSettings.lua b/indra/newview/scripts/lua/require/LLDebugSettings.lua new file mode 100644 index 0000000000..cff1a63c21 --- /dev/null +++ b/indra/newview/scripts/lua/require/LLDebugSettings.lua @@ -0,0 +1,17 @@ +local leap = require 'leap' + +local LLDebugSettings = {} + +function LLDebugSettings.set(name, value) + leap.request('LLViewerControl', {op='set', group='Global', key=name, value=value}) +end + +function LLDebugSettings.toggle(name) + leap.request('LLViewerControl', {op='toggle', group='Global', key=name}) +end + +function LLDebugSettings.get(name) + return leap.request('LLViewerControl', {op='get', group='Global', key=name})['value'] +end + +return LLDebugSettings |