2022-04-27 19:28:16 +00:00
|
|
|
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 = {
|
2024-01-09 23:44:52 +00:00
|
|
|
version = 1,
|
2022-04-27 19:28:16 +00:00
|
|
|
registerGroup = common.registerGroup,
|
2022-05-19 19:49:14 +00:00
|
|
|
updateRendererArgument = common.updateRendererArgument,
|
2022-03-07 20:28:05 +00:00
|
|
|
},
|
|
|
|
engineHandlers = {
|
2022-04-27 19:28:16 +00:00
|
|
|
onLoad = common.onLoad,
|
|
|
|
onSave = common.onSave,
|
2022-03-07 20:28:05 +00:00
|
|
|
},
|
|
|
|
eventHandlers = {
|
2022-04-27 19:28:16 +00:00
|
|
|
[common.setGlobalEvent] = function(e)
|
|
|
|
storage.globalSection(e.groupKey):set(e.settingKey, e.value)
|
2022-04-18 06:42:02 +00:00
|
|
|
end,
|
|
|
|
},
|
2024-01-09 23:44:52 +00:00
|
|
|
}
|