2022-05-03 17:36:49 +00:00
|
|
|
local ui = require('openmw.ui')
|
2022-06-06 21:52:55 +00:00
|
|
|
local util = require('openmw.util')
|
2022-05-03 17:36:49 +00:00
|
|
|
|
|
|
|
local constants = require('scripts.omw.mwui.constants')
|
|
|
|
|
|
|
|
local textNormal = {
|
|
|
|
type = ui.TYPE.Text,
|
|
|
|
props = {
|
|
|
|
textSize = constants.textNormalSize,
|
2022-05-14 10:27:30 +00:00
|
|
|
textColor = constants.normalColor,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
local textHeader = {
|
|
|
|
type = ui.TYPE.Text,
|
|
|
|
props = {
|
|
|
|
textSize = constants.textHeaderSize,
|
|
|
|
textColor = constants.headerColor,
|
2022-05-03 17:36:49 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-06-06 21:52:55 +00:00
|
|
|
local textParagraph = {
|
|
|
|
type = ui.TYPE.TextEdit,
|
|
|
|
props = {
|
|
|
|
textSize = constants.textNormalSize,
|
|
|
|
textColor = constants.normalColor,
|
|
|
|
autoSize = true,
|
|
|
|
readOnly = true,
|
|
|
|
multiline = true,
|
|
|
|
wordWrap = true,
|
|
|
|
size = util.vector2(100, 0),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-05-03 17:36:49 +00:00
|
|
|
return function(templates)
|
|
|
|
templates.textNormal = textNormal
|
2022-05-14 10:27:30 +00:00
|
|
|
templates.textHeader = textHeader
|
2022-06-06 21:52:55 +00:00
|
|
|
templates.textParagraph = textParagraph
|
2022-05-03 17:36:49 +00:00
|
|
|
end
|