Move tree copse terrain feature from grid into buildings group
This commit is contained in:
parent
cff0cc6dd6
commit
99d60421e3
@ -80,6 +80,10 @@ use[href="#hex"] {
|
|||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[data-view-elevation="-1"] .terrain {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
[data-view-elevation="0"] .building .elevation-0 {
|
[data-view-elevation="0"] .building .elevation-0 {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
@ -511,6 +511,9 @@ function drawMapsheet(gameboard, mapsheet, position) {
|
|||||||
drawHexes(gridContainer, grid, true);
|
drawHexes(gridContainer, grid, true);
|
||||||
|
|
||||||
(mapsheet.features || []).forEach(feature => {
|
(mapsheet.features || []).forEach(feature => {
|
||||||
|
const featureContainer = document.createElementNS(xmlns, 'g');
|
||||||
|
featureContainer.classList.add('terrain');
|
||||||
|
|
||||||
const origin = feature.position({ q: 0, r: 0, s: 0 });
|
const origin = feature.position({ q: 0, r: 0, s: 0 });
|
||||||
const use = document.createElementNS(xmlns, 'use');
|
const use = document.createElementNS(xmlns, 'use');
|
||||||
|
|
||||||
@ -524,7 +527,8 @@ function drawMapsheet(gameboard, mapsheet, position) {
|
|||||||
use.setAttributeNS(null, 'x', x);
|
use.setAttributeNS(null, 'x', x);
|
||||||
use.setAttributeNS(null, 'y', y);
|
use.setAttributeNS(null, 'y', y);
|
||||||
|
|
||||||
gridContainer.appendChild(use);
|
featureContainer.appendChild(use)
|
||||||
|
buildingContainer.appendChild(featureContainer);
|
||||||
});
|
});
|
||||||
|
|
||||||
container.appendChild(gridContainer);
|
container.appendChild(gridContainer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user