Pārlūkot izejas kodu

Allow entity selection by clicking the bottom name

tags/v0.0.1
Fen Dweller pirms 5 gadiem
vecāks
revīzija
6ee89ad272
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt