SaturationBrightnessPointerBehavior
Package: Libraries.Interface.Behaviors.Controls · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior
The SaturationBrightnessPointerBehavior sets a SaturationBrightnessSquare's saturation and brightness with the mouse or a finger: the button or finger going down on the square, and each move of a drag, set them from the place of the pointer. Each change is final, so there is nothing to finish when the button comes up.
Example Code
use Libraries.Game.InputTable
use Libraries.Game.InputSet
use Libraries.Interface.Events.MouseEvent
use Libraries.Interface.Behaviors.Controls.SaturationBrightnessPointerBehavior
MouseEvent mouse
InputTable table
table:SetIdentifier("SaturationBrightnessSquare")
InputSet press
press:SetMouseInput(mouse:LEFT)
SaturationBrightnessPointerBehavior behavior
table:Add(press, behavior)
Actions
Run(Libraries.Interface.Events.BehaviorEvent event)
Parameters