WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Tekkub at 4/22/2006 3:40:16 AM PDT
Subject: API Request: Getting comments from the TOC
   GetAddOnInfo(index or "name") returns back some info from the TOC (Title and notes)... would it be possible to expand on this? It seems to have become common practice for addon authors to tag all sorts of metadata in the TOC in the format "## <field>: <data>". Take for example FuBar.toc:

## Interface: 11000
## Title: FuBar |cff007FFF -Ace-|r
## Notes: A panel that modules can plug into.
## Notes-deDE: Eine Leiste in der sich Module einbinden können.
## Notes-frFR: Un panneau dans lequel des modules peuvent se brancher.
## Author: Boss
## eMail: ckknight@gmail.com
## SavedVariables: FuBarDB
## OptionalDeps: CompostLib, Metrognome, BabbleLib
## Dependencies: Ace
## Version: 1.0 $Revision: 541 $

So my request is simple, can you give us a function, say maybe GetAddonMetadata(index or "name", "field") which would return back a string from the TOC comments if there is a match? This would help minimize data duplication for many authors, why update a few files when you can just update the TOC and pull the data from it in-game? As long as the TOC is up to date all your mod's metadata would be.

[ post edited by Tekkub ]


2048x768 is finally here!
/target Slouken /bow /blow
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=365186&p=#post365186
 
Poster: slouken at 4/24/2006 2:17:46 PM PDT
Subject: Re: API Request: Getting comments from the TOC
   You got it, see the 1.11 changes thread for details.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=365186&p=#post366538

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?