PDA

View Full Version : Unitframe Edge Color



Fearsome
06-24-2006, 07:42 AM
I'm trying to change the color of the border of all the unit frames.

Tivoli posted:
BackgroundBorderColor = { r, g, b, a };
but I have tried it in several places and can't get it to work.

BackgroundBorderColor = { 0, 0, 0, 1 },
This should get me black edges but where the hell do I put it?

Sykt
06-24-2006, 09:04 AM
BackgroundBorderColor = { 0, 0, 0, 255 } would get you black edges :)

twilight
06-25-2006, 05:12 AM
help please, i dont get it either ;/

grom
06-25-2006, 05:57 AM
you have to do the change for every unit frame.

goto line


--Frame Design
Nurfed_UnitsLayout.Layout = {

there are lines for every frame like


player = {

target = {

etc.

find the line


Backdrop = { template = "Nurfed_Unit_backdrop" },

and add the following right after


BackdropBorderColor = { r, g, b, a },

r, g, b, a are 1 to 255.

Tivoli
06-25-2006, 11:34 AM
Colors are 0-1 ;), but you can put in something like (100/255) in the spots for the people that are used to using 1 to 255 in things like photoshop, this will convert it to the decimal format.

vanHell
06-30-2006, 06:00 PM
Is it possible to have different border colors for different targets (friendly, enemy, ...)?

Tivoli
06-30-2006, 06:19 PM
r, g, b, a are 1 to 255.
r, g, b, a are 0 to 1, you can use (x/255) for each value, but anything over 1 will be treated as 255 basically.

Roath
07-01-2006, 05:38 AM
r, g, b, a are 0 to 1, you can use (x/255) for each value, but anything over 1 will be treated as 255 basically.

hmm, im trying to get the unitframes border/backdrop alpha to be 1, meaning solid, not transparent at all, but nothing changes when i change the number :S

Iceflame
07-12-2006, 07:43 AM
Figured I've give this post a little /bump.

I used this post as reference to change my unitframe border color on: player, target, and party border. It worked fine..

For example, to get a *solid* "dark blue" border color, use this:


BackdropBorderColor = { 11/255, 50/255, 218/255, 1 },

And place it after [every instance of]:


BackdropColor = { 0, 0, 0, 0.75 },

in the layout.lua file.. OR after:


Backdrop = { template = "Nurfed_Unit_backdrop" },

if the "BackdropColor" line isn't applicable.

Should work like a charm. I used photoshop's color picker to get the relative R,G,B values

Ice

Kahkon
07-12-2006, 11:25 AM
How would you get solid black then?

I have tried several ways and I never end up with black

Iceflame
07-12-2006, 11:37 AM
Kahkon,

Wouldn't you want: BackdropBorderColor = { 0, 0, 0, 1 },

For solid black? Have you tried that yet?

(remember, the border is pretty thin by default... Solid black may be difficult to discern from "no" border at all... just a thought)

Ice

Kahkon
07-12-2006, 01:22 PM
Kahkon,

Wouldn't you want: BackdropBorderColor = { 0, 0, 0, 1 },

For solid black? Have you tried that yet?

(remember, the border is pretty thin by default... Solid black may be difficult to discern from "no" border at all... just a thought)

Ice

I cant get solid black even on player frame back drop.. The { 0, 0, 0, 1 }, Only get me like a dark transparent. I want solid black and only way I been able to get it is reference perl_black tga from my perl frames. I assume this is not very appropriate. I Tried renaming the Perl_Black tga and making its own folder then referencing it in nurfed. It only sees the tga file when its in perl folder. I assume that Perl_Black tga is propriatory to perl. Maybe nurfed guys gives us some tga files we can reference for color variations that will work inside nurfed_Frames.

bgFile = "Interface\\AddOns\\Perl_Config\\Perl_Black", will get me solid black backdrop as long as I have perl in my addons folder. The second I take perl_black from the perl folder I lose solid black. I can take all the other files from the perl folder it still works. I cannot rename the file and reference the renamed file in nurfed and have it work.

Roath
07-25-2006, 07:29 AM
it doesn't seem that {0, 0, 0, 1} will give you solid black, the 1 can be changed to whatever number for the BackdropColor without it changing anything, i've been trying for a lot time to get a solid, NON-transparent background, but it just wont change :(

AlphaEye
07-28-2006, 01:18 AM
I believe this is because.. the when the alpha of the tooltip border, which is the texture that is used generally.. is at 1, it is translucent by design? So if you were to get a texture that had no transparency whatsoever, then scaling alpha from 0 - 1 in the layout would actually scale the alpha properly.

AlphaEye
07-28-2006, 05:24 PM
Thought I would put an example of what I said in my above post for more clarity.

For example, if I had a texture that innately had a 0.7 alpha, the 0-1 alpha scale would be a scaler of 0 to 0.7, as a percent. so 0.9 alpha of the texture would be 0.63. If you had a 1 alpha texture, then doing a 0-1 alpha scale would actually scale on 0-1, where a 0.9 alpha of the texture would actually be 0.9 alpha.

Frakt
10-21-2006, 02:37 PM
Is it possible to remove totally the border?
To have it like that :

http://www.nurfed.com/uploads/wow/wow225.jpg

(look at the party unitfram)

Squid_00
10-22-2006, 04:00 PM
I was just about to ask the same thing, thanks for beating me to it. :D

Ralrra
10-22-2006, 04:14 PM
Not this is untested, so not sure if it will work.

Open up layout.lua and look for this block of code:


Nurfed_Unit_backdrop = {
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true,
tileSize = 100,
edgeSize = 16,
insets = { left = 5, right = 5, top = 5, bottom = 5 },
},

Now there should be a couple options, first you can remove the texture path for the "edgefile" so it reads edgeFile = "",

You could also try changing the edgeSize from 16 to 0.

Depending on how your layout is made and what elements it uses you may have to change some other elements that have their own borders (IE Model frames in paradigm)

Squid_00
10-22-2006, 08:56 PM
I found no:

Nurfed_Unit_backdrop = {

in my Nurfed.lua file...

However I did go to all the "EdgeSize" and turned them to 0, which ruined the frames.

So I'm thinking that, that suggestion won't work...

Ralrra
10-22-2006, 11:41 PM
I found no: [backdrop tempalte]


in my Nurfed.lua file...

However I did go to all the "EdgeSize" and turned them to 0, which ruined the frames.

So I'm thinking that, that suggestion won't work...


Most layouts use a template for the backdrop and then have all the various frames call it like that (similar to how ToT and ToTT are done.)

I took a look at your layout and you seem to have the backdrops defined for each frame, what's worse it's all on one line so it's cluttered and hard to read. The edgefile part is definately in there though, so you can try removing the texture path for the edgeFile.

Squid_00
10-23-2006, 01:06 PM
I must be finding the wrong edgesize, the only edgesizes I found I turned to 0, this in turn made all the frames have the same frame outline, but long frames poking every which way.... Still curious how one goes about making this:

http://forums.nurfed.com/showpost.php?p=97204&postcount=16

If it's the color transparent, can't one make the color of each edgesize transparent, same for the background of each frame? Instead of thinning out the edgesize?

a67rhf7823jn8747==