LibAboutPanel

Example 2

What it does

Lib About Panel is a small library which will add an about panel to your Blizzard interface options. You can specify whether or not to have the panel linked to a main panel, or just have it created separately. It will populate the fields of the about panel from the fields located in your ToC.

Where to get it

Donations

I have setup a donation site via Pledgie. Feel free to donate if you like this mod. I have put countless hours of time and effort into it along with many people who have helped me. I did not write this mod with the intent to make any money from it, I wrote it to help me with some needs that I saw in-game.

How to get it to work

To create the about panel, just add the following line of code into your mod:

LibStub("LibAboutPanel").new(parentframe, addonname)

It will also return the frame so you can call it like:

frame = LibStub("LibAboutPanel").new(parentframe, addonname)

The parentframe option may be nil, in which case it will not anchor the about panel to any frame. Otherwise, it will anchor the about frame to that frame.

The second option is the name of your add-on. This is mandatory as the about panel will pull all information from this add-ons ToC.

The ToC fields which the add-on reads are:

"Notes" "Version" "Author" "X-Author-Faction" "X-Author-Server" "X-Category" "X-License" "X-Email" "X-Website" "X-Credits" "X-Localizations" "X-Donate"

It will only read fields when they exist, and skip them if they do not exist.

Example Code

ToC File:

## Title: Alt-Tabber

## Notes: Plays a noise when you're alt-tabbed for a ready check (even when sound is turned off)

## Author: Ackis
## X-Author-Server: Azgalor US
## X-Author-Faction: Horde
## eMail: ackis AT shaw DOT ca
## X-License: MIT modified with notification clause
## X-Donate: Send me UDE Point codes, a Murky Code, or donate a few bucks/hours at your local animal shelter.

## Interface: 20400
## Version: 1.2
## X-Revision: Rev: 431
## X-Date: $Date: 2008-07-20 14:41:47 -0600 (Sun, 20 Jul 2008) $

## X-credits: 

## X-Category: Raid
## X-Localizations: enUS
## X-Website: http://www.wowwiki.com/AltTabber/
## X-Feedback: http://www.curse.com/downloads/details/12774/

Load the panel in LUA code not attached to anything:

LibStub("LibAboutPanel").new(nil, "AltTabber")

Load the panel in LUA code attached to other panels:

self.optionsFrame[L["About"]] = LibStub("LibAboutPanel").new("Ackis Recipe List", "Ackis Recipe List")

Known Issues

All known issues will be kept at the CurseForge tracker.

Please use the CurseForge tracker to file bug reports.

Wish List

Please use the CurseForge tracker to add suggestions and feature requests.

Bug Reporting

Please use the CurseForge tracker to file bug reports.

Wiki

WoW Wiki

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

  • 5 comments
  • Avatar of arith arith Oct 15, 2010 at 11:39 UTC - 0 likes

    Traditional Chinese translation: ["Click and press Ctrl-C to copy"] = "左鍵點擊並按下 Ctrl-C 以複製字串"

  • Avatar of cakehouse cakehouse Jan 30, 2010 at 02:00 UTC - 0 likes

    Korean localization

    L["Click and press Ctrl-C to copy"] = "클릭 후 Ctrl-C 복사"

    Next time please update..

    Cakehouse
    Undead Mage Lv80
    Wings of Namomo
    Eonar
    Korea

  • Avatar of Ackis Ackis Oct 20, 2008 at 05:07 UTC - 0 likes

    Just a ToC update.

    BFAK:Ackis,90710388,2f62cbb4c100385c86df0c1418f5ac5a2cb1a2bc3f2a18f13291792dbb3a1480

  • Avatar of Ackis Ackis Aug 13, 2008 at 17:29 UTC - 0 likes

    Wiki has been created at WoWWIki

  • Avatar of Ackis Ackis Aug 12, 2008 at 16:42 UTC - 0 likes

    Really only posted this to make code changes a bit more efficient, and to play around with CF's svn system. :) Which I'm liking so far :D

  • 5 comments

Facts

Date created
Aug 12, 2008
Category
Last update
Aug 06, 2014
Development stage
Mature
Language
  • enUS
License
Public Domain
Curse link
LibAboutPanel
Reverse relationships
34
Downloads
379,689
Recent files

Authors

Relationships

Tool used
Download Count
Querier
Embedded library
CallbackHandler-1.0
LibStub