You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: example/example.gui_script
+5-5
Original file line number
Diff line number
Diff line change
@@ -88,16 +88,16 @@ local function create_align_example()
88
88
local valign_middle = richtext.create("Align <size=2>EVERYTHING</size> to\nthe <size=0.5>MIDDLE</size>of each line", "Roboto-Regular", settings_valign_middle)
89
89
90
90
local settings_align_justify = { position = vmath.vector3(10, 420, 0), align = richtext.ALIGN_JUSTIFY, width = 300 }
91
-
local justify = richtext.create("Justify this text\nDo it for both lines", "Roboto-Regular", settings_align_justify)
91
+
local justify = richtext.create("Justify this multi-line and very long text but ignore the line with the line-break.\nAlso ignore last line.", "Roboto-Regular", settings_align_justify)
92
92
93
-
local settings_align_left = { position = vmath.vector3(10, 310, 0), align = richtext.ALIGN_LEFT }
94
-
local left = richtext.create("Left align this text\nDo it for both lines", "Roboto-Regular", settings_align_left)
93
+
local settings_align_left = { position = vmath.vector3(10, 200, 0), align = richtext.ALIGN_LEFT }
94
+
local left = richtext.create("Left align this text.\nDo it for both lines.", "Roboto-Regular", settings_align_left)
95
95
96
96
local settings_align_right = { position = vmath.vector3(640, 200, 0), align = richtext.ALIGN_RIGHT }
97
-
local right = richtext.create("Right align this text\nDo it for both lines", "Roboto-Regular", settings_align_right)
97
+
local right = richtext.create("Right align this text.\nDo it for both lines.", "Roboto-Regular", settings_align_right)
98
98
99
99
local settings_align_center = { position = vmath.vector3(320, 90, 0), align = richtext.ALIGN_CENTER }
100
-
local center = richtext.create("Center words around the specified position\nAnd these words as well", "Roboto-Regular", settings_align_center)
100
+
local center = richtext.create("Center words around the specified position.\nAnd these words as well.", "Roboto-Regular", settings_align_center)
101
101
return merge(justify, left, right, center, valign_top, valign_middle, valign_bottom)
0 commit comments