diff --git a/macrovision.js b/macrovision.js index 68fb05b0..816f0f40 100644 --- a/macrovision.js +++ b/macrovision.js @@ -530,6 +530,8 @@ function displayEntity(entity, view, x, y) { bottomName.id = "bottom-name-" + entityIndex; bottomName.innerText = entity.name; + bottomName.addEventListener("click", () => select(box)); + world.appendChild(bottomName); entityIndex += 1;