View Single Post
02-18-11, 04:34 PM   #13
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
Assuming you wanted to make a table of buttons then yes you are doing it right. However, just in case I would add the following line just above this one :

LeftScrollBar.scrollChild.button[bnid] = CreateFrame('button', "HHeaderButton" .. bnid, LeftScrollBar.scrollChild)

LeftScrollBar.scrollChild.button = LeftScrollBar.scrollChild.button or {}


Then assuming bnid is a value it will give the table an index linked list of buttons.

To access you would do something like:

LeftScrollBar.scrollChild.button[1] and not LeftScrollBar.scrollChild.button1 unless that is something in tables I haven't come across yet.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote