File Portfolio.lua

Interface Option Creation Utility

Author:

Karl Isenberg (AnduinLothar)

Release: 1.21

Usage: local Portfolio = LibStub("Portfolio")

Dependant Usage:
  1. Add Portfolio as a Required Dependency.
  2. Include Portfolio in your download
    OR link users to WoW Interface for downloading.
Embedded Usage:
  1. Include Portfolio in the Libs folder of you addon: <addon>\Libs\Portfolio.
  2. Include Loader.xml in your xml file with <Include file="Libs\Portfolio\Loader.xml"/>
    OR load Libs\Portfolio\Loader.xml from your toc file.
  3. Add Portfolio as an Optional Dependency in your toc, and as an X-Embeds.

Functions

Portfolio.CallCallbacks (optionsFrame) Call Update() on all the controls.
Portfolio.GetControl (optionsFrame, optionid) Get the control frame by option id.
Portfolio.GetOptionsFrame (setid) Get the options frame by set id.
Portfolio.RegisterOptionSet (optionSetTable) Register a new set of options.


Functions

Portfolio.CallCallbacks (optionsFrame)
Call Update() on all the controls.

Parameters

  • optionsFrame: options frame

Usage:

optionsFrame:CallCallbacks()
Portfolio.GetControl (optionsFrame, optionid)
Get the control frame by option id.

Parameters

  • optionsFrame: options frame
  • optionid: (string) option id

Usage:

control = optionsFrame:GetControl(optionid)

Return value:

control frame
Portfolio.GetOptionsFrame (setid)
Get the options frame by set id.

Parameters

  • setid: (string) option set id

Usage:

control = optionsFrame:GetControl(optionid)

Return value:

options frame
Portfolio.RegisterOptionSet (optionSetTable)
Register a new set of options. Creates and registers the option set frame and registers all the options with RegisterControl.

Parameters

  • optionSetTable: (table) option set registration table

Return value:

options frame

Valid XHTML 1.0!