Thread Tools Display Modes
02-28-09, 03:32 PM   #1
Hati-EK
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 20
Button:Click() not avaible?

title says all ...

I have 2 SecureActionButton - Button2 is ontop (
[Front]
Button2
-------
Button1
[Back]
) of Button1 ... if a boolean-value matchs he should click button1 and run a script, if the boolean-value doesn't match he should click button2

so i have
Code:
Btn2:SetScript("OnClick", 
	function(self, button, down)
		if BOOL then
			--Do something
		else
			Btn1:Click(1,true)
		end
	end)
So if i run the addon with this ... i get the following error:

"Addon has been blocked from an action only avaible to the Blizzard UI. You can disable this addon and reload the UI."

Is there anything i do wrong oO?


**Solved in IRC, thanks Iriel **

Last edited by Hati-EK : 02-28-09 at 03:57 PM. Reason: Solved
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Button:Click() not avaible?

Thread Tools
Display Modes

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