 |
Category: LotRO Patchesrevised ColorPicker class that takes no time to initialize and far fewer event handlers |
This file is a Addon for ChatEdit by Galuhad. You must have that installed before this Addon will work.
jpg used inplace of the hundreds of pixel controls
|
|
This is a revised version of the ColorPicker.lua class that is a bit more efficient...
|
File Statistics |
User Rating: |
|
Downloads: |
3590 |
Views: |
16249 |
Favorites: |
3 |
Uploaded By: |
|
Last Modified: |
N/A |
|
|  |
|
07-30-2011, 08:50 AM
|
|
The Undying
Forum posts: 23
File comments: 170
Uploads: 20
|
ChatEdit Version 1.3 incorporates this updated ColorPicker class already, if you're running this version you do not need to download this class again.
Thanks Garan for your help 
|
|
|
06-24-2011, 02:01 PM
|
|
The Undying
Forum posts: 72
File comments: 53
Uploads: 1
|
Oh then thanks Galuhad too!
Ill re-edit my download page 
|
|
|
06-24-2011, 01:34 PM
|
|
The Undying
Forum posts: 23
File comments: 170
Uploads: 20
|
Thanks Garan for reposting this.. As I mentioned in the ChatEdit thread, I'm not that great at programming and often my code gets quite messy. Originally I wasn't even going to create this as a class, but rather just a function within my plugin. I decided after looking into classes a bit it would make more sense for it to standalone so it can be shared and reused. I hope everyone likes it, and I appreciate the work Garan has put into tidying up my mess  lol.
|
|
|
06-24-2011, 01:19 PM
|
|
The Undying
Forum posts: 334
File comments: 946
Uploads: 20
|
Quote:
Originally Posted by Fortunis
Nice one Garan. Im looking into implementing this ( or a similar style ) in Mouse Cursor Highlighter Advanced.
btw:-
SetColor(colTurbine["R"], colTurbine["G"], colTurbine["B"]);
needs to be
myObject:SetBackColor( Turbine.UI.Color(colTurbine["R"], colTurbine["G"], colTurbine["B"]) );
----
Also your image is 450x70, not 450x60 :P
EDIT: Ive implemented the ColourPicker into 'Mouse Cursor Highlighter Advanced v3.00', with a little tweak in scale. Thanks alot for sharing this with the community 
|
Thanks. I intentionally didn't clean up the code much as it is Galuhad's design (and hopefully he's the one you creditted when reusing it) and I wanted to preserve as much of the original as possible while pointing out a slightly different approach to the implementation.
EDIT: Yeah, I noticed that 450x70 didn't match the comment Galuhad had in the ColorPicker.lua file, but it's the size actually used in the ChatEdit plugin and I got lazy and just used a jpg of a screenshot of the actual plugin so it was 450x70. Ideally, Galuhad or anyone who uses it would change the jpg to match the size they need either by scaling it ahead of time or by using SetStretchMode but as I noted in the file, SetStretchMode can have unintended side effects if you're not used to it and it's not documented. I personally am a great fan of SetStretchMode and use it a LOT 
Last edited by Garan : 06-25-2011 at 02:47 PM.
|
|
|
06-24-2011, 07:26 AM
|
|
The Undying
Forum posts: 72
File comments: 53
Uploads: 1
|
Nice one Garan. Im looking into implementing this ( or a similar style ) in Mouse Cursor Highlighter Advanced.
btw:-
SetColor(colTurbine["R"], colTurbine["G"], colTurbine["B"]);
needs to be
myObject:SetBackColor( Turbine.UI.Color(colTurbine["R"], colTurbine["G"], colTurbine["B"]) );
----
Also your image is 450x70, not 450x60 :P
EDIT: Ive implemented the ColourPicker into 'Mouse Cursor Highlighter Advanced v3.00', with a little tweak in scale. Thanks alot for sharing this with the community 
Last edited by Fortunis : 06-24-2011 at 12:46 PM.
|
|
|
All times are GMT -5. The time now is 01:37 PM.
|
 |