Profectus / features/trees/tree / createResourceTooltip
Function: createResourceTooltip() ​
createResourceTooltip(
resource
,requiredResource
,requirement
): () =>string
Utility for creating a tooltip for a tree node that displays a resource-based unlock requirement, and after unlock shows the amount of another resource. It sounds oddly specific, but comes up a lot.
Parameters ​
resource ​
requiredResource ​
null
| Resource
requirement ​
MaybeRefOrGetter
<DecimalSource
> = 0
Returns ​
Function
Returns ​
string