Quantcast
Channel: WoWInterface - Latest Updated list
Viewing all articles
Browse latest Browse all 48781

LibOptionsAssist-1.0 (1.0.4)

$
0
0
Change Log:
--------------------
Version 1.0.4 (12/25/2013)
- Put in a temp fix for the Blizzard bug that prevents opening directly to an option panel the first time

Version 1.0.3 (06/13/2013)
- Fixed a logic flow issue with LoD

Version 1.0.2 (05/18/2010)
- Fixed a couple display issues
- Info text no longer requires the title text to be shown
- Added description text
- Extended the LOD support

Version 1.0.1 (07/05/2009)
- Added MMOUI Minion support to TOC file (X-WoWI-ID)
- Fixed a display bug when hiding an entry

Version 1.0 (06/25/2009)
- Initial release

Description:
--------------------
An alternative to using the AceGUI container BlizOptionsGroup to create entries in the Blizzard options panel. All entries created use the same frame objects allowing for minimal memory use. An entry can be created and an options table assigned to it later allowing for LOD options. The library monitors for AceConfigDialog-3.0, AceConfigRegistry-3.0, and AceGUI-3.0 to be loaded before using them to further facilitate LOD behavior.

Example usage:

-- In main module (myAddon):
myAddon.config = LibStub('LibOptionsAssist-1.0'):AddEntry("myAddon", nil, "myAddon_Config")
myAddon.config:SetInfo(format("Version: %s", GetAddOnMetadata("myAddon", 'Version')))

-- In LOD module (myAddon_Config):
LibStub('AceConfigRegistry-3.0'):RegisterOptionsTable("myAddon", myAddon.options)
myAddon.config:AssignOptions("myAddon")



API

entry = lib:AddEntry(name ])

Add an entry to Blizzard's interface options panel under the AddOns tab.

Arguments:
name - (string) The text to appear in the Blizzard options panel under the AddOns tab.

parent - (string) If this is to be a child entry then this should be the name that was used to create the parent entry.

loadOnDemand - (function or string) If a function is given then that function will be run the first time the entry is selected, passing entry as it's only argument. If a string is given, or if the function returns a string, an addon with that name will be loaded if it isn't already.

Returns:
entry - (table) A table with the required fields to work with the Blizzard options panel (see Entries below).



index = lib:HasEntry(name )

Determines if an entry is in Blizzard's interface options panel under the AddOns tab.

Arguments:
name - (string) The name...

Viewing all articles
Browse latest Browse all 48781

Trending Articles