Techial Posted December 15, 2012 Posted December 15, 2012 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!
Castillo Posted December 15, 2012 Posted December 15, 2012 Of what colorpicker are you talking about?
Techial Posted December 15, 2012 Author Posted December 15, 2012 Of what colorpicker are you talking about? The one you can find in the scoreboard resource.
Castillo Posted December 15, 2012 Posted December 15, 2012 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 ( )
Techial Posted December 15, 2012 Author Posted December 15, 2012 Thank you Castillo. It works perfect.
Techial Posted December 15, 2012 Author Posted December 15, 2012 BTW, Castillo. You forgot colorPicker.constructor() It should be put before any of the initializations.
Techial Posted December 15, 2012 Author Posted December 15, 2012 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now