lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO Patches

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.
Interface Information
Download
Garan's Portal Bug Reports Feature Requests
How do I install this? (FAQ)
Name: revised ColorPicker class that takes no time to in...   Popular!
Author:
Date: 06-23-2011 01:22 PM
Size: 15.30 Kb
Version: 0.0
Rate File: 5 out of 5 with 2 votes  
Pictures
Click to enlarge 

Views: 0
Size: 3.34 Kb
Dimensions: 450 x 70
jpg used inplace of the hundreds of pixel controls
 
Description
This is a revised version of the ColorPicker.lua class that is a bit more efficient...
File Statistics
User Rating:
5 out of 5 with 2 votes
Downloads: 3994
Views: 17627
Favorites: 3
Uploaded By:
 
Last Modified: N/A

View Pictures. Download Now! Post A Comment


Post A Reply
Author Comments Comment Options
Unread 07-30-2011, 08:50 AM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
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
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-24-2011, 02:01 PM  
Fortunis
The Undying
 
Fortunis's Avatar
Interface Author - Click to view interfaces

Forum posts: 72
File comments: 53
Uploads: 1
Oh then thanks Galuhad too!

Ill re-edit my download page
Fortunis is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-24-2011, 01:34 PM  
Galuhad
The Undying
 
Galuhad's Avatar
Interface Author - Click to view interfaces

Forum posts: 24
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.
Galuhad is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-24-2011, 01:19 PM  
Garan
The Undying
 
Garan's Avatar
Interface Author - Click to view interfaces

Forum posts: 340
File comments: 980
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.
Garan is offline Report comment to moderator   Reply With Quote Reply With Quote
Unread 06-24-2011, 07:26 AM  
Fortunis
The Undying
 
Fortunis's Avatar
Interface Author - Click to view interfaces

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.
Fortunis is offline Report comment to moderator   Reply With Quote Reply With Quote
Post A Reply

 
Category Jump:
Search this Category:
 

All times are GMT -5. The time now is 09:40 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui