summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/require/LLDebugSettings.lua
blob: cff1a63c21cea5d7b7861eccadf35bd27b3af26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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