ShowResource
This effect allows you to display a resource for the user to see and interact with. Resources will display as bottom sheets, just as if the player had tapped on it.
JSON Format
{
"type": "showResource",
"resource": ...,
"edit_stat": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
resource | StatFormulaComponent | ✓ | This stat formula should return the resource you want to display. |
edit_stat | StatFormulaComponent | Optional. This stat component should return a string for the stat that the resource should be saved to if edited. If provided, the resource will be editable by the user. Otherwise, the resource will display as read-only. |