|
|
@ -153,11 +153,13 @@ function TextBoxWidget:_getVerticalList(alg)
|
|
|
|
-- build horizontal list
|
|
|
|
-- build horizontal list
|
|
|
|
local h_list = {}
|
|
|
|
local h_list = {}
|
|
|
|
for words in self.text:gmatch("[\32-\127\192-\255]+[\128-\191]*") do
|
|
|
|
for words in self.text:gmatch("[\32-\127\192-\255]+[\128-\191]*") do
|
|
|
|
for w in words:gsplit("%s+", true) do
|
|
|
|
for word in words:gsplit("%s+", true) do
|
|
|
|
local word_box = {}
|
|
|
|
for w in word:gsplit("%p+", true) do
|
|
|
|
word_box.word = w
|
|
|
|
local word_box = {}
|
|
|
|
word_box.width = sizeUtf8Text(0, Screen:getWidth(), self.face, w, true).x
|
|
|
|
word_box.word = w
|
|
|
|
table.insert(h_list, word_box)
|
|
|
|
word_box.width = sizeUtf8Text(0, Screen:getWidth(), self.face, w, true).x
|
|
|
|
|
|
|
|
table.insert(h_list, word_box)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|