mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-05 23:11:47 +00:00
Minor changes to model picker
This commit is contained in:
+1
-1
@@ -344,7 +344,7 @@ Promise.all([
|
|||||||
output.insertAdjacentHTML('beforeend',
|
output.insertAdjacentHTML('beforeend',
|
||||||
`<div class="generators-card${m.id === selected ? ' selected' : ''}">
|
`<div class="generators-card${m.id === selected ? ' selected' : ''}">
|
||||||
${locale(m.name)}
|
${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>`)
|
</div>`)
|
||||||
output.lastChild?.addEventListener('click', evt => {
|
output.lastChild?.addEventListener('click', evt => {
|
||||||
reload(publicPath + m.id)
|
reload(publicPath + m.id)
|
||||||
|
|||||||
+5
-5
@@ -63,6 +63,11 @@
|
|||||||
"name": "Dimension Type",
|
"name": "Dimension Type",
|
||||||
"schema": "dimension_type"
|
"schema": "dimension_type"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "world",
|
||||||
|
"name": "World Settings",
|
||||||
|
"schema": "world_settings"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "worldgen",
|
"id": "worldgen",
|
||||||
"name": "Worldgen",
|
"name": "Worldgen",
|
||||||
@@ -108,11 +113,6 @@
|
|||||||
"schema": "template_pool"
|
"schema": "template_pool"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "world",
|
|
||||||
"name": "Import World Settings",
|
|
||||||
"schema": "world_settings"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"registries": [
|
"registries": [
|
||||||
|
|||||||
Reference in New Issue
Block a user