diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-01 19:58:47 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-01 19:58:47 +0300 |
commit | 79dca07d790a47db192099bcb85e740676a643ee (patch) | |
tree | 9527bb4bd98b7f208330c309b741a2f9c2c6b943 /indra/newview/scripts | |
parent | 76d36fe7210443b4564d2646a2fe5aa6d7c490fc (diff) |
Use LLViewerControlListener to access debug settings
Diffstat (limited to 'indra/newview/scripts')
-rw-r--r-- | indra/newview/scripts/lua/LLDebugSettings.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/scripts/lua/LLDebugSettings.lua b/indra/newview/scripts/lua/LLDebugSettings.lua index 71a12a2ca2..80ae7e87bb 100644 --- a/indra/newview/scripts/lua/LLDebugSettings.lua +++ b/indra/newview/scripts/lua/LLDebugSettings.lua @@ -3,11 +3,15 @@ leap = require 'leap' local LLDebugSettings = {} function LLDebugSettings.set(name, value) - leap.send('LLAppViewer', {op='setDebugSetting', setting=name, value=value}) + return leap.request('LLViewerControl', {op='set', group='Global', key=name, value=value}) +end + +function LLDebugSettings.toggle(name) + return leap.request('LLViewerControl', {op='toggle', group='Global', key=name}) end function LLDebugSettings.get(name) - return leap.request('LLAppViewer', {op='getDebugSetting', setting=name})['value'] + return leap.request('LLViewerControl', {op='get', group='Global', key=name})['value'] end return LLDebugSettings |