RSS

Суббота, 21.12.2024, 19:08
Главная » WoW API » API Функции » Связанные с аддонами »

GetAddOnMetadata

[ править ]
Returns the value of certain fields in an addon's TOC file.
[клоны]
Returns the value of certain fields in an addon's TOC file.

Signature:
Code
data = GetAddOnMetadata(index, "variable") or GetAddOnMetadata("name", "variable")

Arguments:
  • index - Index of an addon in the addon list (between 1 and GetNumAddOns()) (number)
  • name - Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)
  • variable - Name of a header from the addon's TOC file; only certain headers can be queried: Author, Title, Notes, Version, and any header whose name starts with "X-" (e.g. X-Website, X-Category) (string)

Returns:
  • data - Contents of the given TOC file header, or nil if the header does not exist or cannot be queried (string)

Также смотрите: Связанные с аддонами , Addon-related functions
Ссылки: http://wowprogramming.com/docs/api/GetAddOnMetadata