openmw/files/data/scripts/omw/settings/global.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
530 B
Lua
Raw Permalink Normal View History

local storage = require('openmw.storage')
2022-03-07 21:28:05 +01:00
local common = require('scripts.omw.settings.common')
return {
interfaceName = 'Settings',
interface = {
registerGroup = common.registerGroup,
2022-05-19 19:49:14 +00:00
updateRendererArgument = common.updateRendererArgument,
2022-03-07 21:28:05 +01:00
},
engineHandlers = {
onLoad = common.onLoad,
onSave = common.onSave,
2022-03-07 21:28:05 +01:00
},
eventHandlers = {
[common.setGlobalEvent] = function(e)
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
end,
},
2022-03-07 21:28:05 +01:00
}