mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 04:26:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			No EOL
		
	
	
		
			971 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			No EOL
		
	
	
		
			971 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
local ui = require('openmw.ui')
 | 
						|
local util = require('openmw.util')
 | 
						|
 | 
						|
local constants = require('scripts.omw.mwui.constants')
 | 
						|
 | 
						|
local borderV = util.vector2(1, 1) * constants.border
 | 
						|
 | 
						|
return function(templates)
 | 
						|
    templates.padding = {
 | 
						|
        type = ui.TYPE.Container,
 | 
						|
        content = ui.content {
 | 
						|
            {
 | 
						|
                props = {
 | 
						|
                    size = borderV,
 | 
						|
                },
 | 
						|
            },
 | 
						|
            {
 | 
						|
                external = { slot = true },
 | 
						|
                props = {
 | 
						|
                    position = borderV,
 | 
						|
                    relativeSize = util.vector2(1, 1),
 | 
						|
                },
 | 
						|
            },
 | 
						|
            {
 | 
						|
                props = {
 | 
						|
                    position = borderV,
 | 
						|
                    relativePosition = util.vector2(1, 1),
 | 
						|
                    size = borderV,
 | 
						|
                },
 | 
						|
            },
 | 
						|
        }
 | 
						|
    }
 | 
						|
    templates.interval = {
 | 
						|
        type = ui.TYPE.Widget,
 | 
						|
        props = {
 | 
						|
            size = borderV,
 | 
						|
        },
 | 
						|
    }
 | 
						|
end |