WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Trying to set toggle in config? (https://www.wowinterface.com/forums/showthread.php?t=58774)

Chr0nicxHack3r 05-31-21 07:17 PM

Trying to set toggle in config?
 
I am wondering if someone would be able to help me figure out how to complete the toggle set up for my configuration in my addon. I am hoping to get it so when the box is check that the call out will work and when it is not checked it will not make the call out. Below is the code I am working with or you can download the addon here: https://mega.nz/file/R1p0yACB#Fs7bik...Gh14Fefwh7EJw8

Fizzlemizz 05-31-21 08:13 PM

Code:

ToggleWarlockCheckbox:SetScript("OnClick", CheckBox_OnClick)
While there are possible possabilities, the CheckBox_OnClick function from the line above doesn't seem to exist in the code you posted. You might be updating another addon or something in the Blizzard UI with the code as it stands.

If you do have a function called CheckBox_OnClick somewhere and it's global then, being such a generic name, it might have been overwritten by another addon that accidently included a global function called CheckBox_OnClick so, same result as above.


All times are GMT -6. The time now is 04:22 AM.

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