Libra

Library for creating some commonly used objects.

local Libra = LibStub("Libra")


Libra:NewAddon("addonName"[, addonTable)

Table with module and event handling functions.

local addon = Libra:NewAddon("addonName"[, addonTable)


Libra:EmbedWidgets(target)

Embeds all widget creation functionality on the target table, allowing you to directly create widgets.

local MyAddon = Libra:NewAddon("MyAddon")
Libra:EmbedWidgets(MyAddon)

local dropdown = MyAddon:CreateDropdown("Menu")


Libra:CreateDropdown("type"[, parent])

Dropdown with a wrapper API around the FrameXML API, working around known taint issues and adding certain features such as scrollable and fully refreshable menus.

type
"Menu" for a standalone menu, "Frame" for a list frame which in turns summons the menu
parent
parent frame if "Frame" type


Libra:CreateEditbox()


Libra:CreateScrollFrame("type"[, parent[, name]])

type
"Faux" or "Hybrid"
parent
parent frame
name
frame name


Libra:CreateUIPanel(["name"])

ButtonFrameTemplate frame closable with escape and pushable by other frames.

Better docs to be written.

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Feb 20, 2014
Category
Last update
Mar 31, 2014
Development stage
Alpha
License
All Rights Reserved
Downloads
20
Recent files
  • A: r13 for 5.4.7 Mar 31, 2014
  • A: r12 for 5.4.7 Mar 14, 2014
  • A: r11 for 5.4.7 Mar 14, 2014
  • A: r10 for 5.4.2 Mar 05, 2014
  • A: r9 for 5.4.2 Mar 04, 2014

Authors