Profectus / features/clickables/repeatable / RepeatableOptions
Interface: RepeatableOptions ​
An object that configures a Repeatable.
Extends ​
Properties ​
canClick? ​
optional
canClick:MaybeRefOrGetter
<boolean
>
Whether or not the clickable may be clicked.
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:24
classes? ​
optional
classes:MaybeRefOrGetter
<Record
<string
,boolean
>>
Dictionary of CSS classes to apply to this feature.
Inherited from ​
Defined in ​
display? ​
optional
display:MaybeGetter
<Renderable
> | {description
:MaybeGetter
<Renderable
>;effectDisplay
: MaybeGetter<Renderable> | undefined;showAmount
:boolean
;title
: MaybeGetter<Renderable> | undefined; }
The display to use for this repeatable.
Type declaration ​
{ description
: MaybeGetter
<Renderable
>; effectDisplay
: MaybeGetter<Renderable> | undefined; showAmount
: boolean
; title
: MaybeGetter<Renderable> | undefined; }
description ​
description:
MaybeGetter
<Renderable
>
The main text that appears in the display.
effectDisplay? ​
optional
effectDisplay: MaybeGetter<Renderable> | undefined
A description of the current effect of this repeatable, based off its amount.
showAmount? ​
optional
showAmount:boolean
Whether or not to show the current amount of this repeatable at the bottom of the display.
title? ​
optional
title: MaybeGetter<Renderable> | undefined
A header to appear at the top of the display.
Overrides ​
Defined in ​
profectus/src/features/clickables/repeatable.tsx:33
initialAmount? ​
optional
initialAmount:DecimalSource
The initial amount this repeatable has on a new save / after reset.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:31
limit? ​
optional
limit:MaybeRefOrGetter
<DecimalSource
>
The maximum amount obtainable for this repeatable.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:29
onClick()? ​
optional
onClick: (e
?) =>void
A function that is called when the clickable is clicked.
Parameters ​
e? ​
Returns ​
void
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:35
onHold? ​
optional
onHold:VoidFunction
A function that is called when the clickable is held down.
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:37
requirements ​
requirements:
Requirements
The requirement(s) to increase this repeatable.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:27
style? ​
optional
style:MaybeRefOrGetter
<CSSProperties
>
CSS to apply to this feature.
Inherited from ​
Defined in ​
visibility? ​
optional
visibility:MaybeRefOrGetter
<boolean | Visibility>
Whether this feature should be visible.