1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-05 15:55:45 +00:00
OpenMW/files/data/scripts/omw/mwui/space.lua

39 lines
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