Refactoring: split icons into proper layered icons, fix and rerun shops-thief

This commit is contained in:
Pieter Vander Vennet 2023-10-06 23:56:50 +02:00
parent d6cd0516bb
commit 19a760178b
307 changed files with 26845 additions and 116541 deletions

20
src/UI/Map/Marker.svelte Normal file
View file

@ -0,0 +1,20 @@
<script lang="ts">
import PointRenderingConfig, { IconConfig } from "../../Models/ThemeConfig/PointRenderingConfig";
import Icon from "./Icon.svelte";
import { Store } from "../../Logic/UIEventSource";
/**
* Renders a 'marker', which consists of multiple 'icons'
*/
export let config : PointRenderingConfig
let icons: IconConfig[] = config.marker;
export let tags: Store<Record<string, string>>;
</script>
<div class="relative w-full h-full">
{#each icons as icon}
<Icon {icon} {tags} />
{/each}
</div>