OnDgsColorPickerComponentSelectorChange

From Multi Theft Auto: Wiki
Revision as of 10:47, 26 July 2019 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is called when the value of dgs component selector changes. ==Parameters== <syntaxhighlight lang="lua"> element theElement </syntaxhigh...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is called when the value of dgs component selector changes.

Parameters

element theElement
  • theElement: The dgs color component whose value gets changed.
  • CurrentValue: The value after the change.
  • OldValue: The value before the change.

Example

DGS = exports.dgs

cp = dgsCreateColorPicker("HSVRing",50,50,300,300,false)
r = dgsColorPickerCreateComponentSelector(500,200,200,10,true,false)
dgsBindToColorPicker(r,cp,"RGB","R",true)
addEventHandler("onDgsColorPickerComponentSelectorChange",r,function(new,old)
  outputChatBox("Change From "..old.." To "..new)
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