WIP: split hexes and building structure into different layers
This commit is contained in:
@@ -210,7 +210,7 @@ document.querySelector('#roll-dice').addEventListener('click', () => {
|
||||
|
||||
document.querySelectorAll('[name="select-elevation"]').forEach(el => {
|
||||
el.addEventListener('change', function (e) {
|
||||
document.querySelector('object').contentDocument.querySelector('.grid').dataset.viewElevation = this.value;
|
||||
document.querySelector('object').contentDocument.querySelector('.gameboard').dataset.viewElevation = this.value;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user