WoW:Creating simple pop-up dialog boxes (source)
Revision as of 18:55, 27 December 2007
, 27 December 2007no edit summary
m (→Notes and Observations: Changed \ to /) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
This HOWTO covers the creation of what Blizzard calls ''static popups''. These are the simple | This HOWTO covers the creation of what Blizzard calls ''static popups''. These are the simple | ||
one-button and two-button dialog boxes you see when confirming a warlock summon, sending money | one-button and two-button dialog boxes you see when confirming a warlock summon, sending money | ||
| Line 160: | Line 158: | ||
* While creating your popup entries, you will probably be doing a lot of UI reloading. Extract the <tt>[[FrameXML/DebugUI.xml]]</tt> file from the default UI, copy it into your addon folder, and add it to your .toc file. This has two effects: it starts verbose logging into FrameXML.log, and it adds a "Reload UI" button to your screen. Very handy timesaver. :-) | * While creating your popup entries, you will probably be doing a lot of UI reloading. Extract the <tt>[[FrameXML/DebugUI.xml]]</tt> file from the default UI, copy it into your addon folder, and add it to your .toc file. This has two effects: it starts verbose logging into FrameXML.log, and it adds a "Reload UI" button to your screen. Very handy timesaver. :-) | ||
* Added by [[user:Layrajha|Layrajha]]: The OnHide function will always be called after OnAccept or OnCancel have finished their execution. Therefore, it is safe to assume that your changes done in OnAccept or OnCancel will be done when OnHide is called. Also note that you can prevent the popup from hiding after clicking the "Accept" button: just make the OnAccept function return "true" (or anything different from "nil" and "false", it will work just as well). | * Added by [[user:Layrajha|Layrajha]]: The OnHide function will always be called after OnAccept or OnCancel have finished their execution. Therefore, it is safe to assume that your changes done in OnAccept or OnCancel will be done when OnHide is called. Also note that you can prevent the popup from hiding after clicking the "Accept" button: just make the OnAccept function return "true" (or anything different from "nil" and "false", it will work just as well). | ||
[[Category: HOWTOs|Popup Simple Dialog Boxes]] | [[Category: HOWTOs|Popup Simple Dialog Boxes]] | ||