瀏覽代碼

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…
取消
儲存