GSToneView Class
A tone-view can be used to preview a tone used for commands like "Tint Screen", etc.
Item Index
Properties
BindingSlot.alpha
Number
Alpha value of the tone.
BindingSlot.blue
Number
Blue value of the tone.
BindingSlot.green
Number
Green value of the tone.
BindingSlot.red
Number
Red value of the tone.
BindingSlot.tone
Object
Sets the whole tone. Needs to be a tone object like: { red: 0, green: 0, blue: 0, grey: 0}
dialog
DialogDescriptor
A dialog to show if the tone-view is clicked and the selectable attribute is set.
graphic
Object
A custom graphic used for the tone-preview. If not present a color-spectrum graphic is used.
graphic.folder
String
Resource folder the graphic should be loaded from.
graphic.name
String
Name of the custom graphic resource.
graphic.srcRect
Object
Source-Rectangle of the custom graphic resource as object like: { x: 0, y: 0, w: 100, h: 100 }
selectable
Boolean
Indicates if the tone-view can be clicked to show a popup-window for more complex input.