entities - display on overlay

This commit is contained in:
kepler155c@gmail.com
2018-12-17 00:37:39 -05:00
parent 7f458484b6
commit eb8d6f0ebb

View File

@@ -13,6 +13,8 @@ if not sensor or not sensor.sense then
error('Plethora sensor must be equipped')
end
local id = sensor.getID()
UI:configure('Entities', ...)
local config = Config.load('Entities', { })
@@ -63,10 +65,10 @@ end
Event.onInterval(.5, function()
local entities = sensor.sense()
local meta = ni.getMetaOwner()
Util.filterInplace(entities, function(e) return e.id ~= meta.id end)
Util.filterInplace(entities, function(e) return e.id ~= id end)
if config.projecting then
local meta = ni.getMetaOwner()
Project.canvas:clear()
Project:drawPoints(meta, entities, 'X', 0xFFDF50AA)
end