1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00
OpenMW/files/data/scripts/omw/mwui/textEdit.lua

27 lines
768 B
Lua
Raw Normal View History

local util = require('openmw.util')
local ui = require('openmw.ui')
local constants = require('scripts.omw.mwui.constants')
return function(templates)
templates.textEditLine = {
type = ui.TYPE.TextEdit,
props = {
size = util.vector2(150, constants.textNormalSize),
textSize = constants.textNormalSize,
2022-05-14 10:27:30 +00:00
textColor = constants.normalColor,
multiline = false,
},
}
templates.textEditBox = {
type = ui.TYPE.TextEdit,
props = {
size = util.vector2(150, 5 * constants.textNormalSize),
textSize = constants.textNormalSize,
2022-05-14 10:27:30 +00:00
textColor = constants.normalColor,
multiline = true,
wordWrap = true,
},
}
end