WoW:Using the Interface Options Addons panel (source)
Revision as of 03:04, 10 November 2009
, 10 November 2009added panel.refresh
(added panel.refresh) |
|||
| Line 20: | Line 20: | ||
:panel.parent'' - an optional string'' | :panel.parent'' - an optional string'' | ||
:::Name of the parent of the AddOn or group of configuration options. This identifies "panel" as the child of another category. If the parent category doesn't exist, "panel" will be displayed as a regular category. | :::Name of the parent of the AddOn or group of configuration options. This identifies "panel" as the child of another category. If the parent category doesn't exist, "panel" will be displayed as a regular category. | ||
:panel.refresh'' - Optional function()'' | |||
:::This method will run when the Interface Options frame calls its OnShow function and after defaults have been applied via the panel.default method described above. Use this to refresh your panel's UI in case settings have been changed without player interaction. (-- from a post by Zootfizzle) | |||
== Example XML with Okay and Cancel buttons == | == Example XML with Okay and Cancel buttons == | ||