-
Posted by jonwats on Sat, 07 Aug 2010 00:43:42
In my addon I am trying to duplicate the functionality of the interface->objectives->"automatic quest tracking" option. Basically I am trying to figure out how to stop auto quest tracking. I tried to just put InterfaceOptionsObjectivesPanelAutoQuestTracking:SetChecked(false). This unchecks the check box but then the quests are still auto added whenever I accept a quest. Any hints on how to do this? Thanks in advance.
-
Posted by jnwhiteh on Sun, 08 Aug 2010 09:38:24
I'm not sure why you can't just set the CVAR directly or change whatever global configuration value controls this. You're saying you want the user to be able to disable this feature from within your addon rather than having to go into the options panel? Then you need to look at the code for that checkbox/option and figure out how it works. Just clicking the box won't be enough, obviously, and you shouldn't really rely on that.
You need to find the code that handles the actual toggle itself. Let me know if that helps.