mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
39 lines
971 B
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 |