Thread Tools Display Modes
11-13-11, 09:40 AM   #1
Ravensaber
A Fallenroot Satyr
 
Ravensaber's Avatar
Join Date: Nov 2011
Posts: 20
Adding border color code to shnameplates

Hello everyone and good morning.

Forgive me for not being to LUA compliant but I was wondering if anyone can tell me if its possible to add a border RGB code to a nameplate addon.

Here is the snippet of code regarding the border. I figured out how to add my own however there is no coloring option and I was wondering if anyone could tell me how to try and add that.

cfg.backdrop = {
bgFile = mediapath.."bg",
edgeFile = mediapath.."bdbord1",
edgeSize = 10,
insets = { left = 1, right = 1, top = 1, bottom = 1 },
}
I would guess I put it in there somewhere after edgesize, but I do not know the code to use to add RGB.
  Reply With Quote
11-13-11, 10:16 AM   #2
nin
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 213
You want to know what the frame is called that the backdrop belongs too.

For the whole backdrop :

Code:
framename:SetBackdropColor(R,G,B)
If you only want too color the Backdrop Edge :

Code:
framename:SetBackdropBorderColor(R,G,B )
Hope that helps.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Adding border color code to shnameplates


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