Minor changes to model picker

This commit is contained in:
Misode
2020-08-15 01:27:12 +02:00
parent e4aa07ef03
commit 946f7e4683
2 changed files with 6 additions and 6 deletions

View File

@@ -344,7 +344,7 @@ Promise.all([
output.insertAdjacentHTML('beforeend',
`<div class="generators-card${m.id === selected ? ' selected' : ''}">
${locale(m.name)}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"></path></svg>
${m.schema ? '' : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"></path></svg>'}
</div>`)
output.lastChild?.addEventListener('click', evt => {
reload(publicPath + m.id)

View File

@@ -63,6 +63,11 @@
"name": "Dimension Type",
"schema": "dimension_type"
},
{
"id": "world",
"name": "World Settings",
"schema": "world_settings"
},
{
"id": "worldgen",
"name": "Worldgen",
@@ -108,11 +113,6 @@
"schema": "template_pool"
}
]
},
{
"id": "world",
"name": "Import World Settings",
"schema": "world_settings"
}
],
"registries": [