Lore archive · Warcraft Wiki, 2023 dump
API GetGlyphInfo
Last wiki revision 2020-04-04
Returns the information about glyphs name, glyphType, isKnown, icon, glyphId, glyphLink, spec, specMatches, excluded = GetGlyphInfo(index)
- index : Number - Index of glyph as is shown in the glyph panel, ascending from 1.
- name : String - The name of the glyph or "header" if a header
- glyphType : Number - Type of the glyph (1 - Major, 2 - Minor)
- isKnown : Boolean - True if the player has learned the glyph in question or a filter index if a header
- icon : Texture for glyph button widget or nil if a header
- glyphId : Number - the id of the glyph or nil if a header
- glyphLink : String - the link of the selected glyph or nil if a header
- spec : String - the specialization that the glyph is specific to or nil if applicable to all specializations
- specMatches : Boolean - True if the glyph is usable in player's current specialization
- excluded : Boolean - True if player is using another glyph that is exclusive with the glyph in question
You can extract the link contents as follows: _,_,_,linkType,linkId,linkName = string.find(glyphLink, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+)|?h?%[?([^%[%]]*)%]?|?h?|?r?") Convents this '|cff66bbff|Hglyph:272|h[Glyph of Incinerate]|h|r' to 66bbff, glyph, 272, Glyph of Incinerate
Source
https://warcraft.wiki.gg/wiki/API_GetGlyphInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.