

font or statusbarReturns table - list of handles for the given type :GetDefault(mediatype) Returns the default return value for nonexistant handles. font or statusbarReturns table - hash table for the given type :List(mediatype) Gets a sorted list of handles. String - the handle of the dataReturns boolean - true if the type (and handle) is valid :HashTable(mediatype) Gets a hash table to eg. String - the handle to get the data from the libReturns string or nil - the data for the given handle or nil :IsValid(mediatype ) Checks if the given type (and handle) is valid. String - the data to associate with the handle normaly a filenameReturns boolean - false if data for the given mediatype-key pair already existes, true else :Fetch(mediatype, key) Fetches the data for the given handle and type. String - the handle to get the data from the lib data :Register(mediatype, key, data) Registers a new handle of given type. Currently supported media types: background, border, font, statusbar, sound.If you wish to have access to more, they must be provided and registered by an addon. There is currently only one statusbar texture in the game.It may also take a string that is a combination of a file path, font size, and font style.Įx: label:SetFont("MyAddon/Font/path.ttf|18|soft-shadow-thin") Label:SetFont("font") may be used with more than just a pre-defined font from the default UI.

Some sounds from the default UI have been provided as choices for your addons to use.

Addons should handle hiding borders/backgrounds on their own through the alpha channel. The "None" option for borders/backgrounds was removed, as ESO displays a white default texture if no file path is provided.LibMediaProvider is also available on GitHub. An addon can register media with LibMediaProvider, which then turns around and provides that media to any addon requesting media of that type. This library facilitates the sharing of media (fonts, textures, etc) between addons. LibMediaProvider is inspired by and borrows from LibSharedMedia-3.0, written for World of Warcraft.
