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
4
tile.lua
4
tile.lua
|
@ -315,7 +315,8 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2)
|
|||
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))
|
||||
|
||||
if show_track and talk.track and talk.track.color then
|
||||
if show_track and talk.track then
|
||||
if talk.track.color then
|
||||
local r,g,b = helper.parse_rgb(talk.track.color)
|
||||
a.add(anims.moving_image_raw(
|
||||
S, E, resource.create_colored_texture(r,g,b,1),
|
||||
|
@ -323,6 +324,7 @@ local function view_all_talks(starts, ends, config, x1, y1, x2, y2)
|
|||
col2 - 10, y + #title_lines*title_size + 3 + #info_lines*info_size
|
||||
))
|
||||
end
|
||||
end
|
||||
|
||||
-- title
|
||||
for idx = 1, #title_lines do
|
||||
|
|
Loading…
Reference in a new issue