mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-24 22:26:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			530 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			530 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| local storage = require('openmw.storage')
 | |
| 
 | |
| local common = require('scripts.omw.settings.common')
 | |
| 
 | |
| return {
 | |
|     interfaceName = 'Settings',
 | |
|     interface = {
 | |
|         registerGroup = common.registerGroup,
 | |
|         updateRendererArgument = common.updateRendererArgument,
 | |
|     },
 | |
|     engineHandlers = {
 | |
|         onLoad = common.onLoad,
 | |
|         onSave = common.onSave,
 | |
|     },
 | |
|     eventHandlers = {
 | |
|         [common.setGlobalEvent] = function(e)
 | |
|             storage.globalSection(e.groupKey):set(e.settingKey, e.value)
 | |
|         end,
 | |
|     },
 | |
| } |