Преглед изворни кода

Allow entity selection by clicking the bottom name

tags/v0.0.1
Fen Dweller пре 5 година
родитељ
комит
6ee89ad272
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      macrovision.js

+ 2
- 0
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;



Loading…
Откажи
Сачувај