2022-05-03 17:36:49 +00:00
|
|
|
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 = {
|
2022-06-11 20:24:20 +00:00
|
|
|
size = util.vector2(150, 0),
|
|
|
|
autoSize = true,
|
2022-05-03 17:36:49 +00:00
|
|
|
textSize = constants.textNormalSize,
|
2022-05-14 10:27:30 +00:00
|
|
|
textColor = constants.normalColor,
|
2022-05-03 17:36:49 +00:00
|
|
|
multiline = false,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
templates.textEditBox = {
|
|
|
|
type = ui.TYPE.TextEdit,
|
|
|
|
props = {
|
2022-06-06 21:52:55 +00:00
|
|
|
size = util.vector2(150, 5 * constants.textNormalSize),
|
2022-05-03 17:36:49 +00:00
|
|
|
textSize = constants.textNormalSize,
|
2022-05-14 10:27:30 +00:00
|
|
|
textColor = constants.normalColor,
|
2022-05-03 17:36:49 +00:00
|
|
|
multiline = true,
|
|
|
|
wordWrap = true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end
|