2021-04-24 02:14:54 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2022-11-02 09:23:08 +01:00
|
|
|
import TitledContainer from "../components/TitledContainer.svelte";
|
2021-04-25 10:40:02 +02:00
|
|
|
import type { DeckOptionsState } from "./lib";
|
2021-04-24 02:14:54 +02:00
|
|
|
|
2021-04-25 10:40:02 +02:00
|
|
|
export let state: DeckOptionsState;
|
2021-05-29 17:32:12 +02:00
|
|
|
|
2022-02-04 09:36:34 +01:00
|
|
|
const components = state.addonComponents;
|
2021-04-25 11:24:19 +02:00
|
|
|
const auxData = state.currentAuxData;
|
2021-04-24 02:14:54 +02:00
|
|
|
</script>
|
|
|
|
|
2021-05-19 08:20:25 +02:00
|
|
|
{#if $components.length || state.haveAddons}
|
2022-02-03 05:52:11 +01:00
|
|
|
<TitledContainer title="Add-ons">
|
2021-05-19 08:20:25 +02:00
|
|
|
<p>
|
|
|
|
If you're using an add-on that hasn't been updated to use this new screen
|
|
|
|
yet, you can access the old deck options screen by holding down the shift
|
|
|
|
key when opening the options.
|
|
|
|
</p>
|
|
|
|
|
2021-04-24 02:14:54 +02:00
|
|
|
{#each $components as addon}
|
2021-04-25 11:24:19 +02:00
|
|
|
<svelte:component this={addon.component} bind:data={$auxData} {...addon} />
|
2021-04-24 02:14:54 +02:00
|
|
|
{/each}
|
2021-05-27 23:19:05 +02:00
|
|
|
</TitledContainer>
|
2021-04-24 02:14:54 +02:00
|
|
|
{/if}
|