I need a way to track what tab the user clicked on in the options. I'll have 1 to 4 tabs. Is there a callback I can use or something that will call a function and tell me the user clicked on tab 4. Or a different tab became active?
Also I need to find call a function when the user options up the ace3 options screen. And again when it gets closed. Maybe OnHide and OnShow will work for this. I just need to know where I get the frame to register the event. Unless something is already built in to do this?
I have different frames on the screen and when the user clicks a certain tab, the frame will highlight and show the user this is the tab that will modify that frame when you make changes. These tabs are dynamic. The user can add or remove tabs which contain options.
Weakauras does this when you click on a tree group it highlights the weak aura on the screen. Except in my case I'm using tabs.
Problem with that is I have to poll somehow for when the user opens the options panel. I need the lib to tell me or call a function when the user opens/closes the options panel. Not the blizzard one but the one ace3 has.
OnGroupSelected
Is there a way I can use this using the aceconfig? I just want to be able to know what tree group I have selected. So I can highlight different bars. I'd hope there is something I can do. Doing my own version of aceconfig would be a huge project just to be able to do one thing and probably take months. I don't even know how half this stuff works under the hood.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I need a way to track what tab the user clicked on in the options. I'll have 1 to 4 tabs. Is there a callback I can use or something that will call a function and tell me the user clicked on tab 4. Or a different tab became active?
Also I need to find call a function when the user options up the ace3 options screen. And again when it gets closed. Maybe OnHide and OnShow will work for this. I just need to know where I get the frame to register the event. Unless something is already built in to do this?
I have different frames on the screen and when the user clicks a certain tab, the frame will highlight and show the user this is the tab that will modify that frame when you make changes. These tabs are dynamic. The user can add or remove tabs which contain options.
Weakauras does this when you click on a tree group it highlights the weak aura on the screen. Except in my case I'm using tabs.
Ok, I remembered.
I did something like this:
LibStub('AceConfigDialog-3.0'):Open(AddonOptionsName)
There's no OnHide event or something I can use?
Tested this in my own addon and works. Only way it would break is if the author changes the widget structure or something.
And to track what tab you're on. I was able to just use name = function() and this only gets called on the active tab.
Is there a way I can use this using the aceconfig? I just want to be able to know what tree group I have selected. So I can highlight different bars. I'd hope there is something I can do. Doing my own version of aceconfig would be a huge project just to be able to do one thing and probably take months. I don't even know how half this stuff works under the hood.