OnDgsColorPickerChange

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This event is called when the color of a dgs color picker changes.

Parameters

element theElement
  • theElement: The dgs color picker whose color gets changed
  • oldRGB: The RGB color before the change.
  • oldHSL: The HSLcolor before the change.
  • oldHSV: The HSVcolor before the change.

Example

DGS = exports.dgs
cp = DGS:dgsCreateColorPicker("HSVRing",50,50,300,300,false)
addEventHandler("onDgsColorPickerChange",cp,function(RGB,HSL,HSV)
  outputChatBox("Old RGB:("..RGB[1]..","..RGB[2]..","..RGB[3]..")")
end,false)

See Also

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image