WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Button:Click() not avaible? (https://www.wowinterface.com/forums/showthread.php?t=20753)

Hati-EK 02-28-09 03:32 PM

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 :)**


All times are GMT -6. The time now is 07:30 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI