1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
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.

23 lines
641 B
Lua
Raw Normal View History

local storage = require('openmw.storage')
2022-03-07 20:28:05 +00:00
local common = require('scripts.omw.settings.common')
2024-02-27 04:04:45 +00:00
common.getSection(true, common.groupSectionKey):setLifeTime(storage.LIFE_TIME.Temporary)
2022-03-07 20:28:05 +00:00
return {
interfaceName = 'Settings',
interface = {
version = 1,
registerGroup = common.registerGroup,
2022-05-19 19:49:14 +00:00
updateRendererArgument = common.updateRendererArgument,
2022-03-07 20:28:05 +00:00
},
engineHandlers = {
onLoad = common.onLoad,
onSave = common.onSave,
2022-03-07 20:28:05 +00:00
},
eventHandlers = {
[common.setGlobalEvent] = function(e)
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
end,
},
}