Icon states allow the "experience designer" to dynamically pick the Icon image based on the state of the Smart NFT.
Icon states allow the "experience designer" to dynamically pick the Icon image based on the state of the Smart NFT.
The designer can add additional images along with expressions. All the expressions are ordered. Expressions are tested from the top (to the bottom). Once we encounter an expression that evaluates to true, we display that image. If none of the defined rules evaluates to true, then the "Default" image is displayed.
In this example, a folder Smart NFT's Icon changes dynamically based on the number of contained objects.
0 Contained Objects
4 Contained Objects
Accessing Private section
{ "statePointer": "/varius.behavior:varius.io:misc-data-v1/tweet", "isEqualTo": true}
Above `statePointer` translates to:
private.state.\"varius.behavior:varius.io:misc-data-v1\".tweet
One limitation of this feature is that it cannot access values outside of the behavior state ("private.state") section.
Accessing child object count (applies only to 'Folder')
{ "maxChildCount": 1 }
Fill Percentage (applies to 'Instant Share')
{
"statePointer": "/cloneable-v1/cloningScore",
"isEqualTo": 0.25
}
Comments
0 comments
Please sign in to leave a comment.