mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-24 11:01:05 +00:00
tile.lua: talk.track.color might not exist
This commit is contained in:
parent
3dff4cb230
commit
ccfb13313b
1 changed files with 9 additions and 7 deletions
16
tile.lua
16
tile.lua
|
@ -315,13 +315,15 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2)
|
||||||
local time_width = font_running:width(talk_time, time_size)
|
local time_width = font_running:width(talk_time, time_size)
|
||||||
text(font_text, col2 - 35 - time_width, y, talk_time, time_size, rgba(default_color, 1))
|
text(font_text, col2 - 35 - time_width, y, talk_time, time_size, rgba(default_color, 1))
|
||||||
|
|
||||||
if show_track and talk.track and talk.track.color then
|
if show_track and talk.track then
|
||||||
local r,g,b = helper.parse_rgb(talk.track.color)
|
if talk.track.color then
|
||||||
a.add(anims.moving_image_raw(
|
local r,g,b = helper.parse_rgb(talk.track.color)
|
||||||
S, E, resource.create_colored_texture(r,g,b,1),
|
a.add(anims.moving_image_raw(
|
||||||
col2 - 25, y,
|
S, E, resource.create_colored_texture(r,g,b,1),
|
||||||
col2 - 10, y + #title_lines*title_size + 3 + #info_lines*info_size
|
col2 - 25, y,
|
||||||
))
|
col2 - 10, y + #title_lines*title_size + 3 + #info_lines*info_size
|
||||||
|
))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- title
|
-- title
|
||||||
|
|
Loading…
Reference in a new issue