Jump to content

Colorpicker


Techial

Recommended Posts

Posted

Hi, I've been searching for a tutorial on how to use the colorpicker.

Doing some search on Google, Yahoo and well all other search engines; just not found it yet.

So I've got the files, and added them to meta.xml.

But I just can't seem to find the event to launch the colorpicker (And where it will return stuff)

All help is appreciated! :)

Posted

You open it like this:

colorPicker.openSelect ( currentColor ) 

And to close it:

colorPicker.closeSelect ( ) 

With this you get the current color ( as far as I know ):

r, g, b = colorPicker.updateTempColors ( ) 

Posted

Well, I also had to fix it, so I fixed the script so it atleast works; and doesn't spit all those errors

The only downside with it is that you can't set the starting color, so it will automatically start as black.

Usage:

colorPicker.openSelect({255,255,255,255}) -- Just to stop it from bugging 

Code:

http://pastebin.com/TFArmjCe

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...