mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-22 01:51:03 +00:00
room specific text: actually render empty lines
This commit is contained in:
parent
5f98771957
commit
d908c361f8
1 changed files with 18 additions and 14 deletions
4
tile.lua
4
tile.lua
|
@ -493,6 +493,7 @@ local function view_info(starts, ends, config, x1, y1, x2, y2)
|
||||||
|
|
||||||
local y = 0
|
local y = 0
|
||||||
for line in string.gmatch(info_text.."\n", "([^\n]*)\n") do
|
for line in string.gmatch(info_text.."\n", "([^\n]*)\n") do
|
||||||
|
if line ~= "" then
|
||||||
local lines = wrap(
|
local lines = wrap(
|
||||||
line,
|
line,
|
||||||
font_text, font_size, a.width
|
font_text, font_size, a.width
|
||||||
|
@ -511,6 +512,9 @@ local function view_info(starts, ends, config, x1, y1, x2, y2)
|
||||||
text(font_text, x, y, lines[idx], font_size, rgba(default_color,.8))
|
text(font_text, x, y, lines[idx], font_size, rgba(default_color,.8))
|
||||||
y = y + font_size
|
y = y + font_size
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
y = y + font_size*0.5
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for now in api.frame_between(starts, ends) do
|
for now in api.frame_between(starts, ends) do
|
||||||
|
|
Loading…
Reference in a new issue