PDA

View Full Version : Secure Functions for assisting :)


Gnomejitsu
28-07-2007, 08:29 PM
Having some trouble with passing a variable to a macro.

local massist=CreateFrame("Button", "MAS", self.frame, "SecureActionButtonTemplate")

massist:RegisterForClicks("LeftButtonUp")
massist:SetAttribute("type1", "macro")
massist:SetAttribute("macrotext", "/assist "..cvatarget)


I know the syntax is wrong on the setattribute, another mod I saw had something like:

massist:SetAttribute("macrotext", "/assist".."cvatarget")

How can I update the cvatarget variable from another function (CVA_Addassist()) or something similiar. I can update and change font strings simply enough.

I see there is an assist attribute in secure frames, but the syntax isn't very clear. Any help would be appreciated.