profectus-docs/assets/api_data_common_interfaces_ResetButton.md.CeEOMyEn.lean.js

1 line
21 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 a,c as r,a0 as t,o as i}from"./chunks/framework.P9qPzDnn.js";const u=JSON.parse('{"title":"Interface: ResetButton","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/data/common/interfaces/ResetButton.md","filePath":"api/data/common/interfaces/ResetButton.md","lastUpdated":null}'),o={name:"api/data/common/interfaces/ResetButton.md"};function c(n,e,l,s,d,h){return i(),r("div",null,e[0]||(e[0]=[t('<p><a href="./../../../">Profectus</a> / <a href="./../">data/common</a> / ResetButton</p><h1 id="interface-resetbutton" tabindex="-1">Interface: ResetButton <a class="header-anchor" href="#interface-resetbutton" aria-label="Permalink to &quot;Interface: ResetButton&quot;"></a></h1><p>A button that is used to control a conversion. It will show how much can be converted currently, and can show when that amount will go up, as well as handle only being clickable when a sufficient amount of currency can be gained. Assumes this button is associated with a specific node on a tree, and triggers that tree&#39;s reset propagation.</p><h2 id="extends" tabindex="-1">Extends <a class="header-anchor" href="#extends" aria-label="Permalink to &quot;Extends&quot;"></a></h2><ul><li><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a></li></ul><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to &quot;Properties&quot;"></a></h2><h3 id="vuefeature" tabindex="-1">[VueFeature] <a class="header-anchor" href="#vuefeature" aria-label="Permalink to &quot;\\[VueFeature\\]&quot;"></a></h3><blockquote><p><strong>[VueFeature]</strong>: <code>true</code></p></blockquote><p>Used to identify Vue Features</p><h4 id="inherited-from" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#[vuefeature]"><code>[VueFeature]</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L43" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:43</a></p><hr><h3 id="canclick" tabindex="-1">canClick <a class="header-anchor" href="#canclick" aria-label="Permalink to &quot;canClick&quot;"></a></h3><blockquote><p><strong>canClick</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<code>boolean</code>&gt;</p></blockquote><p>Whether or not the clickable may be clicked.</p><h4 id="inherited-from-1" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-1" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#canclick"><code>canClick</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L47" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:47</a></p><hr><h3 id="classes" tabindex="-1">classes? <a class="header-anchor" href="#classes" aria-label="Permalink to &quot;classes?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>classes</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</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></blockquote><p>Dictionary of CSS classes to apply to this feature.</p><h4 id="inherited-from-2" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-2" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#classes"><code>classes</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L35" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:35</a></p><hr><h3 id="components" tabindex="-1">components <a class="header-anchor" href="#components" aria-label="Permalink to &quot;components&quot;"></a></h3><blockquote><p><strong>components</strong>: <a href="./../../../util/computed/type-aliases/MaybeGetter"><code>MaybeGetter</code></a>&lt;<a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>&gt;[]</p></blockquote><p>The components to render inside the vue feature</p><h4 id="inherited-from-3" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-3" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#components"><code>components</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L39" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:39</a></p><hr><h3 id="conversion" tabindex="-1">conversion <a class="header-anchor" href="#conversion" aria-label="Permalink to &quot;conversion&quot;"></a></h3><blockquote><p><strong>conversion</strong>: <a href="./../../../features/conversion/interfaces/Conversion"><code>Conversion</code></a></p></blockquote><p>The conversion the button uses to calculate how much resources will be gained on click</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://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L67" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:67</a></p><hr><h3 id="display" tabindex="-1">display? <a class="header-anchor" href="#display" aria-label="Permalink to &quot;display?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>display</strong>: <a href="./../../../util/computed/type-aliases/MaybeGetter"><code>MaybeGetter</code></a>&lt;<a href="./../../../util/vue/type-aliases/Renderable"><code>Renderable</code></a>&gt;</p></blockquote><p>The display to use for this clickable.</p><h4 id="inherited-from-4" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-4" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#display"><code>display</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L49" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:49</a></p><hr><h3 id="id" tabindex="-1">id <a class="header-anchor" href="#id" aria-label="Permalink to &quot;id&quot;"></a></h3><blockquote><p><strong>id</strong>: <code>string</code></p></blockquote><p>An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.</p><h4 id="inherited-from-5" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-5" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#id"><code>id</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L31" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:31</a></p><hr><h3 id="minimumgain" tabindex="-1">minimumGain? <a class="header-anchor" href="#minimumgain" aria-label="Permalink to &quot;minimumGain?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>minimumGain</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<a href="./../../../lib/break_eternity/type-aliases/DecimalSource"><code>DecimalSource</code></a>&gt;</p></blockquote><p>When <a href="./../../../features/clickables/clickable/interfaces/Clickable#canclick">canClick</a> is left to its default, minimumGain is used to only enable the reset button when a sufficient amount of currency to gain is available.</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://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L82" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:82</a></p><hr><h3 id="onclick" tabindex="-1">onClick()? <a class="header-anchor" href="#onclick" aria-label="Permalink to &quot;onClick()?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>onClick</strong>: (<code>e</code>?) =&gt; <code>void</code></p></blockquote><p>A function that is called when the clickable is clicked.</p><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><h5 id="e" tabindex="-1">e? <a class="header-anchor" href="#e" aria-label="Permalink to &quot;e?&quot;"></a></h5><p><a href="https://developer.mozilla.org/docs/Web/API/MouseEvent" target="_blank" rel="noreferrer"><code>MouseEvent</code></a> | <a href="https://developer.mozilla.org/docs/Web/API/TouchEvent" target="_blank" rel="noreferrer"><code>TouchEvent</code></a></p><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h4><p><code>void</code></p><h4 id="inherited-from-6" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-6" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#onclick"><code>onClick</code></a></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://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L43" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:43</a></p><hr><h3 id="onhold" tabindex="-1">onHold? <a class="header-anchor" href="#onhold" aria-label="Permalink to &quot;onHold?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>onHold</strong>: <code>VoidFunction</code></p></blockquote><p>A function that is called when the clickable is held down.</p><h4 id="inherited-from-7" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-7" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#onhold"><code>onHold</code></a></p><h4 id="defined-in-9" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-9" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L45" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:45</a></p><hr><h3 id="resetdescription" tabindex="-1">resetDescription? <a class="header-anchor" href="#resetdescription" aria-label="Permalink to &quot;resetDescription?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>resetDescription</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<code>string</code>&gt;</p></blockquote><p>Text to display on low conversion amounts, describing what &quot;resetting&quot; is in this context. Defaults to &quot;Reset for &quot;.</p><h4 id="defined-in-10" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-10" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L76" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:76</a></p><hr><h3 id="resettime" tabindex="-1">resetTime? <a class="header-anchor" href="#resettime" aria-label="Permalink to &quot;resetTime?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>resetTime</strong>: <a href="./../../../game/persistence/type-aliases/Persistent"><code>Persistent</code></a>&lt;<a href="./../../../lib/break_eternity/type-aliases/DecimalSource"><code>DecimalSource</code></a>&gt;</p></blockquote><p>A persistent ref to track how much time has passed since the last time this tree node was reset.</p><h4 id="defined-in-11" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-11" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L84" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:84</a></p><hr><h3 id="shownextat" tabindex="-1">showNextAt? <a class="header-anchor" href="#shownextat" aria-label="Permalink to &quot;showNextAt?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>showNextAt</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<code>boolean</code>&gt;</p></blockquote><p>Whether or not to show how much currency would be required to make the gain amount increase.</p><h4 id="defined-in-12" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-12" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L78" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:78</a></p><hr><h3 id="style" tabindex="-1">style? <a class="header-anchor" href="#style" aria-label="Permalink to &quot;style?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>style</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;<a href="https://vuejs.org/api/utility-types.html#cssproperties" target="_blank" rel="noreferrer"><code>CSSProperties</code></a>&gt;</p></blockquote><p>CSS to apply to this feature.</p><h4 id="inherited-from-8" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-8" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#style"><code>style</code></a></p><h4 id="defined-in-13" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-13" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L37" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:37</a></p><hr><h3 id="tree" tabindex="-1">tree <a class="header-anchor" href="#tree" aria-label="Permalink to &quot;tree&quot;"></a></h3><blockquote><p><strong>tree</strong>: <a href="./../../../features/trees/tree/interfaces/Tree"><code>Tree</code></a></p></blockquote><p>The tree this reset button is apart of</p><h4 id="defined-in-14" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-14" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L69" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:69</a></p><hr><h3 id="treenode" tabindex="-1">treeNode <a class="header-anchor" href="#treenode" aria-label="Permalink to &quot;treeNode&quot;"></a></h3><blockquote><p><strong>treeNode</strong>: <a href="./../../../features/trees/tree/interfaces/TreeNode"><code>TreeNode</code></a></p></blockquote><p>The specific tree node associated with this reset button</p><h4 id="defined-in-15" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-15" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/data/common.tsx#L71" target="_blank" rel="noreferrer">profectus/src/data/common.tsx:71</a></p><hr><h3 id="type" tabindex="-1">type <a class="header-anchor" href="#type" aria-label="Permalink to &quot;type&quot;"></a></h3><blockquote><p><strong>type</strong>: <em>typeof</em> <a href="./../../../features/clickables/clickable/variables/ClickableType"><code>ClickableType</code></a></p></blockquote><p>A symbol that helps identify features of the same type.</p><h4 id="inherited-from-9" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-9" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#type"><code>type</code></a></p><h4 id="defined-in-16" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-16" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/features/clickables/clickable.tsx#L51" target="_blank" rel="noreferrer">profectus/src/features/clickables/clickable.tsx:51</a></p><hr><h3 id="visibility" tabindex="-1">visibility? <a class="header-anchor" href="#visibility" aria-label="Permalink to &quot;visibility?&quot;"></a></h3><blockquote><p><code>optional</code> <strong>visibility</strong>: <a href="https://vuejs.org/api/utility-types.html#mayberef" target="_blank" rel="noreferrer"><code>MaybeRef</code></a>&lt;boolean | Visibility&gt;</p></blockquote><p>Whether this feature should be visible.</p><h4 id="inherited-from-10" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-10" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#visibility"><code>visibility</code></a></p><h4 id="defined-in-17" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-17" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L33" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:33</a></p><hr><h3 id="wrappers" tabindex="-1">wrappers <a class="header-anchor" href="#wrappers" aria-label="Permalink to &quot;wrappers&quot;"></a></h3><blockquote><p><strong>wrappers</strong>: <a href="./../../../util/vue/type-aliases/Wrapper"><code>Wrapper</code></a>[]</p></blockquote><p>The components to render wrapped around the vue feature</p><h4 id="inherited-from-11" tabindex="-1">Inherited from <a class="header-anchor" href="#inherited-from-11" aria-label="Permalink to &quot;Inherited from&quot;"></a></h4><p><a href="./../../../features/clickables/clickable/interfaces/Clickable"><code>Clickable</code></a>.<a href="./../../../features/clickables/clickable/interfaces/Clickable#wrappers"><code>wrappers</code></a></p><h4 id="defined-in-18" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-18" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/util/vue.tsx#L41" target="_blank" rel="noreferrer">profectus/src/util/vue.tsx:41</a></p>',148)]))}const b=a(o,[["render",c]]);export{u as __pageData,b as default};