profectus-docs/assets/api_interfaces_game_layers.LayerOptions.md.f7c3a7ed.js

1 line
8.1 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 &quot;Interface: LayerOptions&quot;"></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 &quot;Properties&quot;"></a></h2><h3 id="classes" tabindex="-1">classes <a class="header-anchor" href="#classes" aria-label="Permalink to &quot;classes&quot;"></a></h3><p>• <code>Optional</code> <strong>classes</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<code>string</code>, <code>boolean</code>&gt;&gt;</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 &quot;Defined in&quot;"></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 &quot;color&quot;"></a></h3><p>• <code>Optional</code> <strong>color</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<code>string</code>&gt;</p><p>The color of the layer, used to theme the entire layer&#39;s display.</p><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to &quot;Defined in&quot;"></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 &quot;display&quot;"></a></h3><p>• <strong>display</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<a href="./../../modules/features/feature#coercablecomponent"><code>CoercableComponent</code></a>&gt;</p><p>The layout of this layer&#39;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 &quot;Defined in&quot;"></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 &quot;forceHideGoBack&quot;"></a></h3><p>• <code>Optional</code> <strong>forceHideGoBack</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<code>boolean</code>&gt;</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 &quot;Defined in&quot;"></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 &quot;minWidth&quot;"></a></h3><p>• <code>Optional</code> <strong>minWidth</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<code>string</code> | <code>number</code>&gt;</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 &quot;Defined in&quot;"></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 &quot;minimizable&quot;"></a></h3><p>• <code>Optional</code> <strong>minimizable</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<code>boolean</code>&gt;</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 &quot;Defined in&quot;"></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 &quot;minimizedDisplay&quot;"></a></h3><p>• <code>Optional</code> <strong>minimizedDisplay</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<a href="./../../modules/features/feature#coercablecomponent"><code>CoercableComponent</code></a>&gt;</p><p>The layout of this layer&#39;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 &quot;Defined in&quot;"></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 &quot;name&quot;"></a></h3><p>• <code>Optional</code> <strong>name</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<code>string</code>&gt;</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 &quot;Defined in&quot;"></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 &quot;style&quot;"></a></h3><p>• <code>Optional</code> <strong>style</strong>: <a href="./../../modules/util/computed#computable"><code>Computable</code></a>&lt;<a href="./../../modules/features/feature#stylevalue"><code>StyleValue</code></a>&gt;</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 &quot;Defined in&quot;"></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};