Run a function when InterfaceOptionsFrame gets closed - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-05-19, 08:36 AM   #1
A Cyclonian
FranekW's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 41
Run a function when InterfaceOptionsFrame gets closed

I have an addon that hides a part of UI under certain conditions with an option to simulate those conditions and test how UI changes. Everything can be done inside the InterfaceOptionsFrame. One problem is that it is possible to close the frame when options remain in simulation state and then the UI remains altered. I would like to run a small function whenever interface frame is closed so my addon can restore the default UI state.

The addon is totally based on Ace libraries. As such, I have Ace-Addon, Ace-Event to register and handle all events, and Ace-Config including Ace-ConfigDialog to create InterfaceOptionsFrame. I can't find anything on hooking the Interface Frame when it gets shown or hidden. Is possible?

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Run a function when InterfaceOptionsFrame gets closed

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