mirror of
https://github.com/Kunsi/scheduled-plugin-pretalx-broadcast-tools.git
synced 2024-11-22 01:51:03 +00:00
fix image loading
This commit is contained in:
parent
c7bca3ebc0
commit
965f2d8b68
1 changed files with 11 additions and 3 deletions
14
tile.lua
14
tile.lua
|
@ -71,8 +71,12 @@ function M.updated_config_json(config)
|
||||||
current_room = room.name
|
current_room = room.name
|
||||||
text_a = room.text_a
|
text_a = room.text_a
|
||||||
text_b = room.text_b
|
text_b = room.text_b
|
||||||
image_a = resource.load_image(room.image_a)
|
image_a = resource.load_image{
|
||||||
image_b = resource.load_image(room.image_b)
|
file = room.image_a.asset_name
|
||||||
|
}
|
||||||
|
image_b = resource.load_image{
|
||||||
|
file = room.image_b.asset_name
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -574,7 +578,11 @@ local function view_info(starts, ends, config, x1, y1, x2, y2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
a.add(a.moving_image_raw(S, E, info_content, x1, y1, x2, y2))
|
a.add(a.moving_image_raw(
|
||||||
|
S, E, info_content,
|
||||||
|
x1, y1,
|
||||||
|
x2, y2
|
||||||
|
))
|
||||||
for now in api.frame_between(starts, ends) do
|
for now in api.frame_between(starts, ends) do
|
||||||
if animate then
|
if animate then
|
||||||
a.draw(now, x1, y1, x2, y2)
|
a.draw(now, x1, y1, x2, y2)
|
||||||
|
|
Loading…
Reference in a new issue