Thread Tools Display Modes
12-15-13, 03:20 PM   #1
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
Aurora skinning help

So love Aurora except it's 2 pixel border doesn't work well with BobUI very well. So rather than making my own version of Aurora is there a way i can grab the CreateBG function Aurora uses and apply my own border function without having to modify Aurora itself (copyright reasons and all)?

I know I can just skin the frames using the Createborder function from !Beautycase but rather than indexing every frame I'd like to save myself the hassle.
__________________
Tweets YouTube Website
  Reply With Quote
12-15-13, 03:59 PM   #2
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
You can access Aurora via the global "Aurora".
This table contains two tables:
Aurora[1] contains all functions and Aurora[2] contains constants and config.

You can change/hook the function CreateBG via 'Aurora[1].CreateBG'.
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
12-15-13, 04:26 PM   #3
10leej
A Molten Giant
 
10leej's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 583
So then I can just do something like this?

Lua Code:
  1. Aurora[1].CreateBG = function(frame)
  2.     local f = frame
  3.     if frame:GetObjectType() == "Texture" then f = frame:GetParent() end
  4.     frame:CreateBorder(12,1,1,1)
  5.  
  6.     local bg = f:CreateTexture(nil, "BACKGROUND")
  7.     bg:SetPoint("TOPLEFT", frame, -1, 1)
  8.     bg:SetPoint("BOTTOMRIGHT", frame, 1, -1)
  9.     bg:SetTexture("Interface\\ChatFrame\\ChatFrameBackground")
  10.     bg:SetVertexColor(0, 0, 0)
  11.  
  12.     return bg
  13. end

Sorry not at the comp right now so can't really test via trial and error
__________________
Tweets YouTube Website
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Aurora skinning help

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