Checkbox Behavior
SmartUI Checkbox Behavior operation and ACEs.
Checkboxes are a handy approach to represent boolean values and toggle it according to user inputs. This component inherits ACEs directly from the Buttons behavior except for the clicking capabilities.
Checkboxes have twice as many animations as the button, although in general terms we talk about the same states. This is due to a checkbox must represent two animations at minimum: check and unchecked.
Properties
Property
Description
Enabled
Enables or Disables the checkbox.
Index
Index of the element within a container. Used for focusing the elements in the sequence order.
Invisible Component
Turns the component opacity to 0 while rendering it to allow invisible interactions.
Focusable
Marks if the component can have the focus.
Automatic-Color
Enables the component to darken a bit when its state is Disabled or when it's focused. Auto-Color is meant to provide a quick identification of the component state. For more specialized customizations, use the component events and disable this check.
Name
Unique name string for identifying the checkbox
On Hover
Animations when hovering
Hover Time
Timelapse to complete the animation in seconds.
Hover Change Factor
Percentage to alter the object properties
On Press
Animations when pressing
Press Time
Timelapse to complete the animation in seconds.
Checked Value
Boolean value of the checkbox. It can be either checked or unchecked.
Unchecked Normal Animation
Unchecked Normal animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Checked Normal Animation
Checked Normal animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Unchecked Disabled Animation
Unchecked Disabled animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Checked Disabled Animation
Checked Disabled animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Unchecked Press Animation
Unchecked Press animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Checked Press Animation
Checked Press animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Unchecked Hover Animation
Unchecked Hover animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Checked Hover Animation
Checked Hover animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Unchecked Focus Animation
Unchecked Focus animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Checked Focus Animation
Checked Focus animation Name. Case sensitive, must match the exact name of the animation. [Sprites only]
Press Change Factor
Percentage to alter the object properties
On Restore
Animations when restoring the checkbox properties
Restore Time
Timelapse to complete the animation in seconds.
On Focus
Animations when focusing the checkbox
Focus Time
Timelapse to complete the animation in seconds.
Focus Change Factor
Percentage to alter the object properties
Smart UI Checkbox ACEs
Smart UI Checkbox behavior. Controls the object like a checkbox, with values: check, and unchecked. It handles ten different sprite animations to match all the states of the object, and can be animated with several built-in animations and easings.
Actions
Set Check
Set CheckToggles the value of the checkbox.
Parameter
Description
Value
Set the value of the checkbox
Set Checked Animation
Set Checked AnimationSets the animation when restoring the checkbox to its normal checked state
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Check Disabled Animation
Set Check Disabled AnimationSets the animation when disabling the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Checked Focus Animation
Set Checked Focus AnimationSets the animation when focusing the checkbox. Focus animation overrides the normal animation if the checkbox has the focus.
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Checked Hover Animation
Set Checked Hover AnimationSets the animation when hovering the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Checked Press Animation
Set Checked Press AnimationSets the animation when pressing the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Enabled
Set EnabledDisable/Enable the checkbox
Parameter
Description
Enabled
Enabled/Disabled
Set Focus
Set FocusSets the focus on the component, removing the focus from all the components within the same container.
Set Focus Change Factor
Set Focus Change FactorSets the animation when focusing the checkbox
Parameter
Description
Change Factor
Percentage to alter the object properties. Eg. 0.5 is 50%, 0.1 is 10%.
Set Focus Function
Set Focus FunctionSets the animation when focusing the checkbox
Parameter
Description
Animation Function
Establishes the animation function when focusing.
Set Focus Time
Set Focus TimeSets the animation duration when focusing the checkbox
Parameter
Description
Duration
Animation duration in seconds
Set Focusable
Set FocusableDisable/Enable the checkbox
Parameter
Description
Focusable
Flag to allow the component to be focused.
Set Hover Change Factor
Set Hover Change FactorSets the animation when hovering the checkbox
Parameter
Description
Change Factor
Percentage to alter the object properties. Eg. 0.5 is 50%, 0.1 is 10%.
Set Hover Function
Set Hover FunctionSets the animation when hovering the checkbox
Parameter
Description
Animation Function
Establishes the animation function when hovering.
Set Hover Time
Set Hover TimeSets the animation duration when hovering the checkbox
Parameter
Description
Duration
Animation duration in seconds
Set Invisible Component
Set Invisible ComponentTurns the component opacity to 0 while rendering it to allow invisible interactions.
Parameter
Description
Invisible Component
Set if the component processed even if it's invisible: True/False
Set Name
Set NameSets the name of the radio button.
Parameter
Description
Name
Name of the component
Set Press Change Factor
Set Press Change FactorSets the animation when pressing the checkbox
Parameter
Description
Change Factor
Percentage to alter the object properties. Eg. 0.5 is 50%, 0.1 is 10%.
Set Press Function
Set Press FunctionSets the animation when pressing the checkbox
Parameter
Description
Animation Function
Establishes the animation function when pressing.
Set Press Time
Set Press TimeSets the animation duration when pressing the checkbox
Parameter
Description
Duration
Animation duration in seconds
Set Restore Function
Set Restore FunctionSets the animation when restoring the checkbox
Parameter
Description
Animation Function
Establishes the animation function when restoring the checkbox to its original state.
Set Restore Time
Set Restore TimeSets the animation duration when restore the checkbox to its original state
Parameter
Description
Duration
Animation duration in seconds
Set Index
Set IndexSets the sequence index to influence the selection of components.
Parameter
Description
Index
Sequence index value. E.g. Indexes values of 0 are processed before indexes values of 1 and 2.
Set Unchecked Animation
Set Unchecked AnimationSets the animation when restoring the checkbox to its normal unchecked state
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Uncheck Disabled Animation
Set Uncheck Disabled AnimationSets the animation when disabling the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Unchecked Focus Animation
Set Unchecked Focus AnimationSets the animation when focusing the checkbox. Focus animation overrides the normal animation if the checkbox has the focus.
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Unchecked Hover Animation
Set Unchecked Hover AnimationSets the animation when hovering the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Set Unchecked Press Animation
Set Unchecked Press AnimationSets the animation when pressing the checkbox
Parameter
Description
Animation name
Animation name. Only applicable for Sprite objects
Simulate Hover
Simulate HoverTrigger the hover event of the plugin, simulating the interaction of the user.
Stop Hover
Stop HoverStops simulating the hover state.
Toggle Check
Toggle CheckToggles the value of the checkbox.
Conditions
Is Checked
Is CheckedReturns true if the checkbox is checked
Compare Name
Compare NameReturns true if the checkbox component's name equals the parameter
Parameter
Description
Name
Name to compare with the component picked.
Is Enabled
Is EnabledReturns true if the checkbox is enabled
Is Focused
Is FocusedReturns true if the checkbox has the focus
Is Hovered
Is HoveredReturns true if the checkbox is hovering
Is Invisible Component
Is Invisible ComponentReturns true if the checkbox is configured as an invisible component.
Is Pressed
Is PressedReturns true if the checkbox is being pressed
On Changed
On ChangedTriggered when the checkbox is value changes. Use it together with Is-Checked condition to react to changes.
On Focus
On FocusTriggered when the checkbox gets the focus
On Focus Lost
On Focus LostTriggered when the checkbox loses focus
On Hover
On HoverTriggered when the checkbox starts hovering
On Hover Lost
On Hover LostTriggered when the checkbox ends hovering
On Pressed
On PressedTriggered when the checkbox started pressing.
On Released
On ReleasedTriggered when the checkbox is released.
Expressions
Name
NameComponent name
(c) Pixel Perfect Studio 2024
Last updated
Was this helpful?