1 line
8.1 KiB
JavaScript
1 line
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></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L138" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:138</a></p><hr><h3 id="minwidth" tabindex="-1">minWidth <a class="header-anchor" href="#minwidth" aria-label="Permalink to "minWidth""></a></h3><p>• <code>Optional</code> <strong>minWidth</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<code>string</code> | <code>number</code>></p><p>A CSS min-width value that is applied to the layer. Can be a number, in which case the unit is assumed to be px. Defaults to 600px.</p><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L144" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:144</a></p><hr><h3 id="minimizable" tabindex="-1">minimizable <a class="header-anchor" href="#minimizable" aria-label="Permalink to "minimizable""></a></h3><p>• <code>Optional</code> <strong>minimizable</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<code>boolean</code>></p><p>Whether or not the layer can be minimized. Defaults to true.</p><h4 id="defined-in-5" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-5" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L128" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:128</a></p><hr><h3 id="minimizeddisplay" tabindex="-1">minimizedDisplay <a class="header-anchor" href="#minimizeddisplay" aria-label="Permalink to "minimizedDisplay""></a></h3><p>• <code>Optional</code> <strong>minimizedDisplay</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, but the tab is Layer.minimized this is the content that is displayed.</p><h4 id="defined-in-6" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-6" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L133" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:133</a></p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><p>• <code>Optional</code> <strong>name</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<code>string</code>></p><p>The name of the layer, used on minimized tabs. Defaults to <a href="./layers.BaseLayer#id">id</a>.</p><h4 id="defined-in-7" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-7" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L123" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:123</a></p><hr><h3 id="style" tabindex="-1">style <a class="header-anchor" href="#style" aria-label="Permalink to "style""></a></h3><p>• <code>Optional</code> <strong>style</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a><<a href="./../../modules/features/feature#stylevalue"><code>StyleValue</code></a>></p><p>Styles that should be applied to the display.</p><h4 id="defined-in-8" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-8" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/game/layers.tsx#L118" target="_blank" rel="noreferrer">profectus/src/game/layers.tsx:118</a></p>',57),n=[i];function s(l,d,c,h,p,f){return t(),a("div",null,n)}const b=e(o,[["render",s]]);export{m as __pageData,b as default};
|