瀏覽代碼

Make height bars go behind entities. Fix bars not appearing for freshly-added entities

This also probably fixes bugs with wrong z-indexing for fresh entities
tags/v0.1.0
Fen Dweller 6 年之前
父節點
當前提交
8c9d2d7807
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +1
    -0
      macrovision.css
  2. +3
    -4
      macrovision.js

+ 1
- 0
macrovision.css 查看文件

@@ -468,6 +468,7 @@ body.toggle-height-bars .height-bar {
top: calc(-100% + var(--extra));
left: calc(-1 * var(--xpos));
transition: 0s all;
z-index: -1;
}

.height-bar::before {


+ 3
- 4
macrovision.js 查看文件

@@ -916,9 +916,6 @@ function displayEntity(entity, view, x, y, selectEntity=false) {

world.appendChild(bottomName);
entityIndex += 1;

updateEntityElement(entity, box);

if (config.autoFit) {
fitWorld();
}
@@ -926,7 +923,9 @@ function displayEntity(entity, view, x, y, selectEntity=false) {
if (selectEntity)
select(box);

entity.dirty = false;
entity.dirty = true;

updateSizes(true);
}




Loading…
取消
儲存