Przeglądaj źródła

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 5 lat temu
rodzic
commit
8c9d2d7807
2 zmienionych plików z 4 dodań i 4 usunięć
  1. +1
    -0
      macrovision.css
  2. +3
    -4
      macrovision.js

+ 1
- 0
macrovision.css Wyświetl plik

@@ -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 Wyświetl plik

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




Ładowanie…
Anuluj
Zapisz