2 lines
8.1 KiB
JavaScript
2 lines
8.1 KiB
JavaScript
|
import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const m=JSON.parse('{"title":"Interface: LayerOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/layers.LayerOptions.md","lastUpdated":null}'),o={name:"api/interfaces/game/layers.LayerOptions.md"},i=r('<h1 id="interface-layeroptions" tabindex="-1">Interface: LayerOptions <a class="header-anchor" href="#interface-layeroptions" aria-label="Permalink to "Interface: LayerOptions""></a></h1><p><a href="./../../modules/game/layers">game/layers</a>.LayerOptions</p><p>An object that configures a <a href="./../../modules/game/layers#layer">Layer</a>. Even moreso than features, the developer is expected to include extra properties in this object. All <a href="./../../modules/game/persistence#persistent">Persistent</a> refs must be included somewhere within the layer object.</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to "Properties""></a></h2><h3 id="classes" tabindex="-1">classes <a class="header-anchor" href="#classes" aria-label="Permalink to "classes""></a></h3><p>• <code>Optional</code> <strong>classes</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>string</code>, <code>boolean</code>>></p><p>An object of classes that should be applied to the display.</p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L116" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:116</a></p><hr><h3 id="color" tabindex="-1">color <a class="header-anchor" href="#color" aria-label="Permalink to "color""></a></h3><p>• <code>Optional</code> <strong>color</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<code>string</code>></p><p>The color of the layer, used to theme the entire layer's display.</p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L109" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:109</a></p><hr><h3 id="display" tabindex="-1">display <a class="header-anchor" href="#display" aria-label="Permalink to "display""></a></h3><p>• <strong>display</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<a href="./../../modules/features/feature#coercablecomponent"><code>CoercableComponent</code></a>></p><p>The layout of this layer's features. When the layer is open in game/player.PlayerData.tabs, this is the content that is displayed.</p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L114" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:114</a></p><hr><h3 id="forcehidegoback" tabindex="-1">forceHideGoBack <a class="header-anchor" href="#forcehidegoback" aria-label="Permalink to "forceHideGoBack""></a></h3><p>• <code>Optional</code> <strong>forceHideGoBack</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<code>boolean</code>></p><p>Whether or not to force the go back button to be hidden. If true, go back will be hidden regardless of data/projInfo.allowGoBack.</p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-label="Permalink to "Defined in""></a></h
|