From 3d33e010893f48231fcb074337b07e4d121a4a47 Mon Sep 17 00:00:00 2001 From: craig410 Date: Fri, 12 Jul 2019 21:09:31 +0100 Subject: [PATCH 1/2] Fix some dodgy logic preventing the event slide being displayed --- node.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.lua b/node.lua index a04c7d5..156e7f5 100644 --- a/node.lua +++ b/node.lua @@ -565,7 +565,7 @@ function node.render() event_slide:draw(0, 0, WIDTH, HEIGHT, event_slide_alpha) end - if event_slide_alpha <= 0 then + if event_slide_alpha < 0 then walkin_state = "walkin" end From 66999e2e2eefed35640cddc70e7486afde9c5fe3 Mon Sep 17 00:00:00 2001 From: craig410 Date: Fri, 12 Jul 2019 21:10:10 +0100 Subject: [PATCH 2/2] Fix web-based control option to set event slide image on load event --- control.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control.html b/control.html index 417557e..1ee91a9 100644 --- a/control.html +++ b/control.html @@ -47,7 +47,7 @@

Debug tools

document.getElementById('load-event').addEventListener('click', function (e) { var event_id = document.getElementById('event-id').value; ib.sendCommand("eventid", event_id); - ib.sendCommand("event-slide/eventid", event_id); + ib.sendCommand("walkin/event-slide/eventid", event_id); }); document.getElementById('show-walkin').addEventListener('click', function (e) {