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
+8-4
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ local function create_complex_example()
57
57
[hash("spineboy")] = hash("spine-spineboy"),
58
58
},
59
59
},
60
-
width = 460,
60
+
width = 480,
61
61
position = vmath.vector3(0, 0, 0),
62
62
parent = gui.get_node("bg"),
63
63
color = vmath.vector4(0.95, 0.95, 1.0, 1.0),
@@ -197,13 +197,17 @@ local function create_language_example()
197
197
end
198
198
199
199
200
-
local function create_nobreak_example()
200
+
local function create_linebreak_example()
201
201
local settings_nobr = { position = vmath.vector3(0, 600, 0), align = richtext.ALIGN_LEFT, width = 245 }
202
202
local words1 = richtext.create("The image at the end should end up on a new line <nobr><img=smileys:cyclops/></nobr>", "Roboto-Regular", settings_nobr)
203
203
204
204
local settings_right = { position = vmath.vector3(320, 600, 0), align = richtext.ALIGN_LEFT, width = 245 }
205
205
local words2 = richtext.create("The image at the end should end up on a new line <img=smileys:cyclops/>", "Roboto-Regular", settings_right)
206
-
return merge(words1, words2)
206
+
207
+
local settings_nobr = { position = vmath.vector3(0, 900, 0), align = richtext.ALIGN_LEFT, width = 245 }
208
+
local longword = richtext.create("THIS IS AVERYLONGWORDWITHOUTANYLINEBREAKS", "Roboto-Regular", settings_nobr)
209
+
210
+
return merge(words1, words2, longword)
207
211
end
208
212
209
213
local function create_overlapping_tags_example()
@@ -320,7 +324,7 @@ function init(self)
320
324
{ name = "CHARACTERS", fn = create_characters_example },
321
325
{ name = "SPINE", fn = create_spine_example },
322
326
{ name = "LANGUAGE", fn = create_language_example },
323
-
{ name = "NO BREAK", fn = create_nobreak_example },
327
+
{ name = "LINEBREAK", fn = create_linebreak_example },
324
328
{ name = "CLICKABLE", fn = create_clickable_words_example },
325
329
{ name = "OVERLAPPING", fn = create_overlapping_tags_example },
326
330
{ name = "HTML ENTITIES", fn = create_html_entities_example },
0 commit comments