Behavior : Button
Author:Rex.Rainbow
- Get click event while "touch end".
Download
Properties
Activated
- Enable if you wish this goto ACTIVE state at the start of the layout.
Click mode
- Clicking when touch released or pressed.
- Options : ["Released","Pressed"]
Activated after Clicked
- Auto back to ACTIVE state after CLICKED state.
Visible checking
- Set Yes to enable button if visible.
Actions
Click detecting state
Action:Cancel click detecting
- Cancel click detecting at click detecting state.
Condition
Action:Manual trigger
- Manual trigger condition.
- Condition type ( Combo ) : Condition type.
- Options : ["On clicked","On click cancel","On click detecting start","On activated","On inactivated","On rolling in","On rolling out"]
Display
Action:Set display of states
- Set display of states.
- Normal ( number or string ) : Frame index (number) or animation name (string) at normal state, "" is ignored.
- Click ( number or string ) : Frame index (number) or animation name (string) at click state, "" is ignored.
- INACTIVE ( number or string ) : Frame index (number) or animation name (string) at INACTIVE state, "" is ignored.
- Rolling-in ( number or string ) : Frame index (number) or animation name (string) at rolling-un state, "" is ignored.
Request - Activate
Action:Activate
Action:Activate in layer
- Goto ACTIVE state if in layer, else goto INACTIVE state.
- Layer ( layer ) : Layer name of number.
Request - Deactivate
Action:Deactivate
Action:Deactivate in layer
- Goto INACTIVE state if in layer, else goto ACTIVE state.
- Layer ( layer ) : Layer name of number.
Expressions
State
Expression:CurState
- Get current button state.
Expression:PreState
- Get previous button state.
Conditions
Button
Condition:On activated
- Triggered when button activated.
Condition:On inactivated
- Triggered when button inactivated.
Click
Condition:On clicked
Condition:On click cancel
- Triggered when clicking canceled.
Condition:On click detecting start
- Triggered when clicking detecting start.
Enable
Condition:Is enable
- Return true if this button is enable.
Rolling over
Condition:On rolling in
- Triggered when rolling-in.
Condition:On rolling out
- Triggered when rolling-out.