mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 23:36:59 -04:00
docs - fix spacing in example lua
This commit is contained in:
parent
8ed5d84ff7
commit
10f86c67fe
@ -104,15 +104,15 @@ Example
|
|||||||
layer = 'HUD',
|
layer = 'HUD',
|
||||||
type = ui.TYPE.Text,
|
type = ui.TYPE.Text,
|
||||||
props = {
|
props = {
|
||||||
-- position in the top right corner
|
-- position in the top right corner
|
||||||
relativePosition = util.vector2(1, 0),
|
relativePosition = util.vector2(1, 0),
|
||||||
-- position is for the top left corner of the widget by default
|
-- position is for the top left corner of the widget by default
|
||||||
-- change it to align exactly to the top right corner of the screen
|
-- change it to align exactly to the top right corner of the screen
|
||||||
anchor = util.vector2(1, 0),
|
anchor = util.vector2(1, 0),
|
||||||
text = calendar.formatGameTime('%H:%M'),
|
text = calendar.formatGameTime('%H:%M'),
|
||||||
textSize = 24,
|
textSize = 24,
|
||||||
-- default black text color isn't always visible
|
-- default black text color isn't always visible
|
||||||
textColor = util.color.rgb(0, 1, 0),
|
textColor = util.color.rgb(0, 1, 0),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user