20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
else
c = l.color(dui.colors.neutral)
end
str = str .. '\n ' .. c:fmt('* ')
if prop.title then
str = str .. c:brighten(1.5):fmt(prop.title) .. ': '
end
local lines = minetest.wrap_text(prop.desc, 50, true)
str = str .. c:fmt(lines[1])
for i=2,#lines do
str = str .. '\n' .. string.rep(' ',5) .. c:fmt(lines[i])
end
end
end
return str
end;
}
|
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
else
c = l.color(dui.colors.neutral)
end
str = str .. '\n ' .. c:fmt('* ')
if prop.title then
str = str .. c:brighten(1.3):fmt(prop.title) .. ': '
end
local lines = minetest.wrap_text(prop.desc, 50, true)
str = str .. c:fmt(lines[1])
for i=2,#lines do
str = str .. '\n' .. string.rep(' ',5) .. c:fmt(lines[i])
end
end
end
return str
end;
}
|