CurseForge.com
Home
Addons
Authors
Forums
Knowledge base
Paste
Site issues
Sign in
Register new account
LibSharedAssets
Overview
Files
Tickets
Pages
Repository
Subscriptions
API/LibSharedAssets
r1
Source
Markup:
*
==GetTexturesWithTag(tag)== Gets the textures tagged with a certain tag (Internal function.) <br> ===Parameters=== ; tag : The tag to search for. ===Return value=== A non-volatile, integer-indexed list of texture names matching the specified tag. ==LSA:AddMetadata(texName, metadata)== Adds metadata for a texture already registered with LibSharedAssets <br> ===Parameters=== ; texName : The name of the texture (as previously registered) ; metadata : A table of metadata to be added for the specified texture ===Return value=== The newly updated metadata table if successful, or nil if the texture was not found. ==LSA:GetMetadata(texName)== Returns the metadata for an already registered texture <br> ===Parameters=== ; texName : The name of the texture (as previously registered) ===Return value=== A table of metadata about the specified texture, or nil if the texture was not found. ==LSA:GetTextureList(query, height)== Returns a list of textures currently registered by LSA The query parameter can be nil, if so, a list of all registered textures will be returned.<br> If the query parameter is a string, a list of all textures tagged with a matching string will be returned. If the query parameter is a table, then a list of all textures tagged with each string in the table will be returned. If the query parameter is a number, then a list of all textures with the specified square size will be returned. A second number may also be passed as a height for rectangular sizes, in which case the first will be used as the width to look for. ===Parameters=== ; query : Specifies what textures to return ; height : (optional) ===Return value=== A table of currently registered texture names matching the query ==LSA:RegisterTexture(texName, metadata)== Registers a texture for use by any addon using LibSharedAssets <br> ===Parameters=== ; texName : The name of the texture (as loaded in XML) ; metadata : A table of metadata about the texture being registered. ===Return value=== The name of the registered texture if successful, or nil if the texture already was registered.
Markup Type:
*
The type of markup for this entry.
Click here for details
.
WikiCreole
BBCode
Safe HTML
Plain Text
Markdown
Textile
Curse Wiki (Deprecated)