Parcourir la source

Make glow toggleable

tags/v0.1.0
Fen Dweller il y a 6 ans
Parent
révision
50a173b669
3 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. +1
    -1
      macrovision.css
  2. +4
    -0
      macrovision.html
  3. +4
    -0
      macrovision.js

+ 1
- 1
macrovision.css Voir le fichier

@@ -65,7 +65,7 @@ body.toggle-entity-name .entity-name {
filter: drop-shadow(0px 0px 5px gold);
}

.entity-box:not(.selected) > img{
body.toggle-entity-glow .entity-box:not(.selected) > img{
filter: drop-shadow(0px 0px 2px white);
}



+ 4
- 0
macrovision.html Voir le fichier

@@ -117,6 +117,10 @@
<input type="checkbox" id="options-world-show-height-bars" checked=true>
<label for="options-world-show-height-bars">Height bars</label>
</div>
<div class="options-row">
<input type="checkbox" id="options-world-show-entity-glow" checked=true>
<label for="options-world-show-entity-glow">Glowing edges</label>
</div>

<div class="options-label">
Auto-sizing mode


+ 4
- 0
macrovision.js Voir le fichier

@@ -967,6 +967,10 @@ document.addEventListener("DOMContentLoaded", () => {
document.body.classList[e.target.checked ? "add" : "remove"]("toggle-height-bars");
});

document.querySelector("#options-world-show-entity-glow").addEventListener("input", e => {
document.body.classList[e.target.checked ? "add" : "remove"]("toggle-entity-glow");
});

document.querySelector("#options-order-forward").addEventListener("click", e => {
if (selected) {
entities[selected.dataset.key].priority += 1;


Chargement…
Annuler
Enregistrer