Thread Tools Display Modes
05-31-21, 07:17 PM   #1
Chr0nicxHack3r
A Deviate Faerie Dragon
 
Chr0nicxHack3r's Avatar
Join Date: Jan 2021
Posts: 11
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

Last edited by Chr0nicxHack3r : 06-01-21 at 03:32 PM.
  Reply With Quote
05-31-21, 08:13 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 05-31-21 at 08:36 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Trying to set toggle in config?

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