Thread Tools Display Modes
11-25-06, 11:45 AM   #1
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Need some help with secure frames and target unit

Hi all.

If I create a a button that inherits SecureUnitButtonTemplate and do the following:

buttonobjekt:SetAttribute("type1", "spell");
buttonobjekt:SetAttribute("unit1", "raid2");
buttonobjekt:SetAttribute("spell1", "a spell");

shouldn't this create a button where "a spell" for target "raid2" is casted on left mouse button??!??

My problem is ... doesn't matter what I use for buttonobjekt:SetAttribute("unit1", "a unit"); ... the spell is casted on myself.

I'm confused. Could someone please help me out of that?

Duugu
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Need some help with secure frames and target unit


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