Преглед на файлове

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…
Отказ
Запис