not rendering hidden resource container
This commit is contained in:
parent
00f228b331
commit
fb72e52786
|
@ -22,7 +22,8 @@ class DebugRenderer implements IRenderer {
|
||||||
head.appendChild(style);
|
head.appendChild(style);
|
||||||
// create containers for each resource type
|
// create containers for each resource type
|
||||||
for (const item in ResourceType) {
|
for (const item in ResourceType) {
|
||||||
if (isNaN(Number(item))) {
|
if (isNaN(Number(item))
|
||||||
|
&& ResourceType[item] !== ResourceType.Hidden) {
|
||||||
const el: HTMLElement = document.createElement('div');
|
const el: HTMLElement = document.createElement('div');
|
||||||
el.id = `resource-container-${ResourceType[item]}`;
|
el.id = `resource-container-${ResourceType[item]}`;
|
||||||
el.className = 'resource-type-container';
|
el.className = 'resource-type-container';
|
||||||
|
|
Reference in New Issue