View Single Post
09-04-14, 12:13 PM   #7
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
You need to provide the right data to the code.

For the first two snippets the variable 'Button' has to be a reference to the button frame object you would like to act on. Like
Lua Code:
  1. local Button = _G["ActionButton1"] --just an example ... use your actual button frame(s)
before them.

The last snippet expects a table 'Buttons' containing references to all of your button frames. Like
Lua Code:
  1. local Buttons =
  2. {
  3. _G["ActionButton1"], _G["ActionButton2"], _G["ActionButton3"] -- again, just an example
  4. }

Please keep in mind, that these code parts are generalized quick and dirty copies from of my addons code. Do not expect them to work out of the box.

If you need help with your code, then the best way would be to show what you've done so far.

Last edited by Duugu : 09-04-14 at 12:18 PM.
  Reply With Quote