qc.TransitionBehaviour

Description

A component for state change: normal、pressed、disable

Variables

Variable Name Type Description
target qc.Node The target node to apply transition.
transition int Transition mode: Transition.Node(No Transition), Transition.COLOR_TINT(Use an color tint transition), Transition.TEXTURE_SWAP(Use a sprite swap transition), Transition.ANIMATION(Use an animation transition)
disabledColor qc.Color transition=Transition.COLOR_TINT && The color when disable
disabledTexture asset.Atlas transition=Transition.TEXTURE_SWAP && The Texture when disable
normalColor qc.Color transition=Transition.COLOR_TINT && The normal color
normalTexture asset.Atlas transition=Transition.TEXTURE_SWAP && The normal texture
pressedColor qc.Color transition=Transition.COLOR_TINT && The color when pressed
pressedTexture asset.Atlas transition=Transition.TEXTURE_SWAP && The texture when pressed

Manual

TransitionBehaviour