Moved if logic into component for improved performance, inline value updating for select fields

This commit is contained in:
2025-02-09 22:29:24 +01:00
parent f45a51c230
commit c228af7bb6
3 changed files with 9 additions and 8 deletions

View File

@ -7,8 +7,8 @@
<Map v-if="mapEditor.currentMap.value" :key="mapEditor.currentMap.value?.id" />
<Toolbar ref="toolbar" @save="save" @clear="clear" @open-maps="mapModal?.open" @open-settings="mapSettingsModal?.open" @close-editor="mapEditor.toggleActive" />
<MapList ref="mapModal" @open-create-map="mapSettingsModal?.open" />
<TileList v-if="mapEditor.tool.value === 'pencil' && mapEditor.drawMode.value === 'tile'" />
<MapObjectList v-if="mapEditor.tool.value === 'pencil' && mapEditor.drawMode.value === 'map_object'" />
<TileList />
<MapObjectList />
<MapSettings ref="mapSettingsModal" />
<TeleportModal ref="teleportModal" />
</div>