Get an Epic Experience with Premium

Simple Media Lib

Libraries Login to Add Favorites
  • 0 Likes
  • Runes of Magic
  • 15 Monthly Downloads
  • Supports: 3.0.9
  • 1,011 Total Downloads
  • Updated 04/10/2011
  • Created 04/10/2011
  • 0 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: Multiple Licenses - See description
  • Newest File: Simple Media Lib v1.0
or

About Simple Media Lib

Simple Media Lib

A simple library for the sharing of media files amongst add-ons. Also provided is SimpleMedia-RoM provides some media that are standard Runes of Magic files. and SimpleMedia-FontPack provides 32 new fonts for use with RoM.

What it is

On its own, this add-on does very little. It maintains a list of media files that other add-ons may query in order to use these media files. Further, add-ons may register their own media files with Simple Media Lib in order to allow other add-ons to use these media files as well. The more add-ons that are Simple Media Lib aware, the more this add-on will be useful.

For Users

Just download and install Simple Media Lib like any other add-on. That's it really. Nothing fancy to do.

For Developers

In order to make your add-on Simple Media Lib aware, you will first need to load LibStub into your add-on and do the following:

local smlib = LibStub:GetLibrary("SimpleMediaLib", true);

If smlib is nil, then the library isn't loaded. Simple Media Lib provides some iterators for the media types it maintains, so you may retrieve a list of fonts by doing:

for _, entry in smlib:Fonts() do
    DEFAULT_CHAT_FRAME:AddMessage("Font Name: "..entry.name);
end

See Using SML.txt for details

V1.0
  • Initial Release

Comments

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Infinite Crisis NA

Get Your Preferred Access Code!