1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
import{_ as a,c as t,a0 as o,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: setupLayerModal()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/layers/functions/setupLayerModal.md","filePath":"api/game/layers/functions/setupLayerModal.md","lastUpdated":null}'),n={name:"api/game/layers/functions/setupLayerModal.md"};function l(s,e,d,i,c,u){return r(),t("div",null,e[0]||(e[0]=[o('<p><a href="./../../../">Profectus</a> / <a href="./../">game/layers</a> / setupLayerModal</p><h1 id="function-setuplayermodal" tabindex="-1">Function: setupLayerModal() <a class="header-anchor" href="#function-setuplayermodal" aria-label="Permalink to "Function: setupLayerModal()""></a></h1><blockquote><p><strong>setupLayerModal</strong>(<code>layer</code>): <code>object</code></p></blockquote><p>Utility function for creating a modal that display's a <a href="./../interfaces/LayerOptions#display">LayerOptions.display</a>. Returns the modal itself, which can be rendered anywhere you need, as well as a function to open the modal.</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to "Parameters""></a></h2><h3 id="layer" tabindex="-1">layer <a class="header-anchor" href="#layer" aria-label="Permalink to "layer""></a></h3><p><a href="./../interfaces/Layer"><code>Layer</code></a></p><p>The layer to display in the modal.</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to "Returns""></a></h2><p><code>object</code></p><h3 id="modal" tabindex="-1">modal() <a class="header-anchor" href="#modal" aria-label="Permalink to "modal()""></a></h3><blockquote><p><strong>modal</strong>: () => <code>JSX.Element</code></p></blockquote><h4 id="returns-1" tabindex="-1">Returns <a class="header-anchor" href="#returns-1" aria-label="Permalink to "Returns""></a></h4><p><code>JSX.Element</code></p><h3 id="openmodal" tabindex="-1">openModal <a class="header-anchor" href="#openmodal" aria-label="Permalink to "openModal""></a></h3><blockquote><p><strong>openModal</strong>: <code>VoidFunction</code></p></blockquote><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/layers.tsx#L371" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:371</a></p>',18)]))}const m=a(n,[["render",l]]);export{h as __pageData,m as default};
|