fix image loading

This commit is contained in:
Franzi 2024-02-25 09:32:23 +01:00
parent c7bca3ebc0
commit 965f2d8b68

View file

@ -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)