Behavior : Max-min

Author:Rex.Rainbow

Download

Properties

Initial

  • Initial value.

Max

  • Maximum bound.

Min

  • Minimum bound.

Actions

Bound

Action:Set maximum bound

  • Set maximum bound.
    • Max ( number ) : Maximum bound.

Action:Set minimum bound

  • Set minimum bound.
    • Min ( number ) : Minimum bound.

Value

Action:Set value

  • Set value.
    • Value ( number ) : Value.

Action:Add to

  • Add to the value.
    • Value ( number ) : Value to add to this variable.

Action:Subtract from

  • Subtract from the value.
    • Value ( number ) : Value to subtract from this variable.

Expressions

Bound

Expression:Max

  • Get maximum bound.

Expression:Min

  • Get minimum bound.

Value

Expression:Value

  • Get current value.

Expression:Percentage

  • Get percentage of current value in bounds.

Expression:PreValue

  • Get previous value.

Conditions

Bound

Condition:Compare bound

  • Compare bound.
    • Bound ( Combo ) : Maximum bound or minimum bound to compare.
      • Options : ["Min","Max"]
    • Comparison ( cmp ) : Choose the way to compare the current value.
    • Value ( number ) : The value to compare the bound to.

Value

Condition:On value changing

  • Triggered when value changing.

Condition:Compare value

  • Compare the current value.
    • Comparison ( cmp ) : Choose the way to compare the current value.
    • Value ( number ) : The value to compare the current value to.

Condition:Is value changed

  • Return true if value changed.

Condition:Compare delta value

  • Compare the delta value which is equal to current value - previous value.
    • Comparison ( cmp ) : Choose the way to compare the current value.
    • Value ( number ) : The value to compare the delta value to.