import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const p=JSON.parse('{"title":"Interface: ResetButtonOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/data/common.ResetButtonOptions.md","lastUpdated":null}'),o={name:"api/interfaces/data/common.ResetButtonOptions.md"},i=r('
data/common.ResetButtonOptions
An object that configures a ResetButton
↳ ResetButtonOptions
• Optional
canClick: Computable
<boolean
>
Whether or not this button can currently be clicked. Defaults to checking the current gain amount is greater than minimumGain
profectus/src/data/common.tsx:57
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
profectus/src/features/clickables/clickable.ts:34
• conversion: GenericConversion
The conversion the button uses to calculate how much resources will be gained on click
profectus/src/data/common.tsx:36
• Optional
display: Computable
<CoercableComponent
>
The content to display on the button. By default, this includes the reset description, and amount of currency to be gained.
profectus/src/data/common.tsx:52
• Optional
mark: Computable
<string
| boolean
>
Shows a marker on the corner of the feature.
profectus/src/features/clickables/clickable.ts:38
• Optional
minimumGain: Computable
<DecimalSource
>
When canClick is left to its default, minimumGain is used to only enable the reset button when a sufficient amount of currency to gain is available.
profectus/src/data/common.tsx:61
• Optional
onClick: (e?
: MouseEvent
| TouchEvent
) => void
▸ (e?
): void
A function that is called when the clickable is clicked.
Name | Type |
---|---|
e? | MouseEvent | TouchEvent |
void
profectus/src/features/clickables/clickable.ts:52
• Optional
onHold: VoidFunction
A function that is called when the clickable is held down.
profectus/src/features/clickables/clickable.ts:54
• Optional
resetDescription: Computable
<string
>
Text to display on low conversion amounts, describing what "resetting" is in this context. Defaults to "Reset for ".
profectus/src/data/common.tsx:45
• Optional
resetTime: Persistent
<DecimalSource
>
A persistent ref to track how much time has passed since the last time this tree node was reset.
profectus/src/data/common.tsx:63
• Optional
showNextAt: Computable
<boolean
>
Whether or not to show how much currency would be required to make the gain amount increase.
profectus/src/data/common.tsx:47
• Optional
small: boolean
Toggles a smaller design for the feature.
profectus/src/features/clickables/clickable.ts:50
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.
profectus/src/features/clickables/clickable.ts:36
• tree: GenericTree
The tree this reset button is apart of
profectus/src/data/common.tsx:38
• treeNode: GenericTreeNode
The specific tree node associated with this reset button
profectus/src/data/common.tsx:40
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this clickable should be visible.