lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > General Discussion & Support > Script & Skin Managers

Reply
Thread Tools Display Modes
  #1  
Unread 02-08-2011, 12:10 PM
Eili's Avatar
Eili Eili is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Location: Montreal
Posts: 159
help on color code please

I am not a programer at all, i just know one or two little things, but where my mind says a No No it is for understanding coding colour in LUA.

So far i understand the RGB system but i dont catch it in LUA.

So knowing that ( Turbine.UI.Color(0,0,0,0)) is transparent, if i want to give

- light grey
- dark gold or light gold

what would be the code please ?

Thank you
Reply With Quote
  #2  
Unread 02-08-2011, 12:34 PM
D.H1cks's Avatar
D.H1cks D.H1cks is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Posts: 162
In Lotro LUA plugins, the first number is the alpha value, then RGB follows. The numbers range from 0 to 1.

For fully opaque colors, always start with a 1.

Grey would be Turbine.UI.Color(1,0.9,0.9,0.9). To make it darker, change the 0.9 values to something lower, making sure to keep all 3 values the same.

For gold, I got a gold HEX code from this site: http://www.htmlhelp.com/cgi-bin/color.cgi

The value for gold was FFD700 in hex.

Quick answer is this translates to Turbine.UI.Color(1,1,0.84,0).

To get these numbers, translate each part from hex to decimal, then divide by 255.

Edit: Found this site that sets the background color according to the values entered, can be useful for finding the correct numbers you need.

Last edited by D.H1cks : 02-08-2011 at 12:37 PM.
Reply With Quote
  #3  
Unread 02-08-2011, 12:47 PM
Eili's Avatar
Eili Eili is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Apr 2007
Location: Montreal
Posts: 159
Thank you very much

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Probelm with code wackafoo XML modification help (L) 0 05-27-2010 01:35 AM
Font Color skarlett Interface Help (L) 3 01-13-2010 12:59 PM
Can we change the cursor color? Rhime Interface Requests (L) 1 05-05-2009 04:05 PM
Bottom Left UI Code Cleitanious XML modification help (L) 8 04-30-2008 05:47 AM
Changing color Budvar Interface Help (L) 4 07-03-2007 11:41 AM


All times are GMT -5. The time now is 12:36 AM.


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