import{_ as a,c as t,a0 as r,o as i}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: UpgradeOptions","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/clickables/upgrade/interfaces/UpgradeOptions.md","filePath":"api/features/clickables/upgrade/interfaces/UpgradeOptions.md","lastUpdated":null}'),o={name:"api/features/clickables/upgrade/interfaces/UpgradeOptions.md"};function c(l,e,n,s,d,h){return i(),t("div",null,e[0]||(e[0]=[r('
Profectus / features/clickables/upgrade / UpgradeOptions
An object that configures a Upgrade.
optional
canClick:MaybeRefOrGetter
<boolean
>
Whether or not the clickable may be clicked.
profectus/src/features/clickables/clickable.tsx:24
optional
classes:MaybeRefOrGetter
<Record
<string
,boolean
>>
Dictionary of CSS classes to apply to this feature.
optional
display:MaybeGetter
<Renderable
> | {description
:MaybeGetter
<Renderable
>;effectDisplay
: MaybeGetter<Renderable> | undefined;title
: MaybeGetter<Renderable> | undefined; }
The display to use for this upgrade.
{ description
: MaybeGetter
<Renderable
>; effectDisplay
: MaybeGetter<Renderable> | undefined; title
: MaybeGetter<Renderable> | undefined; }
description:
MaybeGetter
<Renderable
>
The main text that appears in the display.
optional
effectDisplay: MaybeGetter<Renderable> | undefined
A description of the current effect of the achievement. Useful when the effect changes dynamically.
optional
title: MaybeGetter<Renderable> | undefined
A header to appear at the top of the display.
profectus/src/features/clickables/upgrade.tsx:36
optional
onClick: (e
?) =>void
A function that is called when the clickable is clicked.
void
profectus/src/features/clickables/clickable.tsx:35
optional
onHold:VoidFunction
A function that is called when the clickable is held down.
profectus/src/features/clickables/clickable.tsx:37
optional
onPurchase:VoidFunction
A function that is called when the upgrade is purchased.
profectus/src/features/clickables/upgrade.tsx:49
requirements:
Requirements
The requirements to purchase this upgrade.
profectus/src/features/clickables/upgrade.tsx:47
optional
style:MaybeRefOrGetter
<CSSProperties
>
CSS to apply to this feature.
optional
visibility:MaybeRefOrGetter
<boolean | Visibility>
Whether this feature should be visible.