소스 검색

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);
}




불러오는 중...
취소
저장