View Single Post
12-16-20, 07:51 AM   #16
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
The textures are stored as indexes in the borders key of the parent frame. If you were to do ZaxBorders=CreateFrame("frame") instead of local f=CreateFrame("frame"), you can change the colors like so:

Lua Code:
  1. for i=1,4 do
  2.     ZaxBorders.borders[i]:SetColorTexture(r,g,b,a)
  3. end

Also, the way the code is currently ordered, 1 is top, 2 is right, 3 is bottom, and 4 is left. You can change the color of, say, just the bottom with this:

ZaxBorders.borders[3]:SetColorTexture(r,g,b,a)
  Reply With Quote