HueRingPointerBehavior
Package: Libraries.Interface.Behaviors.Controls · Inherits from: Libraries.Language.Object, Libraries.Interface.Behaviors.Behavior
The HueRingPointerBehavior sets a HueRing's hue with the mouse or a finger: the button or finger going down on the ring, and each move of a drag, set the hue from the angle of the pointer around the ring's center. 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.HueRingPointerBehavior
MouseEvent mouse
InputTable table
table:SetIdentifier("HueRing")
InputSet press
press:SetMouseInput(mouse:LEFT)
HueRingPointerBehavior behavior
table:Add(press, behavior)
Actions
Run(Libraries.Interface.Events.BehaviorEvent event)
Parameters