Smart UI Progress Bar Behavior

Dream it, build it!

Smart UI Progress Bar Behavior

Progress Bar

Smart UI Progress Bar behavior handles progress bar UI components. It provides built-in animations and triggers to handle value changes. The component relies on its width. If you use it as part of a hierarcy, you must add it to an object using a Smart UI Container behavior to be rendered correctly, since it will use its parent width as the base for rendering.

Properties

PropertyDescription
EnabledEnables or Disables the Progress Bar. Value can still be set and it will change the progress bar, but animations won't be triggered. You can use the IsEnabled condition to affect the look and feel when needed.
Automatic-ColorEnables 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.
NameUnique name string for identifying the progress bar
ValueNumeric value representing the current progress.
Max.ValueMaximum value representing the 100%.
Animation timeTime in seconds to complete the animation when changing the value of the progress bar.
Animation EasingEasing function to animate the value change.

Actions

Set Enabled

Disable/Enable the Button

ParameterDescription
EnabledEnabled/Disabled

Set Name

Sets the name of the component.

ParameterDescription
NameName of the component

Set Value

Sets the current value of the progress bar. If the value is below 0 or above the maximum, it will be clamped.

ParameterDescription
ValueNumeric value representing the current progress
ModeIndicate whether or not bypass the animation

Set Max

Sets the maximum value of the progress bar.

ParameterDescription
ValueMaximum value representing the 100%.

Set Animation

Sets the animation function of the progress bar.

ParameterDescription
AnimationAnimation easing to be applied every time the value of the progress bar changes.

Set Animation Time

Sets the time period in seconds to complete the animation of progress bar.

ParameterDescription
TimePeriod in seconds to complete the animation.

Conditions

Is Enabled

Returns true if the Progress Bar is enabled

Compare Value

Compares the value of the progress bar.

ParameterDescription
ComparisonHow to compare the variable
ValueValue to compare the variable

Compare Name

Returns true if the progress bar components name equals the parameter

ParameterDescription
NameName to compare with the component picked.

On Animated Value

Triggered when the progress bar animation is running. Use it to in combination of expressions AnimatedValue and AnimatedProgress to retrieve the animation data.

On Animation Finished

Triggered when the progress bar animation completes.

Expressions

Value

Progress Bar current value.

Progress

Progress Bar progress value in percentage.

Max

Progress Bar Maximum value.

AnimatedValue

Current animated value. This value is set only when the animation is running. E.G. If you are changing the value from 0 to 10, it will contain all the step values to reach the 10, as if it was counting.

AnimatedProgress

Percentage representing the AnimatedValue from the Max value allowed to be set for the progress bar. This value is set only when the animation is running

Name

Component name

(c) Pixel Perfect Studio 2024

Tags: , , , , , ,