瀏覽代碼

Set the world height input correctly when auto-sizing the world

tags/v0.0.5
Fen Dweller 5 年之前
父節點
當前提交
52dcdc909d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      macrovision.js

+ 2
- 0
macrovision.js 查看文件

@@ -898,6 +898,8 @@ function updateWorldHeight() {
function setWorldHeight(oldHeight, newHeight) {
config.height = newHeight;

const unit = document.querySelector("#options-height-unit").value;
document.querySelector("#options-height-value").value = config.height.toNumber(unit);
Object.entries(entities).forEach(([key, entity]) => {
const element = document.querySelector("#entity-" + key);
const newPosition = adjustAbs({ x: element.dataset.x, y: element.dataset.y }, oldHeight, config.height);


Loading…
取消
儲存