mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Minor changes to model picker
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user