View Single Post
07-08-13, 11:00 PM   #11
Yksrep
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 21
Phantom I have done exactly that, it's made it easier to make the buttons.

Phanx in regard to your table code from what I understand it should be showing both buttons. I the minor change to

Code:
-- Table to hold the actual button objects:
local buttons = {}
As noted by

Code:
-- Now your "buttons" table looks like this:
-- buttons = {
-- 	[1] = <button object named "MyButton1">,
-- 	[2] = <button object named "MyButton2">,
-- }
Now to

Code:
local buttons = {
 	[1] = MyButton1,
 	[2] = MyButton2,
Im not sure if it's the Loop
Code:
for i = 1, #buttonData do
or if I'm supposed to do something I have missed. But more then likely I have done something wrong.
  Reply With Quote